Skip to content

Demo currently doesn't work.  #22

Open
@roblabla

Description

When running the demo example on my machine (64-bit linux) using a new-ish nightly (rustc 1.33.0-nightly (b2b7a063a 2019-01-01)), unwind-rs crashes.

[roblabla@roblab unwind-rs]$ cargo run --example demo
    Finished dev [unoptimized + debuginfo] target(s) in 0.05s
     Running `target/debug/examples/demo`
thread 'main' panicked at 'test panic', unwind/examples/demo.rs:13:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NoUnwindInfoForAddress', src/libcore/result.rs:999:5
thread panicked while processing panic. aborting.
Illegal instruction (core dumped)

Did something break?

thread 'main' panicked at 'test panic', unwind/examples/demo.rs:13:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "" at 0x55eeb9d7b000 with 12 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "linux-vdso.so.1" at 0x7ffeca7bd000 with 4 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "/usr/lib/libdl.so.2" at 0x7f0c1e6bb000 with 10 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "/usr/lib/librt.so.1" at 0x7f0c1e6b1000 with 10 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "/usr/lib/libpthread.so.0" at 0x7f0c1e690000 with 12 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "/usr/lib/libc.so.6" at 0x7f0c1e4cc000 with 13 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "/lib64/ld-linux-x86-64.so.2" at 0x7f0c1e6e6000 with 10 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] CFI sections: [EhRef { obj_base: 94483808497664, text: AddrRange { start: 94483808497664, end: 94483808814184 }, cfi: AddrRange { start: 94483811286948, end: 94483811366512 }, ehframe_end: 94483811902144 }, EhRef { obj_base: 140732295532544, text: AddrRange { start: 140732295532544, end: 140732295536411 }, cfi: AddrRange { start: 140732295534548, end: 140732295534616 }, ehframe_end: 140732295536411 }, EhRef { obj_base: 139690026708992, text: AddrRange { start: 139690026708992, end: 139690026712592 }, cfi: AddrRange { start: 139690026717348, end: 139690026717544 }, ehframe_end: 139690026725520 }, EhRef { obj_base: 139690026668032, text: AddrRange { start: 139690026668032, end: 139690026676000 }, cfi: AddrRange { start: 139690026693472, end: 139690026694044 }, ehframe_end: 139690026707448 }, EhRef { obj_base: 139690026532864, text: AddrRange { start: 139690026532864, end: 139690026556824 }, cfi: AddrRange { start: 139690026621920, end: 139690026624380 }, ehframe_end: 139690026664392 }, EhRef { obj_base: 139690024681472, text: AddrRange { start: 139690024681472, end: 139690024817672 }, cfi: AddrRange { start: 139690026312016, end: 139690026337076 }, ehframe_end: 139690026530368 }, EhRef { obj_base: 139690026885120, text: AddrRange { start: 139690026885120, end: 139690026889328 }, cfi: AddrRange { start: 139690027038432, end: 139690027040212 }, ehframe_end: 139690027061528 }]
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x55eeba037670 sz 82c50
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x7ffeca7bd818 sz 703
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x7f0c1e6bd168 sz 1f28
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x7f0c1e6b75a0 sz 3458
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x7f0c1e6a6580 sz 9c48
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x7f0c1e660338 sz 2f308
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x7f0c1e70bdd8 sz 5340
[2019-01-03T23:20:27Z DEBUG unwind] caller is 0x55eeb9fa3519
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NoUnwindInfoForAddress', src/libcore/result.rs:999:5
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "" at 0x55eeb9d7b000 with 12 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "linux-vdso.so.1" at 0x7ffeca7bd000 with 4 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "/usr/lib/libdl.so.2" at 0x7f0c1e6bb000 with 10 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "/usr/lib/librt.so.1" at 0x7f0c1e6b1000 with 10 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "/usr/lib/libpthread.so.0" at 0x7f0c1e690000 with 12 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "/usr/lib/libc.so.6" at 0x7f0c1e4cc000 with 13 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] "/lib64/ld-linux-x86-64.so.2" at 0x7f0c1e6e6000 with 10 segments
[2019-01-03T23:20:27Z TRACE unwind::find_cfi::imp] CFI sections: [EhRef { obj_base: 94483808497664, text: AddrRange { start: 94483808497664, end: 94483808814184 }, cfi: AddrRange { start: 94483811286948, end: 94483811366512 }, ehframe_end: 94483811902144 }, EhRef { obj_base: 140732295532544, text: AddrRange { start: 140732295532544, end: 140732295536411 }, cfi: AddrRange { start: 140732295534548, end: 140732295534616 }, ehframe_end: 140732295536411 }, EhRef { obj_base: 139690026708992, text: AddrRange { start: 139690026708992, end: 139690026712592 }, cfi: AddrRange { start: 139690026717348, end: 139690026717544 }, ehframe_end: 139690026725520 }, EhRef { obj_base: 139690026668032, text: AddrRange { start: 139690026668032, end: 139690026676000 }, cfi: AddrRange { start: 139690026693472, end: 139690026694044 }, ehframe_end: 139690026707448 }, EhRef { obj_base: 139690026532864, text: AddrRange { start: 139690026532864, end: 139690026556824 }, cfi: AddrRange { start: 139690026621920, end: 139690026624380 }, ehframe_end: 139690026664392 }, EhRef { obj_base: 139690024681472, text: AddrRange { start: 139690024681472, end: 139690024817672 }, cfi: AddrRange { start: 139690026312016, end: 139690026337076 }, ehframe_end: 139690026530368 }, EhRef { obj_base: 139690026885120, text: AddrRange { start: 139690026885120, end: 139690026889328 }, cfi: AddrRange { start: 139690027038432, end: 139690027040212 }, ehframe_end: 139690027061528 }]
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x55eeba037670 sz 82c50
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x7ffeca7bd818 sz 703
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x7f0c1e6bd168 sz 1f28
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x7f0c1e6b75a0 sz 3458
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x7f0c1e6a6580 sz 9c48
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x7f0c1e660338 sz 2f308
[2019-01-03T23:20:27Z TRACE unwind] cfi at 0x7f0c1e70bdd8 sz 5340
[2019-01-03T23:20:27Z DEBUG unwind] caller is 0x55eeb9fa3580
thread panicked while processing panic. aborting.
Illegal instruction (core dumped)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions