-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
No namespaces in backtraces on windows #32481
Comments
Looks like this may randomly get fixed by #34743 |
Using this code. mod a {
pub fn foo() { b::foo() }
mod b {
pub fn foo() { c::foo() }
mod c {
pub fn foo() { d::foo() }
mod d {
pub fn foo() { panic!("Nesting!") }
}
}
}
}
fn main() { a::foo() } This is the current situation.
When that PR lands and gets into nightly, I will post fresh results to confirm what occurs. |
The situation has indeed improved. The lack of debuginfo in the std that comes with nightly is still somewhat detrimental though, but namespaces are working.
|
Yeah, right, improved.
|
@petrochenkov Which version of Rust are you using? I'm using With
|
Ah yeah, windows gnu is still broken, but this issue is tracking whether namespaces are properly in the backtrace output, not whether backtraces work at all. Although granted it can be hard to tell whether namespaces are working when you don't get a backtrace. I'd probably close this as solved since namespaces work fine on windows platforms where backtraces do work, and if #33985 ever gets solved and it turns out namespaces don't work in gnu backtraces, then this issue can be reopened. |
This works with -g (msvc build), but without -g it's maybe even worse now:
|
(Fixed with |
Per the above from this comment, closing. Please reopen if you disagree (or let us know and we can do so). |
The
src/test/run-pass/backtrace
test exposed a difference in how windows backtraces handle namespacing. Here is what I wrote in a fixme:My hypothesis then is that backtraces on windows never show module information, only the name of the fn which failed. Perhaps @retep998 you can confirm?
cc @michaelwoerister @alexcrichton
The text was updated successfully, but these errors were encountered: