-
Notifications
You must be signed in to change notification settings - Fork 93
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
gdb not working with distrod #22
Comments
Thanks for reporting. Yeah, I didn't think of the situation where Distrod's shell is invoked by the debugger. I'll fix it. By the way, I appreciate it if you could follow the template from next time for a bug report. This time I was able to guess the cause regardless of the environment, but I can't do that every time. |
I created a fix for this in #48 |
It turns out that my fix does not completely fix the issue. While the debugging is somewhat working, for example setting breakpoints before running is not. I found the reason for that. And an old comment gives some information of why it doesn't work.
I don't think there's an easy for that, but perhaps there's a way to redefine the $SHELL environment variable to the real shell once wsl-distrod is stared. But there are a few workarounds that users can do.
Note that these workarounds can be applied without the linked pull request. |
Hi thanks so much for trying to fix it and the workaround, @fredizzimo ! Yes actually it needs two fixes; one is fix drop privilege, the another is bind-mounting the real shell on /opt/distrod/alias/usr/bin/*sh. I was working on it before getting busy, and now I have time and am resuming the work. |
Has this problem been fixed now? |
this problem still persists. When will it be resolved? |
When I run a program in gdb I get the following error message:
[Distrod][ERROR] Failed to drop_privilege. Aborting.
If I disable distrod debugging goes fine without any problems.
For the time being I simply disable distrod whenever I have to use gdb however a permanent solution would be greatly appreciated.
The text was updated successfully, but these errors were encountered: