[SERVER-29688] ASAN failures should produce core dumps Created: 16/Jun/17 Updated: 30/Oct/23 Resolved: 13/Jul/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build, Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.11 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Spencer Jackson | Assignee: | Spencer Jackson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | neweng, platforms-interns-2017 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Platforms 2017-07-10, Platforms 2017-07-31 |
| Participants: |
| Description |
|
This would help debug ASAN failures. The following ASAN_OPTIONS are needed: The following environment variable also useful to get addresses of leaked objects: |
| Comments |
| Comment by Githook User [ 13/Jul/17 ] | |||||||||||||||||||
|
Author: {u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}Message: | |||||||||||||||||||
| Comment by Spencer Jackson [ 19/Jun/17 ] | |||||||||||||||||||
|
The core also compresses down very nicely with bzip. Core + logs wound up being 38M. | |||||||||||||||||||
| Comment by Spencer Jackson [ 19/Jun/17 ] | |||||||||||||||||||
|
Ran the following repro script:
It produced the following ASAN log:
This made the following core:
I had set the coredump_filter to 0x13, and core_pattern was the default. | |||||||||||||||||||
| Comment by Max Hirschhorn [ 16/Jun/17 ] | |||||||||||||||||||
|
spencer.jackson, do you know if ASan will respect the core dump filter set on the system or how large (as well as naming convention) we should anticipate these core dumps to be?
|