-
Notifications
You must be signed in to change notification settings - Fork 12.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
dwarfdump errors on debug info generated by rustc 1.19 in Firefox build #44412
Comments
I can reproduce with
|
Both |
@tromey, have you tried Fedora's own package? |
Thanks @cuviper - I'd looked for it but didn't manage to find that package. I get:
It's hard to say which part is troubling |
And note that this doesn't seem to come from a Rust CU at all (but to clarify, not saying this wasn't originally the case; it's possible I'm seeing a different failure than the OP) |
I let
Still not that helpful; though I did check that those |
Interesting! If you run: does it still barf on that same CU? The other possible culprit here is GCC 6, although I think that binary was built from a nightly before we switched (per https://hg.mozilla.org/mozilla-central/rev/db36870cee64). |
Yes, that's how I got the error I saw.
|
@tromey I think 0x008cf760 is referring to the offset value that is invalid, not the offset where the invalid value is. Have a look at the DIE that is offset 0x0000f6c2 within the CU that starts at 0x2aea982f. Here's what gimli's dwarfdump gives:
This is within a unit that is only length 0x1a154. I'm not sure what form that DW_AT_type is, but if it is a unit-relative offset then it seems wrong. |
Haha, yeah, that makes sense, doesn't it. |
Just wanted to report back - after several fun adventures I still don't have a good answer; but I do think my earlier statements were wrong and there's a bug here. |
Triage: has anyone seen this lately? both rust and firefox are quite different, two years later. |
I tried with the libxul.so.dbg from Firefox 70 (https://s3-us-west-2.amazonaws.com/org.mozilla.crash-stats.symbols-public/v1/libxul.so/4B768AB4B534F6A880006855AE30129E0/libxul.so.dbg.gz) and the |
I was doing some inspection of Firefox debug symbols related to a crash, and dwarfdump errored out on me. The binary I was dumping is here, which is from a fairly recent Firefox nightly build (2017-08-16). I was running
dwarfdump -S any=Element22AddSizeOfExcludingThis ./libxul.so.dbg
when it crashed, but it looks like any dwarfdump command that causes it to read far enough into the DWARF will make it barf. Just asking it to print the DIEs for that CU makes it error pretty quickly:dwarfdump -u /builds/worker/workspace/build/src/media/libcubeb/cubeb-pulse-rs/src/lib.rs ./libxul.so.dbg
.I'm using a fairly recent dwarfdump on Ubuntu 17.04:
cc @michaelwoerister
The text was updated successfully, but these errors were encountered: