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

Comments

Projects
None yet
6 participants
@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

This comment has been minimized.

Copy link
Contributor Author

bholley commented Sep 1, 2016

@michaelwoerister

This comment has been minimized.

Copy link
Contributor

michaelwoerister commented Sep 1, 2016

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 label Sep 1, 2016

@larsbergstrom

This comment has been minimized.

Copy link
Contributor

larsbergstrom commented Sep 15, 2016

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

This comment has been minimized.

Copy link
Contributor

michaelwoerister commented Sep 15, 2016

I'll see if I can reproduce it.

@luser

This comment has been minimized.

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

This comment has been minimized.

Copy link
Contributor

brson commented Sep 22, 2016

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

@bholley

This comment has been minimized.

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

This comment has been minimized.

Copy link
Contributor

michaelwoerister commented Sep 22, 2016

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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Contributor

michaelwoerister commented Sep 23, 2016

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
You can’t perform that action at this time.