You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
backtraces have blank lines and <unknown> instead of function names on FreeBSD #54434
changed the title [-]backtraces have <unknown> instead of function names on FreeBSD[/-][+]backtraces have blank lines and <unknown> instead of function names on FreeBSD[/+]on Sep 21, 2018
I looked at gcc git and that patch is not there. It also isn't in https://github.com/ianlancetaylor/libbacktrace (I'm not sure anymore if one repository is canonical or if merges are done both ways).
I'd suggest sending the patch as a PR to the aforementioned libbacktrace repository, then once it lands, also update the libbacktrace in rust-lang-nursery.
Activity
umanwizard commentedon Sep 21, 2018
Output for the same code on macOS -- notice that
test::mainappears on frame 6, as expected.[-]backtraces have <unknown> instead of function names on FreeBSD[/-][+]backtraces have blank lines and <unknown> instead of function names on FreeBSD[/+]estebank commentedon Sep 21, 2018
There's a downstream patch for this https://reviews.freebsd.org/D11574 (found through https://svnweb.freebsd.org/ports/head/lang/rust/files/)
Upstreamed path to gcc: https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00068.html (don't know how to tell if it's been merged)
tromey commentedon Sep 24, 2018
I looked at gcc git and that patch is not there. It also isn't in https://github.com/ianlancetaylor/libbacktrace (I'm not sure anymore if one repository is canonical or if merges are done both ways).
umanwizard commentedon Sep 24, 2018
By the way, mounting
/procfixes this. But mounting/procis considered a Linuxism so it would be best if this weren't necessary on FreeBSD.tromey commentedon Sep 26, 2018
I'd suggest sending the patch as a PR to the aforementioned libbacktrace repository, then once it lands, also update the libbacktrace in rust-lang-nursery.
Define HAVE_KERN_PROC on FreeBSD to fix rust-lang/rust#54434 (#294)
Rollup merge of rust-lang#70361 - tmiasko:backtrace, r=Mark-Simulacrum
Rollup merge of rust-lang#70361 - tmiasko:backtrace, r=Mark-Simulacrum
Rollup merge of rust-lang#70361 - tmiasko:backtrace, r=Mark-Simulacrum