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

zparseopts causes core dump



zparseopts causes core dump as follows.

Z(4):akr@serein% Src/zsh -f 
serein% set - -a
serein% zparseopts -a=xxx
zsh: segmentation fault (core dumped)  Src/zsh -f

#0  0x400adda1 in strlen () from /lib/libc.so.6
(gdb) where
#0  0x400adda1 in strlen () from /lib/libc.so.6
#1  0x80830f3 in dupstring (s=0x401a4760 "zparseopts") at mem.c:517
#2  0x4021ed22 in bin_zparseopts (nam=0x401a4760 "zparseopts", 
    args=0xbffff360, ops=0xbffff3b8 "", func=0) at zutil.c:1336
#3  0x80521c8 in execbuiltin (args=0x401a4740, bn=0x40220a7c) at builtin.c:368
#4  0x8062b30 in execcmd (state=0xbffff690, input=0, output=0, how=18, last1=2)
    at exec.c:2257
#5  0x805f66b in execpline2 (state=0xbffff690, pcode=195, how=18, input=0, 
    output=0, last1=0) at exec.c:1183
#6  0x805ebc9 in execpline (state=0xbffff690, slcode=4098, how=18, last1=0)
    at exec.c:976
#7  0x805e599 in execlist (state=0xbffff690, dont_change_job=0, exiting=0)
    at exec.c:821
#8  0x805e286 in execode (p=0x401a46f0, dont_change_job=0, exiting=0)
    at exec.c:727
#9  0x8073915 in loop (toplevel=1, justonce=0) at init.c:150
#10 0x8051752 in main (argc=2, argv=0xbffff784) at ./main.c:86
(gdb) 
-- 
Tanaka Akira



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