[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: |
|
||||||||||||||||
| 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: |