zsh-workers
 help / color / mirror / code / Atom feed
* zsh 4.3.10 segfaults, bindkey -d related
@ 2010-06-29 19:18 George Cox
  2010-06-29 21:27 ` Richard Hartmann
  0 siblings, 1 reply; 2+ messages in thread
From: George Cox @ 2010-06-29 19:18 UTC (permalink / raw)
  To: zsh-workers

Hi,

I have recently been able to reliably crash zsh 4.3.10 (built via
FreeBSD ports on FreeBSD 8.0-STABLE)  Below is a stack dump I've been
able to collect from the core files.  I've been able to replicate the
first one quite easily.  I first enter an incorrect path, and press
<TAB> for completion, then press any key to continue with input and
boom.

[gjvc@beaujolais] > cd etc/zhs_
<TAB>

[gjvc@beaujolais] > cd etc/zhs/_
corrections (errors: 1)
zsh/      zsh.old/
original:
etc/zhs
<ANY KEY> 

and it crashes

#0  0x283ec44a in keybind () from /usr/local/lib/zsh/4.3.10/zsh/zle.so
#1  0x283ec55a in getkeymapcmd () from /usr/local/lib/zsh/4.3.10/zsh/zle.so
#2  0x283ec7c3 in getkeycmd () from /usr/local/lib/zsh/4.3.10/zsh/zle.so
#3  0x2844588b in cleanup_ () from /usr/local/lib/zsh/4.3.10/zsh/complist.so
#4  0x0808dabe in runhookdef ()
#5  0x28421e20 in after_complete () from /usr/local/lib/zsh/4.3.10/zsh/complete.so
#6  0x28403d49 in listlist () from /usr/local/lib/zsh/4.3.10/zsh/zle.so
#7  0x2840563c in expandorcompleteprefix () from /usr/local/lib/zsh/4.3.10/zsh/zle.so
#8  0x283ff710 in completecall () from /usr/local/lib/zsh/4.3.10/zsh/zle.so
#9  0x283f03ba in execzlefunc () from /usr/local/lib/zsh/4.3.10/zsh/zle.so
#10 0x283f063a in zlecore () from /usr/local/lib/zsh/4.3.10/zsh/zle.so
#11 0x283f0c77 in zleread () from /usr/local/lib/zsh/4.3.10/zsh/zle.so
#12 0x283f297b in getbyte () from /usr/local/lib/zsh/4.3.10/zsh/zle.so
#13 0x0807b7e8 in zleentry ()
#14 0x0807edd1 in ingetc ()
#15 0x0807a407 in casemodify ()
#16 0x08085ba6 in zshlex ()
#17 0x080a2339 in parse_event ()
#18 0x0807d569 in loop ()
#19 0x0807e33e in zsh_main ()
#20 0x08052f62 in main ()

I've tracked this down to the presence of 

    bindkey -d  # delete all existing keymaps and reset to the default state

in my zsh startup files -- if I comment out 'bindkey -d', zsh doesn't
crash.  Hope this helps someone!

best;


gjvc

-- 
George Cox
gjvc@gjvc.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: zsh 4.3.10 segfaults, bindkey -d related
  2010-06-29 19:18 zsh 4.3.10 segfaults, bindkey -d related George Cox
@ 2010-06-29 21:27 ` Richard Hartmann
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Hartmann @ 2010-06-29 21:27 UTC (permalink / raw)
  To: George Cox; +Cc: zsh-workers

On Tue, Jun 29, 2010 at 21:18, George Cox <gjvc@gjvc.com> wrote:

>    bindkey -d  # delete all existing keymaps and reset to the default state
>
> in my zsh startup files -- if I comment out 'bindkey -d', zsh doesn't
> crash.  Hope this helps someone!

Can you trigger the crash with

zsh -f
bindkey -d

If not, your config needs to be trimmed down and then sent to this
list :)


Richard


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-29 21:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-29 19:18 zsh 4.3.10 segfaults, bindkey -d related George Cox
2010-06-29 21:27 ` Richard Hartmann

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).