mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 16:40:42 +08:00
24 lines
507 B
Plaintext
24 lines
507 B
Plaintext
|
|
https://github.com/epasveer/seer/issues/181
|
|
|
|
I can reproduce it like this:
|
|
|
|
Create a segfaulting file, e.g. this mnwe.cpp file:
|
|
|
|
int main() {
|
|
int * i = nullptr;
|
|
*i = 42;
|
|
|
|
return 0;
|
|
}
|
|
|
|
Compile as g++ -g -O0 mnwe.cpp -o mnwe
|
|
|
|
Record the trace using rr: rr record --output-trace-dir=rrrun ./mnwe (you should see the segfault)
|
|
|
|
Start seergdb with this trace: seergdb --rr rrrun
|
|
|
|
When seergbd stops before main(), make sure that the 'Locals' tab is open
|
|
Hit F8 to run the trace
|
|
|