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

Re: Bug#439425: Random, but fairly regular, zsh segfaults



On Fri, Aug 24, 2007 at 05:40:26PM -0700, Robin Lee Powell wrote:
> zsh does the following to me fairly regularily; this seems different
> to me than the other segfault bug reports.  It seems to do it
> slightly more often in my root shells.  It seems to motly occur when
> I'm typing ahead (due to engaging in complicated history searching
> or whatever during machine slowdowns).
> 
> I'm not sure how to get further data on this; it's pretty random.
> I'd be happy to work with the maintainer or upstream people, but
> note that I'm AFK from 28 Aug 2007 to 11 Sep 2007.

What are your history-related options?  What are the values of $HISTSIZE
and $SAVEHIST ?

> root@xxxxxxxxxxxxxxxxxxxxxxxx> *** glibc detected *** -su: munmap_chunk(): invalid pointer: 0x0000000000710c70 ***       /etc/exim4
> ======= Backtrace: =========
> /lib/libc.so.6(cfree+0x1b6)[0x2b66d38806b6]
> /usr/lib/zsh/4.3.4/zsh/zle.so[0x2b66d439aeb0]
> /usr/lib/zsh/4.3.4/zsh/zle.so(vihistorysearchbackward+0x6f)[0x2b66d439be9f]
> /usr/lib/zsh/4.3.4/zsh/zle.so(execzlefunc+0xd8)[0x2b66d43a1438]
> /usr/lib/zsh/4.3.4/zsh/zle.so(zlecore+0xed)[0x2b66d43a1a9d]
> /usr/lib/zsh/4.3.4/zsh/zle.so(zleread+0x41b)[0x2b66d43a20db]
> -su(ingetc+0x120)[0x43d080]
> -su[0x437f1a]
> -su(gettok+0x1b)[0x445a5b]
> -su(yylex+0x18)[0x446258]
> -su(parse_event+0x27)[0x461867]
> -su(loop+0x58)[0x43baa8]
> -su(zsh_main+0x1dc)[0x43c80c]
> /lib/libc.so.6(__libc_start_main+0xf4)[0x2b66d3828b44]
> -su[0x40f5b9]
> ======= Memory map: ========
> 00400000-00492000 r-xp 00000000 07:00 6246972                            /bin/zsh4
> 00691000-00697000 rw-p 00091000 07:00 6246972                            /bin/zsh4
> 00697000-00732000 rw-p 00697000 00:00 0                                  [heap]
> 2b66d2cf2000-2b66d2d0f000 r-xp 00000000 07:00 2965513                    /lib/ld-2.6.1.so
> 2b66d2d0f000-2b66d2d16000 rw-p 2b66d2d0f000 00:00 0
> 2b66d2f0e000-2b66d2f10000 rw-p 0001c000 07:00 2965513                    /lib/ld-2.6.1.so
> 2b66d2f10000-2b66d2f12000 r-xp 00000000 07:00 2965522                    /lib/libdl-2.6.1.so
> 2b66d2f12000-2b66d3112000 ---p 00002000 07:00 2965522                    /lib/libdl-2.6.1.so
> 2b66d3112000-2b66d3114000 rw-p 00002000 07:00 2965522                    /lib/libdl-2.6.1.so
> 2b66d3114000-2b66d3129000 r-xp 00000000 07:00 2965514                    /lib/libnsl-2.6.1.so
> 2b66d3129000-2b66d3329000 ---p 00015000 07:00 2965514                    /lib/libnsl-2.6.1.so
> 2b66d3329000-2b66d332b000 rw-p 00015000 07:00 2965514                    /lib/libnsl-2.6.1.so
> 2b66d332b000-2b66d332d000 rw-p 2b66d332b000 00:00 0
> 2b66d332d000-2b66d337b000 r-xp 00000000 07:00 11571957                   /lib/libncurses.so.5.6
> 2b66d337b000-2b66d357a000 ---p 0004e000 07:00 11571957                   /lib/libncurses.so.5.6
> 2b66d357a000-2b66d3589000 rw-p 0004d000 07:00 11571957                   /lib/libncurses.so.5.6
> 2b66d3589000-2b66d3609000 r-xp 00000000 07:00 2965526                    /lib/libm-2.6.1.so
> 2b66d3609000-2b66d3808000 ---p 00080000 07:00 2965526                    /lib/libm-2.6.1.so
> 2b66d3808000-2b66d380a000 rw-p 0007f000 07:00 2965526                    /lib/libm-2.6.1.so
> 2b66d380a000-2b66d380b000 rw-p 2b66d380a000 00:00 0
> 2b66d380b000-2b66d3958000 r-xp 00000000 07:00 2965518                    /lib/libc-2.6.1.so
> 2b66d3958000-2b66d3b58000 ---p 0014d000 07:00 2965518                    /lib/libc-2.6.1.so
> 2b66d3b58000-2b66d3b5b000 r--p 0014d000 07:00 2965518                    /lib/libc-2.6.1.so
> 2b66d3b5b000-2b66d3b5d000 rw-p 00150000 07:00 2965518                    /lib/libc-2.6.1.so
> 2b66d3b5d000-2b66d3b63000 rw-p 2b66d3b5d000 00:00 0
> 2b66d3b63000-2b66d3b6a000 r-xp 00000000 07:00 2965519                    /lib/libnss_compat-2.6.1.so
> 2b66d3b6a000-2b66d3d6a000 ---p 00007000 07:00 2965519                    /lib/libnss_compat-2.6.1.so
> 2b66d3d6a000-2b66d3d6c000 rw-p 00007000 07:00 2965519                    /lib/libnss_compat-2.6.1.so
> 2b66d3d6c000-2b66d3d76000 r-xp 00000000 07:00 2965512                    /lib/libnss_nis-2.6.1.so
> 2b66d3d76000-2b66d3f75000 ---p 0000a000 07:00 2965512                    /lib/libnss_nis-2.6.1.so
> 2b66d3f75000-2b66d3f77000 rw-p 00009000 07:00 2965512                    /lib/libnss_nis-2.6.1.so
> 2b66d3f77000-2b66d3f81000 r-xp 00000000 07:00 2965527                    /lib/libnss_files-2.6.1.so
> 2b66d3f81000-2b66d4180000 ---p 0000a000 07:00 2965527                    /lib/libnss_files-2.6.1.so
> 2b66d4180000-2b66d4182000 rw-p 00009000 07:00 2965527                    /lib/libnss_files-2.6.1.so
> 2b66d4183000-2b66d4185000 r-xp 00000000 07:00 13058896                   /usr/lib/zsh/4.3.4/zsh/terminfo.so
> 2b66d4185000-2b66d4384000 ---p 00002000 07:00 13058896                   /usr/lib/zsh/4.3.4/zsh/terminfo.so
> 2b66d4384000-2b66d4385000 rw-p 00001000 07:00 13058896                   /usr/lib/zsh/4.3.4/zsh/terminfo.so
> 2b66d4385000-2b66d43be000 r-x%



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