Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Crash after interrupting tab-completion with Ctrl-\
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@xxxxxxxxxx> - 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)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author