Open yuyichao opened 7 years ago
This is kinda low priority because accessing $_siginfo already ruins the rr session even when rr doesn't crash.
(because of the way we use a request for siginfo to trigger a DiversionSession, and we don't have a good alternative to that)
That's useful to know since I uses $_siginfo
a lot when I don't want to use the disassemble and register values to figure out the faulting address.....
Would it be easier to at least document this and maybe add a custom command to do this?
That sounds like a good idea although I don't think people who use $_siginfo will discover it easily. Then again, $_siginfo itself is a very obscure feature.
That sounds like a good idea although I don't think people who use $_siginfo will discover it easily.
I agree it'll be hard to discover if normal use of $_siginfo
does not issue a warning/error. (At least I'll use it if it exists ;-p )
Still worth documenting though (unless it is already?). I've probably messed up a dozen replay session this way without realizing it......
Then again, $_siginfo itself is a very obscure feature.
Any alternative? This still seems to be the simplest way to tell the segfaulting address. I don't know why gdb doesn't print the faulting address just like lldb does by default.
I can't see a way to get gdb to do something automatically when a SIGSEGV is reported :-(.
The following simple program triggers a stack overflow assuming a stack limit is set (default).
During replay of this, if I access
$_siginfo
right after the segfault happens, rr fails with an assertion error.c.c. @Keno