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

stack trace line numbers are missing on macos #25677

Closed
MarkSwanson opened this issue May 21, 2015 · 3 comments
Closed

stack trace line numbers are missing on macos #25677

MarkSwanson opened this issue May 21, 2015 · 3 comments
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) O-macos Operating system: macOS

Comments

@MarkSwanson
Copy link

compile: cargo build
run: RUST_BACKTRACE=1 cargo run
I just created a new cargo package and tested:
let x: Option = None;
x.unwrap();

I get:

$ RUST_BACKTRACE=1 cargo run
     Running `target/debug/rust-test3`
thread '<main>' panicked at 'called `Option::unwrap()` on a `None` value', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:362
stack backtrace:
   1:        0x1029e584f - sys::backtrace::write::hed569beb2862f85e32r
   2:        0x1029e8954 - panicking::on_panic::h6dbd1b68aa86e4f8uiw
   3:        0x1029e3e25 - rt::unwind::begin_unwind_inner::h0090d3e6f66b12ced0v
   4:        0x1029e412c - rt::unwind::begin_unwind_fmt::h47bc7a034f0ef64ejZv
   5:        0x1029e820c - rust_begin_unwind
   6:        0x102a05705 - panicking::panic_fmt::hbe1ae31b7ff09e37r3B
   7:        0x102a05084 - panicking::panic::h8a5faffa625e9e8aY1B
   8:        0x1029e29fe - option::Option<T>::unwrap::h6200398639833531646
   9:        0x1029e0d79 - main::h1c8acf58c698985ekaa
  10:        0x1029e98a8 - rust_try_inner
  11:        0x1029e9895 - rust_try
  12:        0x1029e90b0 - rt::lang_start::h212432a14b948ee6Zcw
  13:        0x1029e2a6e - main
An unknown error occurred

I'm on a mac.
$ rustc --version
rustc 1.2.0-nightly (0cc99f9 2015-05-17) (built 2015-05-17)

Fyi it works perfectly / as expected on Linux.

@steveklabnik steveklabnik added the A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) label May 21, 2015
@sfackler sfackler added O-macos Operating system: macOS A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) and removed A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) labels May 21, 2015
@sfackler
Copy link
Member

Not sure if debuginfo is quite the right label, but seems closeish.

@TimNN
Copy link
Contributor

TimNN commented Aug 10, 2015

Looks like a dupe of #24346

@jdm
Copy link
Contributor

jdm commented Aug 10, 2015

Yep.

@jdm jdm closed this as completed Aug 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) O-macos Operating system: macOS
Projects
None yet
Development

No branches or pull requests

5 participants