Skip to content
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

Implement .eh_frame writing #982

Merged
merged 1 commit into from
Apr 25, 2020
Merged

Implement .eh_frame writing #982

merged 1 commit into from
Apr 25, 2020

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Apr 25, 2020

thread 'main' panicked at 'explicit panic', example/std_example.rs:8:5
stack backtrace:
   0: backtrace::backtrace::libunwind::trace
             at /home/bjorn/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86
   1: backtrace::backtrace::trace_unsynchronized
             at /home/bjorn/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66
   2: std::sys_common::backtrace::_print_fmt
             at sysroot_src/src/libstd/sys_common/backtrace.rs:78
   3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at sysroot_src/src/libstd/sys_common/backtrace.rs:59
   4: core::fmt::write
             at sysroot_src/src/libcore/fmt/mod.rs:1069
   5: std::io::Write::write_fmt
             at sysroot_src/src/libstd/io/mod.rs:1504
   6: std::sys_common::backtrace::_print
             at sysroot_src/src/libstd/sys_common/backtrace.rs:62
   7: std::sys_common::backtrace::print
             at sysroot_src/src/libstd/sys_common/backtrace.rs:49
   8: std::panicking::default_hook::{{closure}}
             at sysroot_src/src/libstd/panicking.rs:198
   9: std::panicking::default_hook
             at sysroot_src/src/libstd/panicking.rs:218
  10: std::panicking::rust_panic_with_hook
             at sysroot_src/src/libstd/panicking.rs:511
  11: std::panicking::begin_panic
             at sysroot_src/src/libstd/panicking.rs:438
  12: std_example::main
             at example/std_example.rs:8
  13: std::rt::lang_start::{{closure}}
             at ./build_sysroot/sysroot_src/src/libstd/rt.rs:67
  14: std::rt::lang_start_internal::{{closure}}::{{closure}}
             at sysroot_src/src/libstd/rt.rs:52

This currently requires debuginfo to be enabled. It also doesn't work for jitted code.

@bjorn3 bjorn3 added C-enhancement Category: An issue proposing an enhancement or a PR with one. A-debuginfo Area: Debugging information at runtime in generated code. labels Apr 25, 2020
@bjorn3 bjorn3 merged commit 7dbbfe6 into master Apr 25, 2020
@bjorn3 bjorn3 deleted the backtrace_support branch April 25, 2020 16:33
@bjorn3 bjorn3 mentioned this pull request Apr 25, 2020
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information at runtime in generated code. C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant