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

Re: Bug#426161: zsh: crashes in reverse_menu



On Sat, May 26, 2007 at 10:54:26PM +0200, Jörg Sommer wrote:
> Hi,
> 
> after typing “vared CF” I've called “reverse-menu-complete” with M-x and
> zsh crashes. This also happens in zsh-beta 4.3.4-dev-0+20070516-1 and is
> not #416970.
> 
> % gdb zsh
> <0,2416>(iBook):~% vared CF 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0fbc87d8 in reverse_menu (dummy=0xfc3be40, dummy2=0x0)
>     at ../../../Src/Zle/compresult.c:1231
> 1231    ../../../Src/Zle/compresult.c: No such file or directory.
>         in ../../../Src/Zle/compresult.c
> (gdb) bt
> #0  0x0fbc87d8 in reverse_menu (dummy=0xfc3be40, dummy2=0x0)
>     at ../../../Src/Zle/compresult.c:1231
> #1  0x1004a4c8 in runhookdef ()
> #2  0x0fc19e2c in reversemenucomplete (args=<value optimized out>)
>     at ../../../Src/Zle/zle_tricky.c:357
> #3  0x0fc13738 in completecall (args=<value optimized out>)
>     at ../../../Src/Zle/zle_tricky.c:208
> #4  0x0fc04eec in execzlefunc (func=0xfc39804, args=0xfc3be40, 
>     set_bindk=269896152) at ../../../Src/Zle/zle_main.c:1254
> #5  0x0fc0510c in zlecore () at ../../../Src/Zle/zle_main.c:1019
> #6  0x0fc057e4 in zleread (lp=<value optimized out>, rp=<value optimized out>, 
>     flags=<value optimized out>, context=<value optimized out>)
>     at ../../../Src/Zle/zle_main.c:1174
> #7  0x100394b4 in ingetc ()
> #8  0x10034264 in ?? ()
> #9  0x10041b7c in gettok ()
> #10 0x100425e4 in yylex ()
> #11 0x10060c08 in parse_event ()
> #12 0x10037a94 in loop ()
> #13 0x1003883c in zsh_main ()
> #14 0x1000b8b0 in main ()

This is because reverse_menu() is trying to dereference minfo.group
which is NULL.



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