checking if array init is cause of segfault in shell out