Segmentation fault
Closed this issue · 2 comments
mkroening commented
When running the rust example on 484a8bd, I get Segmentation fault (core dumped)
.
This is the first commit with this issue.
tlambertz commented
How did you run the example?
On current master, i get
…/examples/rust > cargo +nightly run
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/tom/git/rftrace/examples/hermitrust/Cargo.toml
workspace: /home/tom/git/rftrace/Cargo.toml
Compiling rftrace v0.1.0
Compiling rftrace-rs-test v0.1.0 (/home/tom/git/rftrace/examples/rust)
Finished dev [unoptimized + debuginfo] target(s) in 0.31s
Running `/home/tom/git/rftrace/target/debug/rftrace-rs-test`
Hello, world!
test1
test2
test3
Saving traces to disk...!
0x55b7b25e3ba0, Events { ptr: 0x55b7b25e3ba0, len: 2000, cap: 2000 }
Parsing TID 1...!
Writing to disk: 18 events, 288 bytes (tracedir/1.dat)
Parsed all events!
Creating fake uftrace data dir at tracedir..
Creating ./info
feats = TASK_SESSION | SYM_REL_ADDR
info = CMDLINE | TASKINFO
cmdline = 'fakeuftrace'
tid = [1]
Creating ./task.txt
pid = 42
sid = 00
exe = test
Creating (incorrect) ./sid-00.map by copying /proc/self/maps
You should generate symbols with `nm -n $BINARY > tracedir/$BINARY.sym`
INFO: Linux mode is NOT fully supported yet! To get symbols working, you have to
edit the sid-00.map and merge the section for each binary, so that it only occurs once.
Needs to contain at least [stack] and the binaries you want symbols of.
mkroening commented
Ah, yes. Sorry, I forgot to specify, that you need to change the example's Cargo.toml
to actually use the local rftrace
crates instead of 0.1.0
from crates.io.