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

Syntax error on "function ..." causes crash



zagzig% function
function> :

Program received signal SIGSEGV, Segmentation fault.
0x8075445 in ugetnode (list=0x0) at ../../zsh-3.1.6/Src/linklist.c:164
164         if (!(node = list->first))
(gdb) where
#0  0x8075445 in ugetnode (list=0x0) at ../../zsh-3.1.6/Src/linklist.c:164
#1  0x805d102 in execfuncdef (state=0xbffff6a4, do_exec=0)
    at ../../zsh-3.1.6/Src/exec.c:3086
#2  0x8056c9e in execsimple (state=0xbffff6a4)
    at ../../zsh-3.1.6/Src/exec.c:757
#3  0x8056da7 in execlist (state=0xbffff6a4, dont_change_job=0, exiting=0)
    at ../../zsh-3.1.6/Src/exec.c:801
#4  0x8056b93 in execode (p=0x400e1720, dont_change_job=0, exiting=0)
    at ../../zsh-3.1.6/Src/exec.c:727
#5  0x806ae61 in loop (toplevel=1, justonce=0)
    at ../../zsh-3.1.6/Src/init.c:152
#6  0x806d444 in zsh_main (argc=2, argv=0xbffff734)
    at ../../zsh-3.1.6/Src/init.c:1197
#7  0x804a694 in main (argc=2, argv=0xbffff734)
    at ../../zsh-3.1.6/Src/main.c:37

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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