-
Notifications
You must be signed in to change notification settings - Fork 13.3k
NetBSD: backtrace support broken #96914
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
Comments
@rustbot modify labels +O-netbsd +A-runtime |
Patches fixing this now exist: |
If you submit the backtrace stuff to https://github.com/rust-lang/backtrace-rs then I will try to get it merged. |
Oh, it was submitted to backtrace in rust-lang/backtrace-rs#512 Is there anything left? |
Thank you for looking at this, @workingjubilee !
I also tried my original test program with rust 1.79:
That's what it should look like, right? |
uh that seems incorrect. |
Oh, true. I was just happy that the backtrace had function names instead of |
Should I file a new ticket with backtrace-rs about the segfault? |
Yeees, let's do that and call this issue good. |
I tried this code:
I expected to see this happen:
(provided by a friendly Linux user)
Instead, this happened (on NetBSD)
I see this instead:
Meta
rustc --version --verbose
:Backtrace
Yes, exactly that's the problem.
On the C level, I know that Linux provides the backtrace() family of functions in libc.
NetBSD provides all the functions too, but you need to link against libexecinfo, see
https://man.netbsd.org/backtrace.3
So I guess it's probably not too hard to add, I hope someone can take this on.
The text was updated successfully, but these errors were encountered: