From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ED2DF398B813; Wed, 5 May 2021 02:14:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED2DF398B813 From: "corydoras at ridiculousfish dot com" To: gdb-prs@sourceware.org Subject: [Bug server/26116] gdbserver with zsh as the shell hangs at startup when .zshenv forks Date: Wed, 05 May 2021 02:14:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: server X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: corydoras at ridiculousfish dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2021 02:14:02 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26116 ridiculous_fish changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |corydoras at ridiculousfis= h dot co | |m --- Comment #2 from ridiculous_fish -= -- fish shell is also seeing this - see https://github.com/fish-shell/fish-shell/issues/7957 My investigation got as far as follows: gdbserver forks in preparation for exec'ing the shell. Before exec, it requests ptrace on itself (in `linux_ptrace_fun`). This causes signals to be delivered to gdbserver before the inferior shell; however gdbserver does not then arrange for the signal = to be delivered to the shell so it is dropped. fish (and presumably zsh) relie= s on SIGCHLD to reap processes, so fish ends up hanging. --=20 You are receiving this mail because: You are on the CC list for the bug.=