found 579815 0.5.6.1-1~exp2
tags 579815 + upstream
retitle 579815 dash: stack overflow from infinite recursion in script
severity 579815 wishlist
severity 586637 wishlist
merge 579815 586637
quit

Hi,

Sorry for a slow response.

Jonny wrote:

> the procedure to make dash crash was found:
>  $ alias x=echo
>  $ x() { echo; }
>  $ x
>  Segmentation fault

Similarly:

| $ dash -c 'x() { x; }; x'
| Segmentation fault (core dumped)

It's a stack overflow.  Perfectly safe, but probably disconcerting.

gawk handles this by catching the SIGSEGV and reporting it, but I'm
not convinced it's worth the extra code to do that in dash.  Maybe
the manual page should warn about it.  Ideas welcome.

Thanks for reporting,
Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to