From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15928 invoked by alias); 27 Oct 2014 14:40:59 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33559 Received: (qmail 28141 invoked from network); 27 Oct 2014 14:40:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Date: Mon, 27 Oct 2014 15:40:55 +0100 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: Crash after interrupting tab-completion with Ctrl-\ Message-ID: <20141027144055.GA22442@xvii.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20141027003854.GA25689@xvii.vinc17.org> <141026183105.ZM8141@torch.brasslantern.com> <141026191818.ZM8256@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <141026191818.ZM8256@torch.brasslantern.com> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6365-vl-r59709 (2014-09-07) 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=, dat=) at ../../../Src/Zle/complist.c:2078 #3 0x00007f161088880e in list_matches (dummy=, dummy2=) 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=, rp=, flags=, context=, 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=, argv=) at ../../Src/init.c:1650 #18 0x00007f1619397b45 in __libc_start_main (main=0x40f930
, argc=1, argv=0x7fffe8f7b4f8, init=, fini=, rtld_fini=, stack_end=0x7fffe8f7b4e8) at libc-start.c:287 #19 0x000000000040f95e in _start () -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)