mozilla/rust — Issue #1650: Backtraces are not very useful on Mac
Author: catamorphism
Created: 2012-01-24 22:24:55+00:00
State: open
Labels: MacOS, rt, unassigned

If I do ```export RUST_LOG=rt.backtrace``` and then compile and run the following program:

```
fn z() { fail "fleh"; }

fn y() { z(); }

fn x() { y(); }

fn main() {
x();
}
```

I would expect to see a backtrace that mentions the functions main, x, y, and z. Instead, I get:

```
rust: upcall fail 'fleh', ./src/test/run-fail/bt-test.rs:1
0 librustrt.dylib 0x0000000102511279 __morestack + 9
```

I've seen similar results when running other programs. The stack trace says something about ```__morestack``` but nothing about function calls corresponding to the code the user wrote.