bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a recursion bug


From: Greg Wooledge
Subject: Re: a recursion bug
Date: Wed, 3 Oct 2012 15:40:27 -0400
User-agent: Mutt/1.4.2.3i

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]