Skip to content
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

add timeout to gdbserver #2321

Merged
merged 1 commit into from
Jan 2, 2024
Merged

Conversation

Ordoviz
Copy link
Contributor

@Ordoviz Ordoviz commented Dec 30, 2023

Bug 26116 in gdbserver causes pwn.gdb.debug() to hang on certain systems. Several users are affected by this, see #2030, #2060, and here. Since it doesn't look like the bug is getting fixed soon, we should try to detect it and offer a workaround. Many users had success with env={}. This will cause gdbserver to use /bin/sh instead of $SHELL.

I'm experiencing this bug with SHELL=/bin/fish. Setting SHELL=/bin/bash or using env={} fixes it.

@peace-maker
Copy link
Member

Can you add the info about the SHELL environment variable being the problem to that message instead of suggesting to remove all envvars. That might help when the exploit actually needs some environment variables to be set.

@Ordoviz Ordoviz force-pushed the gdbserver-timeout branch from fa0d3fc to a90cd65 Compare January 2, 2024 12:50
Copy link
Member

@peace-maker peace-maker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@peace-maker peace-maker merged commit 3bb756d into Gallopsled:dev Jan 2, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants