-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rr assertion due to GDB bug #2474
Comments
It's probably getting confused by my trying to block SIGTRAP. Maybe we should add an rr command line flag that renames recorded SIGTRAPs to some other signal to help gdb out. |
does that SIGTRAP handler work with gdb without rr? |
I don't know. GDB's signal handing code is extremely brittle. I've never gotten it to do what I actually want. It does usually work fairly well with rr though. |
That seems a bit ad-hoc. I think the most important thing to do is file an upstream gdb bug and maybe fix it. If fixing it is impractical or you need a solution fast then we could add a workaround for the gdb bug I guess. |
I've managed to debug gdb, and filed an upstream issue with a proposed patch that fixes this issue for me: https://sourceware.org/bugzilla/show_bug.cgi?id=25741 |
Thank you very very much! |
This is with GDB version
The sequence of commands I enter is:
The full rr log is available here: https://gist.githubusercontent.com/Keno/6b100e21e505f5d98a2593695717405e/raw/e3b8dee2bf2804969be16930ef6cb799cef2d735/rrlog
The rr assertion failure is:
The relevant gdb packages causing the failure are:
Notice that gdb requested a software breakpoint the second time around, but still tried to remove it as a hardware breakpoint, triggering the rr assertion.
The text was updated successfully, but these errors were encountered: