-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 print error and crash #41193
Comments
Thanks for the report, @chabapok! This is strange. I'm pretty sure we never create forward declarations in debuginfo, since there is no such thing in Rust. Does the error also occur when you choose a different name for |
With different name for |
@chabapok Thanks for finding that out! That's very interesting and suggests that we can do something about this on our side. |
For me (rustc 1.23.0-nightly (246a6d1 2017-11-23), lldb version 5.0.0):
|
DWARF output for enums is being changed in #32920. However there is still a fallback mode that emits what is done now.
Looking a the DWARF I see this for
and a bit later, the
One idea would be to move the variant type definition to be a child of Probably lldb is confused by having two types of the same name in the same scope. Another solution, once it is ready, is to switch to the rust-enabled lldb, which does not have this problem. |
See #32920 (comment) and #32920 (comment). These are bugs in rustc that will be fixed by #54004. |
Doesn't appear fixed yet, even though the linked commits are present in 1.32:
|
I'm getting the same error as above:
Unfortunately, I haven't been able to create a reduced test case, so I'm not too sure what to do to help in debugging this. Meta
|
On macOS 10.15 Beta (19A526h), with both rustc 1.36.0 (a53f9df 2019-07-03) and rustc 1.38.0-nightly (b0e40bf 2019-08-02) I'm getting:
I can send you the file(s) if that helps. (cc #57822) |
I suspect some people may be ending up here due to the diagnostic: "error: need to add support for DW_TAG_base_type '()' encoded with DW_ATE = 0x7, bit_size = 0" But I think this bug as written is not focused on that detail, but rather than the issue that (I may file a separate issue about the |
I just got that error today. Running this tutorial https://mahdi.blog/rust-box-str-vs-string/ - when you get to the "thread backtrace". |
I tried to debug wth lldb this code:
When try to set breakpoint to line 22 and print b1:
ubuntu 14.04, x64, rustc 1.18.0-nightly
llvm,clang,lldb builded from master branch
The text was updated successfully, but these errors were encountered: