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

lldb crash on stack frame with closure: DWARF DIE at 0x000a7888 (class closure) has a member variable 0x000a788e (__0) whose type is a forward declaration, not a complete definition #36185

Closed
bholley opened this issue Sep 1, 2016 · 10 comments
Assignees
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) P-high High priority T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@bholley
Copy link
Contributor

bholley commented Sep 1, 2016

After stumbling upon #33062, I grabbed a copy of XCode 8 Beta and tried out lldb to debug assertion in Stylo (experimental Servo-in-Firefox). When I try to backtrace or |up| my way through a stackframe with a closure, lldb aborts:

error: libgkrust.a(geckoservo.0.o) DWARF DIE at 0x000a7888 (class closure) has a member variable 0x000a788e (__0) whose type is a forward declaration, not a complete definition.
Please file a bug against the compiler and include the preprocessed output for /files/mozilla/repos/qq/obj-x86_64-apple-darwin15.6.0/toolkit/library/rust/geckoservo

Interested in any suggestions or workarounds.

@bholley
Copy link
Contributor Author

bholley commented Sep 1, 2016

Any thoughts @michaelwoerister?

CC @eddyb @alexcrichton @Manishearth

@michaelwoerister
Copy link
Member

Hm, that's interesting. I didn't think that we produced forward declarations anywhere. Seems like a bug on our side though.

@sfackler sfackler added the A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) label Sep 1, 2016
@larsbergstrom
Copy link
Contributor

Looking at https://bugzilla.mozilla.org/show_bug.cgi?id=1301751, this problem is probably pretty high-priority as it is breaking the ability to get stack backtraces for Firefox on macOS.

@michaelwoerister
Copy link
Member

I'll see if I can reproduce it.

@michaelwoerister michaelwoerister self-assigned this Sep 15, 2016
@michaelwoerister michaelwoerister added P-high High priority T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 15, 2016
@luser
Copy link
Contributor

luser commented Sep 20, 2016

I'm not entirely sure if this is the same bug as https://bugzilla.mozilla.org/show_bug.cgi?id=1301751 or not. We don't see that error message, we just see llvm-dsymutil crashing.

@brson brson added the I-wrong label Sep 22, 2016
@brson
Copy link
Contributor

brson commented Sep 22, 2016

@michaelwoerister just pinging you for updates on this P-high bug.

@bholley
Copy link
Contributor Author

bholley commented Sep 22, 2016

Looks like michael is working with ted to reproduce the issue in https://bugzilla.mozilla.org/show_bug.cgi?id=1301751 . If whatever fix is uncovered there doesn't fix the lldb issue, I'll get repro steps together.

@michaelwoerister
Copy link
Member

So, investigations on that other, possibly related, bug yielded that the problem only occurs with Rust 1.11 stable, but doesn't occur with the current beta any more. @bholley, could you try reproducing the issue with the current Rust beta?

@bholley
Copy link
Contributor Author

bholley commented Sep 23, 2016

The code seems to have changed since I encountered this problem, and the closure is gone. I tried to reintroduce it, but couldn't reproduce the problem.

I'll see if this reproduces in the coming weeks, and if so, will make sure I try with 1.12 or newer.

@michaelwoerister
Copy link
Member

OK, I'll close this bug then. Can't leave a P-high issue open without being able to reproduce it.
Be sure to open a new issue of another problem pops up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) P-high High priority T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

6 participants