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

Re: segfault on menu-select



On Aug 12,  7:33pm, Philipp Hartwig wrote:
}
} #1  0x00007f5cb63b76eb in instmatch (m=0x1776660, scs=0x7fff5707cf2c) at compresult.c:634
} #2  0x00007f5cb63b87bb in do_single (m=0x1776660) at compresult.c:989
} #3  0x00007f5cb63a3616 in do_completion (dummy=0x7f5cb6810f68, dat=0x7fff5707d060) at compcore.c:413
} #4  0x00000000004632a9 in runhookdef (h=0x7f5cb6810f68, d=0x7fff5707d060) at module.c:996

Interesting.  I can't even reproduce that stack trace.  If I put a
breakpoint in instmatch I get this trace:

#0  instmatch (m=0x8211d18, scs=0xbfebb2c4)
    at ../../../zsh-4.0/Src/Zle/compresult.c:580
#1  0x081032b3 in do_single (m=0x8211d18)
    at ../../../zsh-4.0/Src/Zle/compresult.c:989
#2  0x081041c6 in do_ambig_menu ()
    at ../../../zsh-4.0/Src/Zle/compresult.c:1404
#3  0x08102b1f in do_ambiguous () at ../../../zsh-4.0/Src/Zle/compresult.c:767
#4  0x080f31b3 in do_completion (dummy=0x815f8b4, dat=0xbfebb3d0)
    at ../../../zsh-4.0/Src/Zle/compcore.c:401
#5  0x080914da in runhookdef (h=0x815f8b4, d=0xbfebb3d0)
    at ../../zsh-4.0/Src/module.c:996

So that means you've hit this branch in compcore.c:

        } else if (nmatches == 1 || (nmatches > 1 && !diffmatches)) {

So I can force my shell through that same branch by hitting ^o in a
directory containing exactly one file, but I still don't get a crash.

What does "ls" show just before you begin completing?

-- 



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