public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug server/26116] New: gdbserver with zsh as the shell hangs at startup when .zshenv forks
@ 2020-06-14  2:49 simark at simark dot ca
  2020-12-04  6:23 ` [Bug server/26116] " dajiang0055 at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: simark at simark dot ca @ 2020-06-14  2:49 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26116

            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 
echo Before
/bin/echo Hello
echo After

... gdbserver hangs at startup

$ SHELL=zsh ./gdbserver localhost:9000 /bin/ls 
Before
Hello
<hangs here>

Note that when using a similar bash feature, the BASH_ENV environment variable,
it doesn't hang:

$ SHELL=bash BASH_ENV=~/.zshenv ./gdbserver localhost:9000 /bin/ls 
Before
Hello
After
Process /bin/ls created; pid = 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-22 12:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-14  2:49 [Bug server/26116] New: gdbserver with zsh as the shell hangs at startup when .zshenv forks simark at simark dot ca
2020-12-04  6:23 ` [Bug server/26116] " dajiang0055 at gmail dot com
2021-05-05  2:14 ` corydoras at ridiculousfish dot com
2024-04-22 12:44 ` k4lizen at proton dot me

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 read-only IMAP folder(s) and NNTP newsgroup(s).