[SERVER-46008] logv2 shutdown use-after-dtor Created: 06/Feb/20 Updated: 29/Oct/23 Resolved: 27/Feb/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Billy Donahue | Assignee: | Henrik Edin |
| Resolution: | Fixed | 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 | ||||||||
| Steps To Reproduce: | $ gdb --args build/static_gcc_ninja/mongo/db/db_unittests --suite=DBRAIITestFixture --filter=AutoGetCollectionForReadGlobalLockDeadline --repeat=1 |
||||||||
| Sprint: | Dev Tools 2020-03-09 | ||||||||
| Participants: | |||||||||
| Description |
|
|
| Comments |
| Comment by Githook User [ 26/May/22 ] |
|
Author: {'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}Message:
|
| Comment by Githook User [ 13/May/21 ] |
|
Author: {'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}Message: This reverts commit 6180e0a83a5a50534ebb09e1a075a774ba92c919. |
| Comment by Githook User [ 07/May/21 ] |
|
Author: {'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}Message: Revert " This reverts commit b06cffeabf1d6152f3cf722efb07a144480d3917. |
| Comment by Githook User [ 07/May/21 ] |
|
Author: {'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}Message: The patch was generated with `git format-patch -1 23a5160098996b401a1145504a7be356a3e6c8f1` and then applied with `patch Changes to the `SConstruct` were ignored as they did not need to be reapplied. |
| Comment by Githook User [ 26/Mar/20 ] |
|
Author: {'name': 'Henrik Edin', 'username': 'henrikedin', 'email': 'henrik.edin@mongodb.com'}Message: Because we prefer to compile with BOOST_LOG_USE_COMPILER_TLS for performance reasons it is not safe to log during global shutdown because of the uses of thread_local. The issue only affects unittests as we only do clean shutdown there. (cherry picked from commit 23a5160098996b401a1145504a7be356a3e6c8f1) |
| Comment by Githook User [ 06/Mar/20 ] |
|
Author: {'username': 'henrikedin', 'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com'}Message: Because we prefer to compile with BOOST_LOG_USE_COMPILER_TLS for performance reasons it is not safe to log during global shutdown because of the uses of thread_local. The issue only affects unittests as we only do clean shutdown there. |
| Comment by Githook User [ 26/Feb/20 ] |
|
Author: {'name': 'Henrik Edin', 'username': 'henrikedin', 'email': 'henrik.edin@mongodb.com'}Message: |
| Comment by Eric Milkie [ 22/Feb/20 ] |
|
I am using a similar command line to build, except that I am using link-model dynamic. |
| Comment by Billy Donahue [ 22/Feb/20 ] |
|
I just retried this today and the steps to reproduce no longer yield a failing db_unittest. Maybe some destructors have been shuffled around or the underlying problem has been fixed. I couldn't reproduce milkie's storage_wiredtiger_record_store_and_index_test failure either. My SCons invocation, FTR: WIth master code @ rev 616564d1a5. |
| Comment by Eric Milkie [ 21/Feb/20 ] |
|
I'm noticed this error today, just running storage_wiredtiger_record_store_and_index_test in debug mode. I suspect other tests also hit this. |
| Comment by Sara Williamson [ 10/Feb/20 ] |
|
acm we do have ASAN coverage for logv2. |
| Comment by Billy Donahue [ 06/Feb/20 ] |
|
acm was observed by hand, while running a unit test under ordinary workstation build. "pure virtual method called" is printed after the test succeeds, and the program self-terminates abnormally. |
| Comment by Andrew Morrow (Inactive) [ 06/Feb/20 ] |
|
Did ASAN catch this, or do we not currently have ASAN coverage for logv2? |