dethrace icon indicating copy to clipboard operation
dethrace copied to clipboard

v0.4.0 binaries do not print symbol locations in stacktrace when failing

Open madebr opened this issue 2 years ago • 0 comments

Backtraces of releases do not contain file name + function + line number and look like the following.

******************
Caught SIGSEGV
******************

Stack trace:
0: 0x10d30e4e8
1: 0x10d2f295b
2: 0x10d338cca
3: 0x10d385ea6
4: 0x10d38611c
5: 0x10d33738d
6: 0x10d39f4ce
7: 0x10d2aec70

On Linux, this is because CI builds DethRace as PIE (Position Independent Executable) causing each function to have an offset (randomized at start). https://github.com/dethrace-labs/dethrace/pull/177 fixes this by subtracting the offset.

Macos suffers from the same issue and needs a similar fix. Related StackOverflow article

madebr avatar Sep 30 '22 20:09 madebr