-
Notifications
You must be signed in to change notification settings - Fork 572
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
Assertion failure with signal unblocking in Emacs #1912
Comments
FWIW, here's ths stack trace for RR itself:
|
Hmm, what was the result of that pselect call? (In other words, what's going on in rr's frame 8) |
What do you mean? The pselect hasn't returned yet. |
Oh, rr's frame 8. Let me look. |
(gdb) print regs.syscall_failed () |
Is pselect6 getting called with a NULL sigmask? From code inspection it looks like that might trigger this assertion. |
Yes. |
Ok, the bug then is that at https://github.com/mozilla/rr/blob/5e0bdeb4b71b8898edfedf754c30cf225e817799/src/RecordTask.cc#L535 we're null checking the 6th argument to pselect6, but really we should be null-checking a field within that argument. See the "The final argument of the pselect6" ... bit of https://linux.die.net/man/2/pselect6 This should be relatively straightforward for you to patch. Alternatively, I can do it when I have some spare time. |
Thanks. Patched locally. Will sent the actual patch in a few days. |
Fixed by #1928. |
I'm using rr on a modified Emacs. It mostly works, but anything with signals confuses poor rr:
Attaching GDB,
The text was updated successfully, but these errors were encountered: