-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: gdb.debug fails with command-lines containing whitespaces #2550
Comments
Ah, damn. Reverting is the way then. We have an error message suggesting setting the We can think of adding the environment variable automatically if we detect /bin/sh to point to fish and SHELL pointing to next? @k4lizen I don't like that we'd magically change the environment. |
@antifob Thanks for investigating it! Btw, is there a usecase for passing whitespace in a command line argument like that? So the problem boils down to the fact that starting gdbserver like this works:
and also this works
while starting it like this doesn't
and gdbserver reports the @peace-maker
What? You mean "if we detect SHELL pointing to fish"?
We could print an informational message about it. |
In this case, I was working on a payload passed via a command-line argument that contained a whitespace.
Although it looks weird, the first one appears a better choice.
It appears to be related to this ticket: https://sourceware.org/bugzilla/show_bug.cgi?id=28392 |
Hi,
As shown below, #2377 introduced a regression. Also of interest regarding the change is the last workaround below.
Since
fish
is known to conflict withgdb
in various ways, maybe revert the change and force aSHELL=/bin/sh
environment; or flat out inform users thatfish
isn't supported.Output
Workarounds
else
branch:gdb.debug(args, env={'a': 'b'})
The text was updated successfully, but these errors were encountered: