From: Vincent Lefevre <vincent@vinc17.net>
To: zsh-workers@zsh.org
Subject: Re: Crash after interrupting tab-completion with Ctrl-\
Date: Mon, 27 Oct 2014 15:40:55 +0100 [thread overview]
Message-ID: <20141027144055.GA22442@xvii.vinc17.org> (raw)
In-Reply-To: <141026191818.ZM8256@torch.brasslantern.com>
On 2014-10-26 19:18:18 -0700, Bart Schaefer wrote:
> On Oct 26, 6:31pm, Bart Schaefer wrote:
> }
> } In fact even with a trap on QUIT in place, the stty quit character does
> } not seem to do anything until an external process is in the foreground.
>
> zsetterm() disables the tty quit character, along with a bunch of others.
> So if you were able to use it, you'd somehow gotten out of ZLE.
Apparently not. I can reproduce the problem.
$ ls Mail/oldarc/cur/1[TAB]
zsh: do you wish to see all 140500 possibilities (70251 lines)?
Then I type 'y', followed by Ctrl-\.
[...]
1061504484.3678_503.ay:2,S 1215744604.19156_1028.prunille:2,S
1061504484.3678_505.ay:2,S 1215744604.19156_1030.prunille:2,S
1061504484.3678_507.ay:2,S 1215744604.19156_1032.prunille:2,S
1061504484.3678_509.ay:2,S 1215744604.19156_1034.prunille:2,S
1061504484.3678_511.ay:2,S 1215744604.19156_1036.prunille:2,S
106150448^\zsh: quit (core dumped) zsh
xvii:~> gdb =zsh core
GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1
[...]
Core was generated by `zsh'.
Program terminated with signal SIGQUIT, Quit.
#0 0x00007f1610886453 in skipnolist (p=0x3153510, showall=showall@entry=0)
at ../../../Src/Zle/compresult.c:1488
1488 ../../../Src/Zle/compresult.c: No such file or directory.
(gdb) bt
#0 0x00007f1610886453 in skipnolist (p=0x3153510, showall=showall@entry=0)
at ../../../Src/Zle/compresult.c:1488
#1 0x00007f1610459fb1 in compprintlist (showall=0)
at ../../../Src/Zle/complist.c:1623
#2 complistmatches (dummy=<optimized out>, dat=<optimized out>)
at ../../../Src/Zle/complist.c:2078
#3 0x00007f161088880e in list_matches (dummy=<optimized out>,
dummy2=<optimized out>) at ../../../Src/Zle/compresult.c:2334
#4 0x00007f1610ab743a in zrefresh () at ../../../Src/Zle/zle_refresh.c:1731
#5 0x00007f1610aac946 in zlecore () at ../../../Src/Zle/zle_main.c:1147
#6 0x00007f1610aad452 in zleread (lp=<optimized out>, rp=<optimized out>,
flags=<optimized out>, context=<optimized out>,
init=0x7f1610ac8621 "zle-line-init",
finish=0x7f1610ac8611 "zle-line-finish")
at ../../../Src/Zle/zle_main.c:1289
#7 0x000000000043e582 in zleentry (cmd=cmd@entry=1) at ../../Src/init.c:1495
#8 0x000000000043f4c1 in inputline () at ../../Src/input.c:285
#9 ingetc () at ../../Src/input.c:221
#10 0x000000000043f685 in ingetc () at ../../Src/input.c:224
#11 0x00000000004382eb in ihgetc () at ../../Src/hist.c:282
#12 0x0000000000448bde in gettok () at ../../Src/lex.c:720
#13 zshlex () at ../../Src/lex.c:401
#14 0x00000000004496ee in zshlex () at ../../Src/lex.c:398
#15 0x0000000000464ec7 in parse_event () at ../../Src/parse.c:454
#16 0x000000000043b7c9 in loop (toplevel=toplevel@entry=1,
justonce=justonce@entry=0) at ../../Src/init.c:132
#17 0x000000000043ebee in zsh_main (argc=<optimized out>, argv=<optimized out>)
at ../../Src/init.c:1650
#18 0x00007f1619397b45 in __libc_start_main (main=0x40f930 <main>, argc=1,
argv=0x7fffe8f7b4f8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffe8f7b4e8) at libc-start.c:287
#19 0x000000000040f95e in _start ()
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
next prev parent reply other threads:[~2014-10-27 14:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-27 0:38 Vincent Lefevre
2014-10-27 1:31 ` Bart Schaefer
2014-10-27 2:18 ` Bart Schaefer
2014-10-27 8:16 ` Mikael Magnusson
2014-10-27 14:40 ` Vincent Lefevre [this message]
2014-10-27 14:51 ` Vincent Lefevre
2014-10-28 16:24 ` Bart Schaefer
2014-10-27 14:32 ` Vincent Lefevre
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=20141027144055.GA22442@xvii.vinc17.org \
--to=vincent@vinc17.net \
--cc=zsh-workers@zsh.org \
/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).