Closed
Description
When panicking, every line of stack traces contain <unknown>
instead of a code location. E.g.
$ cat src/main.rs
fn main() {
panic!("Hello, world!");
}
$ RUST_BACKTRACE=full cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Running `target/debug/foo`
thread 'main' panicked at 'Hello, world!', src/main.rs:2:5
stack backtrace:
0: 0x1044d31 - <unknown>
1: 0x105c2f0 - <unknown>
2: 0x1043594 - <unknown>
3: 0x10467a8 - <unknown>
4: 0x104646c - <unknown>
5: 0x1046e35 - <unknown>
6: 0x1033764 - <unknown>
7: 0x1032fb8 - <unknown>
8: 0x1033696 - <unknown>
9: 0x1032c0c - <unknown>
10: 0x103237e - <unknown>
11: 0x1032ff1 - <unknown>
12: 0x1032cb4 - <unknown>
13: 0x10471e4 - <unknown>
14: 0x1032c92 - <unknown>
15: 0x1032c3b - <unknown>
16: 0x103210b - <unknown>
I'm on rustc 1.47.0 and FreeBSD 12.1:
$ rustc --version
rustc 1.47.0 (18bf6b4f0 2020-10-07)
$ uname -a
FreeBSD fontaine 12.1-RELEASE-p10 FreeBSD 12.1-RELEASE-p10 GENERIC amd64
Possible duplicate of #54434
I've tried mounting /proc but it didn't fix the problem.
Metadata
Metadata
Assignees
Labels
Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsCategory: This is a bug.Operating system: FreeBSDMedium priorityRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.Performance or correctness regression from one stable version to another.