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

Re: segfaults in 4.0.2



On Sep 8, 11:34am, Clint Adams wrote:
}
} Yes.  It doesn't happen with -f.
} I can reproduce it this way:
} 
} prompt ${${(z):-adam1 adam2 bigfade clint elite2}[RANDOM%5]}
} coproc || echo test

Hmm, the `pc' field in the wordcode state struct is messed up:

Breakpoint 1, ecgetstr (s=0xbffff6bc, dup=0, tok=0x0)
    at ../../zsh-4.0/Src/parse.c:2102
2102        wordcode c = *s->pc++;
(gdb) n
2105        if (c == 6 || c == 7)
(gdb) p s->strs
$6 = 0x4011b190 "echo"
(gdb) p c
$7 = 1074856044

This causes ecgetstr() to return a garbage pointer.

We may have to wait for Sven to get back ...

-- 
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