Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

`foo=foo; (( foo ))' => infinite recursion



An easy way to die.

~ % zsh -f
phobos% foo=foo; (( foo ))
zsh: segmentation fault  zsh -f

#0  0x8080add in mathevall (s=0x80e5890 "foo", prek=17, ep=0xbf800308)
    at ../../latest/Src/math.c:855
855     {
(gdb) bt
#0  0x8080add in mathevall (s=0x80e5890 "foo", prek=17, ep=0xbf800308)
    at ../../latest/Src/math.c:855
#1  0x8080d13 in matheval (s=0x80e5890 "foo") at ../../latest/Src/math.c:923
#2  0x808bc5b in getnumvalue (v=0xbf800384) at ../../latest/Src/params.c:1423
#3  0x808c81d in getnparam (s=0x401e09bb "") at ../../latest/Src/params.c:1655
#4  0x808100a in mathparse (pc=17) at ../../latest/Src/math.c:1011
#5  0x8080be2 in mathevall (s=0x80e5890 "foo", prek=17, ep=0xbf800ad8)
    at ../../latest/Src/math.c:888
#6  0x8080d13 in matheval (s=0x80e5890 "foo") at ../../latest/Src/math.c:923
#7  0x808bc5b in getnumvalue (v=0xbf800b54) at ../../latest/Src/params.c:1423
#8  0x808c81d in getnparam (s=0x401e09b3 "") at ../../latest/Src/params.c:1655
#9  0x808100a in mathparse (pc=17) at ../../latest/Src/math.c:1011
#10 0x8080be2 in mathevall (s=0x80e5890 "foo", prek=17, ep=0xbf8012a8)
    at ../../latest/Src/math.c:888
#11 0x8080d13 in matheval (s=0x80e5890 "foo") at ../../latest/Src/math.c:923
#12 0x808bc5b in getnumvalue (v=0xbf801324) at ../../latest/Src/params.c:1423
#13 0x808c81d in getnparam (s=0x401e09ab "") at ../../latest/Src/params.c:1655
#14 0x808100a in mathparse (pc=17) at ../../latest/Src/math.c:1011
#15 0x8080be2 in mathevall (s=0x80e5890 "foo", prek=17, ep=0xbf801a78)
    at ../../latest/Src/math.c:888

... and so on ...

-- 
Alexandre Duret-Lutz



Messages sorted by: Reverse Date, Date, Thread, Author