[SERVER-31918] capture ucontext_t in sigaction handler to increase diagnosability of core dumps Created: 10/Nov/17  Updated: 30/Oct/23  Resolved: 11/Sep/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.3

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: dev_tools, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-31919 capture ucontext_t in sigaction handl... Closed
Related
Backwards Compatibility: Fully Compatible
Sprint: Platforms 2018-02-12, Platforms 2018-08-27, Platforms 2018-09-10, Platforms 2018-09-24
Participants:
Linked BF Score: 0

 Description   

The sigaction handler can accept ucontext_t. This information is useful to examine the exact state of the register file at crash. It would be particularly useful on aarch64 which maintains stack frames via a linked list in the fp register.

Currently our handler ignores this parameter.

void abruptQuitWithAddrSignal(int signalNum, siginfo_t* siginfo, void*) {
...
}



 Comments   
Comment by Githook User [ 11/Sep/18 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-31918 sigaction: give the ucontext parameter a name
Branch: master
https://github.com/mongodb/mongo/commit/7ba9a08f3d5924a5b605b2a19938eed78f7dbf86

Generated at Thu Feb 08 04:28:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.