Re: Massive recursion -> SEGV

2012-07-02 Thread Jan Schampera
On 02.07.2012 20:57, Chet Ramey wrote: On 7/2/12 2:36 PM, Jan Schampera wrote: The origin of this all was a "bugreport" to me about the manual lying about no limits on recursion That's funny. Aye. A bit of confusion. -- Be conservative in what you do, be liberal in what you accept from oth

Re: Massive recursion -> SEGV

2012-07-02 Thread Chet Ramey
On 7/2/12 2:36 PM, Jan Schampera wrote: > The origin of this all was a "bugreport" to me about the manual lying about > no limits on recursion That's funny. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS,

Re: Massive recursion -> SEGV

2012-07-02 Thread Jan Schampera
this all was a "bugreport" to me about the manual lying about no limits on recursion - it turned out it was massive recursion and little stack - and a resulting SEGV. I'm interested in people's thoughts there, like is it okay to just crash or would a message be better?

Re: Massive recursion -> SEGV

2012-07-02 Thread Eric Blake
On 07/01/2012 07:51 AM, Jan Schampera wrote: > On 01.07.2012 14:37, Roman Rakus wrote: > >> Look for FUNCNEST variable. In recent release it is available. > > I more meant the shell interpreter, less the code I can write. It would be possible to link bash with libsigsegv to install a graceful st

Re: Massive recursion -> SEGV

2012-07-01 Thread Jan Schampera
On 01.07.2012 14:37, Roman Rakus wrote: Look for FUNCNEST variable. In recent release it is available. I more meant the shell interpreter, less the code I can write. -- Be conservative in what you do, be liberal in what you accept from others. - jbp, master of the net, in RFC793

Re: Massive recursion -> SEGV

2012-07-01 Thread Roman Rakus
): f1() { f1 } f1 Currently it runs into a SEGV, where the number of recurions depends on the stack limit. On a fast search I found no portable way, but there are ways for specific platforms, like getrusage() when stack is reported there. Look for FUNCNEST

Massive recursion -> SEGV

2012-07-01 Thread Jan Schampera
Currently it runs into a SEGV, where the number of recurions depends on the stack limit. On a fast search I found no portable way, but there are ways for specific platforms, like getrusage() when stack is reported there. -- Be conservative in what you do, be liberal in what you accept from

Re: SEGV

2008-11-25 Thread Chet Ramey
Barry Davis wrote: > bash# echo $BASH_VERSION > 2.05b.0(1)-release > bash# fn() { local x; unset x; echo [EMAIL PROTECTED] ; echo [EMAIL > PROTECTED]; } > bash# fn > 1 > > ran in a script you get a SEGV > ran interactively it hangs. Bash-2.05b is three version

SEGV

2008-11-25 Thread Barry Davis
bash# echo $BASH_VERSION 2.05b.0(1)-release bash# fn() { local x; unset x; echo [EMAIL PROTECTED] ; echo [EMAIL PROTECTED]; } bash# fn 1 ran in a script you get a SEGV ran interactively it hangs.

Re: SEGV on unbounded recursion

2008-03-09 Thread Tomas Janousek
Hello, On Sat, Mar 08, 2008 at 04:35:02PM -0500, Chet Ramey wrote: > I'm not inclined to change the current behavior. Bash is perfectly > happy to allow people to shoot themselves in the foot. We all agree > that fixed-limit recursion is not the way to go, and I don't think the > effort involved

Re: SEGV on unbounded recursion

2008-03-08 Thread Chet Ramey
k-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables uname output: Linux tjanouse.englab.brq.redhat.com 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:02 EDT 2007 i686 i686 i386 GNU/Linux Machine Type: i686-redhat-linux-gnu Bash Version: 3.2 Patch Level: 33 Release Statu

Re: SEGV on unbounded recursion

2008-03-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to [EMAIL PROTECTED] on 3/6/2008 8:04 AM: | | Fix: | ksh has a fixed recursion depth limit (4096 on 32 bit machines, not | that many). I'm not sure we want this. We don't want a fixed recursion limit - it's against GNU philosoph

SEGV on unbounded recursion

2008-03-06 Thread tjanouse
=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables uname output: Linux tjanouse.englab.brq.redhat.com 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:02 EDT 2007 i686 i686 i386 GNU/Linux Machine Type: i686-redhat-linux-gnu Bash Version: 3.2 Patch Level: 33 Release Status: release Descriptio

pipe to return statement yields SEGV

2006-06-08 Thread Oleg Verych
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAG