From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 026943851C05; Sun, 14 Jun 2020 02:49:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 026943851C05 From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug server/26116] New: gdbserver with zsh as the shell hangs at startup when .zshenv forks Date: Sun, 14 Jun 2020 02:49:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: simark at simark dot ca 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Sun, 14 Jun 2020 02:49:05 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26116 Bug ID: 26116 Summary: gdbserver with zsh as the shell hangs at startup when .zshenv forks Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: server Assignee: unassigned at sourceware dot org Reporter: simark at simark dot ca Target Milestone: --- When using zsh as the shell and a command that forks in ~/.zshenv, like `/bin/echo` here (plain `echo` is the shell builtin, which doesn't fork): $ cat ~/.zshenv=20 echo Before /bin/echo Hello echo After ... gdbserver hangs at startup $ SHELL=3Dzsh ./gdbserver localhost:9000 /bin/ls=20 Before Hello Note that when using a similar bash feature, the BASH_ENV environment varia= ble, it doesn't hang: $ SHELL=3Dbash BASH_ENV=3D~/.zshenv ./gdbserver localhost:9000 /bin/ls=20 Before Hello After Process /bin/ls created; pid =3D 745096 Listening on port 9000 It's also possible that the issue is in zsh, but I haven't dug enough to understand what's happening exactly. --=20 You are receiving this mail because: You are on the CC list for the bug.=