-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 isn't working #544
Comments
Hi @anudeepreddy, thanks a lot for reporting this issue! I'd love to get I suspect that it's now safe to enable To allow
(Source.) More details:
By default,
This is just a minor warning, which shouldn't prevent |
@geropl also raised two additional (Gitpod-specific) security concerns with enabling
|
I just noticed that your dockerfile includes this command:
This won't work in a dockerfile, and there is currently no way for users to configure Gitpod's container runtime options (for example we don't want to allow However, as mentioned above, we could consider adding |
Hi, is GDB supposed to work as of now? I checked it with this executable
|
Hi @ckoncz-hwx, thanks for giving
The first blocker was removed by Docker on recent Linux Kernels, but the second one we still need to address in Gitpod, by granting the I'll try to add the SYS_PTRACE capability in Gitpod as a prototype, and update this issues with any findings. |
Is there a way to have the IDE debugger to work with binary programs, I think adding launch configurations for binary programs would be useful. |
Any updates regarding |
Good news! We've decided to give enabling We'll start by enabling |
That's super amazing |
The issue persists even after creating a new workspace.
Maybe the change is not deployed to production yet? |
@jankeromnes it seems that the issue still persists |
Indeed, sorry for accidentally closing this issue too soon. We've deployed a fix in our staging environment to test it. |
Is there a way to test my workspace in the staging environment? |
@weliveindetail Thank you for offering to test this. Unfortunately, our staging environment isn't public because it sees frequent, experimental deployments which often aren't ready or fully tested yet. However, we're planning to release this feature later this month. I don't have a precise ETA yet, but I'll close this issue when it goes live. |
deployed |
Had a chance to test it now. GDB still outputs a scary warning, but debugging works!
Thank you! |
Awesome! Thanks for the update @ckoncz-hwx 👍
Yes, the "warning: Error disabling address space randomization: Operation not permitted" message looks a bit worrying, but you can safely ignore it. FYI, it's because GDB tries to make a few things more stable by default, because it makes some sorts of debugging a bit easier, but GDB also works really well without that. You can disable this feature with |
Still have this problem.
|
1) contents of dockerfile:
FROM gitpod/workspace-full:latest
USER root
RUN apt-get update && apt-get install -y
gdb
lldb
fuse libfuse-dev
&& apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* && docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined
2) contents of gitpod.yml
image:
file: Dockerfile
ports:
tasks:
Error:
warning: Error disabling address space randomization: Operation not permitted
warning: Could not trace the inferior process.
Error:
warning: ptrace: Operation not permitted
During startup program exited with code 127
The text was updated successfully, but these errors were encountered: