zsh-workers
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.net>
To: zsh-workers@zsh.org
Subject: Re: Ctrl-\ while executing a pipeline made zsh quit
Date: Tue, 26 Apr 2022 02:44:17 +0200	[thread overview]
Message-ID: <20220426004417.GB100943@zira.vinc17.org> (raw)
In-Reply-To: <20220426003649.GA100943@zira.vinc17.org>

On 2022-04-26 02:36:49 +0200, Vincent Lefevre wrote:
> With zsh 5.8.1 under Linux (zsh 5.8.1-1 Debian/unstable package),
> while I was executing a pipeline, I typed Ctrl-\ to interrupt it
> (Ctrl-C had no effect), which made unexpectedly zsh quit: SIGQUIT
> should interrupt the commands zsh starts, not the interactive shell
> itself.
> 
> The backtrace:
> 
> Core was generated by `zsh'.
> Program terminated with signal SIGQUIT, Quit.
> #0  0x00007f6e9cd2dbe8 in __GI___sigsuspend (set=set@entry=0x7ffc0653d8e0)
>     at ../sysdeps/unix/sysv/linux/sigsuspend.c:26
> 26      ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory.
[...]

More information with the full backtrace:

Thread 1 (Thread 0x7f6e9cccf740 (LWP 99414)):
#0  0x00007f6e9cd2dbe8 in __GI___sigsuspend (set=set@entry=0x7ffc0653d8e0) at ../sysdeps/unix/sysv/linux/sigsuspend.c:26
        sc_ret = -514
        sc_ret = <optimized out>
#1  0x000056392a430207 in signal_suspend (sig=sig@entry=17, wait_cmd=wait_cmd@entry=0) at ../../Src/signals.c:393
        ret = <optimized out>
        set = {__val = {2, 5440281970810964224, 9, 18446744073709551496, 9, 94803531777152, 0, 0, 94803529069392, 140113054513588, 94803529165200, 94803531761792, 94803531790544, 94803531761792, 0, 94803521934268}}
#2  0x000056392a3fae2f in zwaitjob (job=<optimized out>, wait_cmd=0) at ../../Src/jobs.c:1603
        q = 3
        jn = 0x56392aac7350
#3  0x000056392a3fb544 in waitjobs () at ../../Src/jobs.c:1673
        jn = 0x56392aac7350
#4  0x000056392a3dc64b in execpline (state=state@entry=0x7ffc0653de20, slcode=<optimized out>, how=<optimized out>, how@entry=18, last1=0) at ../../Src/exec.c:1759
        jn = 0x56392aac7350
        updated = 1
        ipipe = {0, 0}
        opipe = {0, 0}
        pj = 0
        newjob = 1
        old_simple_pline = 0
        slflags = 0
        code = <optimized out>
        lastwj = 1
        lpforked = 0
#5  0x000056392a3dd4a7 in execlist (state=state@entry=0x7ffc0653de20, dont_change_job=dont_change_job@entry=0, exiting=exiting@entry=0) at ../../Src/exec.c:1419
        isend = <optimized out>
        donedebug = <optimized out>
        this_donetrap = 0
        donetrap = 0
        next = 0x7f6e9d0665e0
        code = <optimized out>
        ret = <optimized out>
        cj = 0
        csp = 0
        ltype = 18
        old_pline_level = 0
        old_list_pipe = 0
        old_list_pipe_job = 0
        old_list_pipe_text = 0x0
        oldlineno = 19
        oldnoerrexit = 0
#6  0x000056392a3dd9a2 in execode (p=p@entry=0x7f6e9d066580, dont_change_job=dont_change_job@entry=0, exiting=exiting@entry=0, context=context@entry=0x56392a452285 "toplevel") at ../../Src/exec.c:1198
        s = {prog = 0x7f6e9d066580, pc = 0x7f6e9d0665e0, strs = 0x7f6e9d0665e4 "svnwrapper"}
        zsh_eval_context_len = 32
        alen = <optimized out>
#7  0x000056392a3f3254 in loop (toplevel=toplevel@entry=1, justonce=justonce@entry=0) at ../../Src/init.c:212
        toksav = SEPER
        prog = 0x7f6e9d066580
        err = <optimized out>
        non_empty = 1
#8  0x000056392a3f6a2e in zsh_main (argc=<optimized out>, argv=<optimized out>) at ../../Src/init.c:1779
        errexit = 0
        t = <optimized out>
        runscript = <optimized out>
        zsh_name = <optimized out>
        cmd = 0x0
        t0 = <optimized out>
#9  0x00007f6e9cd187fd in __libc_start_main (main=0x56392a3bad40 <main>, argc=1, argv=0x7ffc0653e1b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc0653e1a8) at ../csu/libc-start.c:332
        self = <optimized out>
        result = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {94803522285008, -328400302498789135, 94803521678672, 0, 0, 0, 326868374137981169, 408824851181193457}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x1, 0x7ffc0653e1b8}, data = {prev = 0x0, cleanup = 0x0, canceltype = 1}}}
        not_first_call = <optimized out>
#10 0x000056392a3bad7a in _start ()
No symbol table info available.

-- 
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)


  reply	other threads:[~2022-04-26  0:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-26  0:36 Vincent Lefevre
2022-04-26  0:44 ` Vincent Lefevre [this message]
2022-04-26  1:24 ` Bart Schaefer
2022-04-26  3:00   ` Vincent Lefevre
2022-04-26  4:05     ` Bart Schaefer
2022-04-26  9:07       ` Vincent Lefevre
2022-04-26  9:18         ` pipeline that cannot be interrupted (was: Ctrl-\ while executing a pipeline made zsh quit) Vincent Lefevre
2022-04-26 10:07           ` pipeline that cannot be interrupted Vincent Lefevre
2022-04-27 20:07             ` Bart Schaefer
2022-04-27 20:29               ` Bart Schaefer
2022-04-29  0:24                 ` Bart Schaefer

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=20220426004417.GB100943@zira.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).