[SERVER-72334] Improve diagnostic logging for SIGSEGV, SIGBUS, SIGILL, and SIGFPE Created: 21/Dec/22 Updated: 29/Oct/23 Resolved: 05/Sep/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Vojislav Stojkovic | Assignee: | Vojislav Stojkovic |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | auto-reverted | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Service Arch
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | Service Arch 2023-01-23, Service Arch 2023-02-06, Service Arch 2023-05-15, Service Arch 2023-07-24, Service Arch 2023-08-07, Service Arch 2023-08-21, Service Arch 2023-09-04, Service Arch 2023-09-18 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 5 | ||||||||
| Description |
|
Currently, when we receive SIGSEGV, SIGBUS, SIGILL, or SIGFPE, we only log the following information:
While this information is often enough, there are cases where we need more diagnostic information than what we log right now, information which is available in our signal handler, but discarded by it. Furthermore, because our signal handler ends up calling raise to terminate the process, the contents of siginfo_t that get written to the core dump don't correspond to the siginfo_t we receive in our signal handler. At the very minimum we should:
Further possible improvements are to log:
|
| Comments |
| Comment by Githook User [ 05/Sep/23 ] |
|
Author: {'name': 'Vojislav Stojkovic', 'email': 'vojislav.stojkovic@mongodb.com', 'username': 'vstojkovic-mongodb'}Message: |
| Comment by Billy Donahue [ 13/Aug/23 ] |
|
Oops there's no SIG_TKILL on macOS |
| Comment by xgen-buildbaron-user [ 12/Aug/23 ] |
|
Ticket re-opened due to revert. compile_unittests began a consistent failure of compile_unittests |
| Comment by Githook User [ 12/Aug/23 ] |
|
Author: {'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com', 'username': ''}Message: Revert " This reverts commit 2b7c62ee73f7bea6800cb5bc91e6de51af34df75. |
| Comment by Githook User [ 11/Aug/23 ] |
|
Author: {'name': 'Vojislav Stojkovic', 'email': 'vojislav.stojkovic@mongodb.com', 'username': 'vstojkovic-mongodb'}Message: |
| Comment by Vojislav Stojkovic [ 21/Dec/22 ] |
|
More info on extracting and interpreting x86_64-specific information: https://stackoverflow.com/questions/17671869/how-to-identify-read-or-write-operations-of-page-fault-when-using-sigaction-hand |