On Wed, Oct 03, 2012 at 01:23:58PM -0600, Bob Proulx wrote: > But in any case, is there > anything in there that is about bash? If so the we need an exact test > case.
You could start with this one: imadev:~$ bash-4.2.28 -c 'a() { echo "$1"; a $(($1+1)); }; a 1' 2>&1 | tail Pid 4466 received a SIGSEGV for stack growth failure. Possible causes: insufficient memory or swap space, or stack size exceeded maxssiz. 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 imadev:~$ ls -l core -rw------- 1 wooledg pgmr 19908052 Oct 3 08:38 core imadev:~$ file core core: core file from 'bash-4.2.28' - received SIGSEGV That was executed on HP-UX 10.20. I agree that bash should try not to dump core in this case, if it's reasonable to prevent it. There was some confusion in the earlier part of this thread due to the introduction of valgrind into the picture, and incomplete quoting of previous messages.