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

Re: segfault on menu-select



> To generate the manuals, you need the `yodl' package.

I had installed this because even "make" failed without it, but "make 
install" still wouldn't work afterwards. On a new checkout it however 
does, so never mind.
 
> From a fresh checkout, here's what I usually do:
> 
> % ./Util/preconfig
> % /configure  --enable-cap --enable-function-subdirs \
>               --enable-largefile --enable-maildir-support \
>               --enable-multibyte --enable-pcre --enable-zsh-debug
> % make
> % su
> # make install
> 
> Then when you've crashed the application, you can load the core file
> together with the program's binary and use the "bt full" command to
> produce a backtrace.
> 
> To put the backtrace to a file, the following oneliner works:
> 
> % gdb -c core /usr/local/bin/zsh <<< $'bt full\nquit\n' > backtrace.txt
> 
> Where `core' is the core file and `/usr/local/bin/zsh' being the
> installed zsh binary which you just crashed.
> 
> The backtrace will only be useful if the zsh binary is from a debugging
> build.

Ok, apart from a "warning: Can't read pathname for load map: 
Input/output error." it looks like this has worked. I've attached the 
result.

Best,
Philipp
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/zsh...done.
Reading symbols from /lib/libpcre.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libpcre.so.3
Reading symbols from /lib/libcap.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libcap.so.2
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libncursesw.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libncursesw.so.5
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libattr.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libattr.so.1
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/local/lib/zsh/4.3.10-dev-2/zsh/parameter.so...done.
Loaded symbols for /usr/local/lib/zsh/4.3.10-dev-2/zsh/parameter.so
Reading symbols from /usr/local/lib/zsh/4.3.10-dev-2/zsh/zle.so...done.
Loaded symbols for /usr/local/lib/zsh/4.3.10-dev-2/zsh/zle.so
Reading symbols from /usr/local/lib/zsh/4.3.10-dev-2/zsh/complete.so...done.
Loaded symbols for /usr/local/lib/zsh/4.3.10-dev-2/zsh/complete.so
Reading symbols from /usr/local/lib/zsh/4.3.10-dev-2/zsh/zutil.so...done.
Loaded symbols for /usr/local/lib/zsh/4.3.10-dev-2/zsh/zutil.so
Reading symbols from /usr/local/lib/zsh/4.3.10-dev-2/zsh/complist.so...done.
Loaded symbols for /usr/local/lib/zsh/4.3.10-dev-2/zsh/complist.so
Reading symbols from /usr/local/lib/zsh/4.3.10-dev-2/zsh/computil.so...done.
Loaded symbols for /usr/local/lib/zsh/4.3.10-dev-2/zsh/computil.so
Core was generated by `zsh'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f5cb77a3b92 in ?? () from /lib/libc.so.6
(gdb) #0  0x00007f5cb77a3b92 in ?? () from /lib/libc.so.6
No symbol table info available.
#1  0x00007f5cb63b76eb in instmatch (m=0x1776660, scs=0x7fff5707cf2c) at compresult.c:634
        l = 4
        r = 14
        ocs = 19
        a = 5
        brb = 0
        bradd = 0
        brpos = 0x7fff5707ce50
        bp = 0x7f5cb65fd7ac
#2  0x00007f5cb63b87bb in do_single (m=0x1776660) at compresult.c:989
        l = 0
        sr = 0
        scs = 0
        havesuff = 0
        partest = 1
        str = 0x5d8 <Address 0x5d8 out of bounds>
        ppre = 0x7f5cb7a84e98 "p\001\202\001"
        psuf = 0x9 <Address 0x9 out of bounds>
        prpre = 0x21 <Address 0x21 out of bounds>
#3  0x00007f5cb63a3616 in do_completion (dummy=0x7f5cb6810f68, dat=0x7fff5707d060) at compcore.c:413
        m = 0x1811e50
        ret = 0
        lst = 0
        incmd = 0
        osl = 0
        s = 0x1812140 ""
        opm = 0x1776700 ""
        n = 0x7f5cb7a84e40
#4  0x00000000004632a9 in runhookdef (h=0x7f5cb6810f68, d=0x7fff5707d060) at module.c:996
No locals.
#5  0x00007f5cb65fa1d5 in docompletion (s=0x1812140 "", lst=0, incmd=0) at zle_tricky.c:2179
        dat = {s = 0x1812140 "", lst = 0, incmd = 0}
#6  0x00007f5cb65f5a00 in docomplete (lst=0) at zle_tricky.c:859
        active = 1
        s = 0x1812140 ""
        ol = 0x0
        olst = 0
        chl = 0
        ne = 0
        ocs = 5
        ret = 0
        dat = {0, 0}
#7  0x00007f5cb65f3e54 in menucomplete (args=0x7f5cb68114c8) at zle_tricky.c:247
No locals.
#8  0x00007f5cb5f8a63d in menuselect (args=0x7f5cb68114c8) at complist.c:3378
        d = 0
#9  0x00007f5cb65e221f in execzlefunc (func=0x178d4d0, args=0x7f5cb68114c8, set_bindk=0) at zle_main.c:1333
        wflags = 645
        r = 0
        ret = 0
        remetafy = 0
        w = 0x178d470
        save_bindk = 0x178d4d0
#10 0x00007f5cb65e15c4 in zlecore () at zle_main.c:1058
No locals.
#11 0x00007f5cb65e1d32 in zleread (lp=0x6d6358, rp=0x0, flags=3, context=0) at zle_main.c:1227
        s = 0x0
        old_errno = 22
        tmout = 0
        initthingy = 0x0
#12 0x00007f5cb65e4821 in zle_main_entry (cmd=1, ap=0x7fff5707d510) at zle_main.c:1889
        lp = 0x6d6358
        rp = 0x0
        flags = 3
        context = 0
#13 0x000000000044be61 in zleentry (cmd=1) at init.c:1354
        ret = 0x0
        ap = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fff5707d610, 
            reg_save_area = 0x7fff5707d550}}
#14 0x000000000044c8c1 in inputline () at input.c:281
        flags = 3
        ingetcline = 0x0
        ingetcpmptl = 0x6d6358
        ingetcpmptr = 0x0
        context = 0
#15 0x000000000044c738 in ingetc () at input.c:217
        lastc = 0
#16 0x0000000000441180 in ihgetc () at hist.c:279
        c = 0
#17 0x0000000000456375 in gettok () at lex.c:694
        c = 0
        d = 0
        peekfd = -1
        peek = 0
#18 0x0000000000455b3e in zshlex () at lex.c:381
No locals.
#19 0x0000000000477203 in parse_event () at parse.c:451
No locals.
#20 0x0000000000448f01 in loop (toplevel=1, justonce=0) at init.c:132
        prog = 0x1771420
        err = 1000
        non_empty = 0
#21 0x000000000044c32d in zsh_main (argc=1, argv=0x7fff5707d8d8) at init.c:1508
        t = 0x7fff5707d8e0
        runscript = 0x0
        t0 = 158
#22 0x000000000040ff44 in main (argc=1, argv=0x7fff5707d8d8) at ./main.c:93
No locals.
(gdb) 

Attachment: signature.asc
Description: Digital signature



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