From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18552 invoked from network); 1 Aug 2020 15:11:05 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 1 Aug 2020 15:11:05 -0000 Received: (qmail 21667 invoked by alias); 1 Aug 2020 15:10:52 -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: List-Unsubscribe: Sender: zsh-workers@zsh.org X-Seq: 46288 Received: (qmail 20027 invoked by uid 1010); 1 Aug 2020 15:10:51 -0000 X-Qmail-Scanner-Diagnostics: from joooj.vinc17.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25884. spamassassin: 3.4.4. Clear:RC:0(155.133.131.76):SA:0(-1.9/5.0):. Processed in 1.929401 secs); 01 Aug 2020 15:10:51 -0000 X-Envelope-From: vincent@vinc17.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Sat, 1 Aug 2020 17:10:11 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Ctrl-\ during completion makes zsh quit Message-ID: <20200801151011.GA1065919@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.14.5+76 (bb407ec3) vl-127292 (2020-06-24) Ctrl-\ during completion makes zsh quit. To reproduce the problem with "zsh -f" under Debian/unstable: Run the following commands: zstyle ':completion:*' menu select=long autoload -U compinit compinit Then ';' followed by [Tab]. I get: zsh: do you wish to see all 6124 possibilities (3062 lines)? Type [Tab] again, then Ctrl-\. I get: [...] _gem lnstat _generic ^\zsh: quit (core dumped) zsh -f The backtrace: Core was generated by `zsh -f'. Program terminated with signal SIGQUIT, Quit. #0 0x00007fbddaddaef3 in __GI___libc_write (fd=10, buf=0x561d9de07240 , nbytes=8192) at ../sysdeps/unix/sysv/linux/write.c:26 26 ../sysdeps/unix/sysv/linux/write.c: No such file or directory. (gdb) bt #0 0x00007fbddaddaef3 in __GI___libc_write (fd=10, buf=0x561d9de07240 , nbytes=8192) at ../sysdeps/unix/sysv/linux/write.c:26 #1 0x00007fbddad6c625 in _IO_new_file_write (f=0x561d9e7b12c0, data=0x561d9de07240 , n=8192) at fileops.c:1176 #2 0x00007fbddad6b996 in new_do_write (fp=fp@entry=0x561d9e7b12c0, data=0x561d9de07240 "lp\033[27m", ' ' , "\033[27m\033[J\n_history_modifiers\033[27m", ' ' , "\033[27m \033[27m\033[Jlp_solve\033[27m", ' ' , "\033[27m\033[J\n_host\033[27m", ' ' , "\033[27m \033[27"..., to_do=to_do@entry=8192) at libioP.h:948 #3 0x00007fbddad6d6c9 in _IO_new_do_write (to_do=8192, data=, fp=0x561d9e7b12c0) at fileops.c:423 #4 _IO_new_do_write (fp=fp@entry=0x561d9e7b12c0, data=, to_do=8192) at fileops.c:423 #5 0x00007fbddad6db9f in _IO_new_file_overflow (f=0x561d9e7b12c0, ch=32) at fileops.c:765 #6 0x00007fbdda6413a9 in clprintm (g=g@entry=0x561d9ea8e3a0, mp=mp@entry=0x561d9ea847d0, mc=mc@entry=1, ml=ml@entry=645, lastc=lastc@entry=1, width=36) at ../../../Src/Zle/complist.c:1886 #7 0x00007fbdda642a5e in compprintlist (showall=) at ../../../Src/Zle/complist.c:1621 #8 complistmatches (dummy=, dat=) at ../../../Src/Zle/complist.c:2098 #9 0x00007fbddabe847e in list_matches (dummy=, dummy2=) at ../../../Src/Zle/compresult.c:2317 #10 0x00007fbddac1de06 in zrefresh () at ../../../Src/Zle/zle_refresh.c:1769 #11 0x00007fbddac10f36 in zlecore () at ../../../Src/Zle/zle_main.c:1186 #12 0x00007fbddac11dcc in zleread (lp=, rp=, flags=, context=, init=0x7fbddac3041d "zle-line-init", finish=0x7fbddac3040d "zle-line-finish") at ../../../Src/Zle/zle_main.c:1350 #13 0x0000561d9dd84558 in zleentry (cmd=cmd@entry=1) at ../../Src/init.c:1627 #14 0x0000561d9dd85ac1 in inputline () at ../../Src/input.c:295 #15 ingetc () at ../../Src/input.c:228 #16 0x0000561d9dd85c2f in ingetc () at ../../Src/input.c:196 #17 0x0000561d9dd7d7a7 in ihgetc () at ../../Src/hist.c:408 #18 0x0000561d9dd8f2f6 in gettok () at ../../Src/lex.c:611 #19 zshlex () at ../../Src/lex.c:275 #20 0x0000561d9dd9008e in zshlex () at ../../Src/lex.c:268 #21 0x0000561d9ddaf4a6 in parse_event (endtok=endtok@entry=37) at ../../Src/parse.c:581 #22 0x0000561d9dd80e79 in loop (toplevel=toplevel@entry=1, justonce=justonce@entry=0) at ../../Src/init.c:150 #23 0x0000561d9dd84b7e in zsh_main (argc=, argv=) at ../../Src/init.c:1781 #24 0x00007fbddad12cca in __libc_start_main (main=0x561d9dd48d40
, argc=2, argv=0x7ffc3568ef38, init=, fini=, rtld_fini=, stack_end=0x7ffc3568ef28) at ../csu/libc-start.c:308 #25 0x0000561d9dd48d7a in _start () BTW, in addition to the SIGQUIT issue, it shouldn't be that easy to generate so much output for the completions (I did that by mistake). -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)