zsh-workers
 help / color / mirror / code / Atom feed
From: "Hiroto Kagotani" <hiroto.kagotani@gmail.com>
To: zsh-workers@sunsite.dk
Subject: Segmentation fault on Ctrl-D
Date: Wed, 7 May 2008 16:35:05 +0900	[thread overview]
Message-ID: <ca15a72c0805070035v3c872950m85b9f5b377d46196@mail.gmail.com> (raw)

Hi there,

I'm new to this list so please let me know if I'm missing any important
information.

zsh (CVS, 4.3.6, 4.3.4 on FreeBSD, and 4.3.4 on Cygwin) crashes
when I type a key sequence followed by two Ctrl-D's.

zsh -f
q<TAB><TAB><^D><^D>
 -> Segmentation fault

"q" may be any letter.  If you have a lot of commands begin with the letter,
type three <TAB>s to force zsh choose a candidate.


In my case, the first candidate beginning with "q" is qembed, and the gdb
back trace for the latest CVS is as follows:

Program received signal SIGSEGV, Segmentation fault.
0x28276783 in zlelineasstring (instr=0x0, inll=6, incs=6, outllp=0x80d7c00,
    outcsp=0x80d7c3c, useheap=0) at zle_utils.c:198
198             j = wcrtomb(s + mb_len, instr[i], &mbs);
(gdb) bt
#0  0x28276783 in zlelineasstring (instr=0x0, inll=6, incs=6,
    outllp=0x80d7c00, outcsp=0x80d7c3c, useheap=0) at zle_utils.c:198
#1  0x28270bd3 in metafy_line () at zle_tricky.c:960
#2  0x2825f1ce in execzlefunc (func=0x28281dc0, args=0x28284900, set_bindk=0)
    at zle_main.c:1356
#3  0x2825e3a4 in zlecore () at zle_main.c:1043
#4  0x2825ea46 in zleread (lp=0x80d7e08, rp=0x0, flags=3, context=0)
    at zle_main.c:1205
#5  0x080808d8 in autoload_zleread (lp=0x80d7e08, rp=0x0, ha=3, con=0)
    at init.c:1227
#6  0x080810c9 in inputline () at input.c:278
#7  0x08080f7f in ingetc () at input.c:214
#8  0x08077bbf in ihgetc () at hist.c:240
#9  0x0808807e in gettok () at lex.c:663
#10 0x08087951 in yylex () at lex.c:350
#11 0x080a1365 in parse_event () at parse.c:451
#12 0x0807e1f6 in loop (toplevel=1, justonce=0) at init.c:134
#13 0x08080bd1 in zsh_main (argc=2, argv=0xbfbfe3ec) at init.c:1358
#14 0x08052316 in main (argc=2, argv=0xbfbfe3ec) at ./main.c:93

Thanks.
-- 
Hiroto Kagotani
<hiroto.kagotani@gmail.com>


             reply	other threads:[~2008-05-07  7:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-07  7:35 Hiroto Kagotani [this message]
2008-05-07  8:46 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ca15a72c0805070035v3c872950m85b9f5b377d46196@mail.gmail.com \
    --to=hiroto.kagotani@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).