[SERVER-26130] RLP memory errors cause deadlock in unittests Created: 15/Sep/16  Updated: 24/Mar/17  Resolved: 19/Sep/16

Status: Closed
Project: Core Server
Component/s: Text Search
Affects Version/s: 3.3.12
Fix Version/s: 3.3.14

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-18479 Clang Address Sanitizer errors with R... Closed
related to SERVER-28498 Stop running the rlp* tasks on the "E... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2016-09-19
Participants:
Linked BF Score: 0

 Description   

The RLP library has various memory errors that tcmalloc detects in debug builds. When TCMalloc detects an error it will log the error, and call abort() while holding a spinlock. Our abort handler prints stack traces by calling backtrace() and this function needs to allocate memory on most architectures. This memory allocation will thus cause a deadlock in the spinlock since the spinlock is not recursive.



 Comments   
Comment by Githook User [ 16/Sep/16 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-26130 RLP memory errors cause deadlock in unittests
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/1e5d4a621d8082add601c071308b991d76440229

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