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: 8.1.1 -> 8.2, rework debug-info-from-env #46229
Conversation
Success on x86_64-linux (full log) Attempted: gdb Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: gdb Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: gdb Partial log (click to expand)
|
Dunno what's going on with Darwin, but can confirm that this works with debug-from-env using dwarffs! |
2a38bf0
to
c81817e
Compare
Failure on x86_64-darwin (full log) Attempted: gdb Partial log (click to expand)
|
Timed out, unknown build status on x86_64-linux (full log) Attempted: gdb Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: gdb Partial log (click to expand)
|
Gdb does not work from nixpkgs on darwin anyway because it is not signed at the moment, which is required for ptrace users. |
I can also confirm that GDB 8.2 built with #48113 works well in practice on NixOS. |
Do you know if the two patches are meaningfully different? |
Related: what's the policy or best practice here, regarding Darwin breakage? I feel bad introducing build breakage but on the other hand it doesn't make sense to stall indefinitely -- but it's unclear right now if that's what's happening :). Hmm well first step is to at least ping the right folks, thought I did this originally whoops! cc @NixOS/darwin-maintainers . |
@dtzWill Not everybody is as considerate, lots of things get merged even if it breaks the darwin build. And that's arguably fine for things that don't have a large impact or are not particularly useful. On darwin gdb doesn't work out of the box because the binary needs to be codesigned, so it's probably not a big deal. |
I'd still be curious to know what's going wrong with it. The ofBorg logs don't seem to load. Can anyone see what's going wrong? Does the other PR not break it? |
gettext format-security errors, I had a quick look but it needs a bit more investigation. |
Beep boop, ping! |
You can disable "format" hardening here to fix it. It's weird that Clang errors but GCC doesn't. It seems like they both should on this. It would be good to get a patch here for GDB to fix these. |
So I was about to do as you suggest, but then I saw this:
.... o_O |
This hasn't been merged yet?? Haha whoopsy! Closing in favor of new PR optimistically :). |
gdb seems to work in my limited testing,
but I can't verify the dwarffs thing works
-- when I tried to check I couldn't get
it working before or after this change.
Comments/thoughts/testing welcome :).
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)