Closed 0-wiz-0 closed 1 month ago
any chance you could pop the core into gdb and tell me what the backtrace was (according to the core dump, as opposed to the panic)?
The core dump is not in the test program, but ld.elf_so
dumps core when it's run.
Running ld.elf_so
directly is not supported on NetBSD.
(I got this input from another NetBSD developer in the thread: https://mail-index.netbsd.org/tech-toolchain/2024/07/27/msg004465.html)
What do you want to achieve here?
Ah, I see.
I guess the test is only meant to be for platforms that support doing this.
Will be addressed by https://github.com/rust-lang/backtrace-rs/pull/645 (I could make the cfg instead be a negative one of "if not freebsd or linux, bail", but I would prefer to have more reports about this segfaulting on other systems, so I can get a better picture of which support this silliness).
Just to confirm: with #645 applied, cargo test
finishes successfully. Thank you!
As found when testing https://github.com/rust-lang/rust/issues/96914, in 0.3.73 and git head (dcd0aaa815a8f632a9febfc228cee61b4cc23bd3),
cargo test
on NetBSD dies with a segfault.Environment:
on NetBSD 10.99.11/amd64
Let me know what more information you need. Thanks!