[SERVER-38891] collection_cloner_test fails under clang 7 ASAN with use-after-scope Created: 08/Jan/19  Updated: 29/Oct/23  Resolved: 25/Jan/19

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

Type: Bug Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: ADAM Martin (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Dev Tools 2019-01-28
Participants:

 Description   

When testing the v3 toolchain clang, based on clang 7, we found that the collection_cloner_test fails.



 Comments   
Comment by Githook User [ 25/Jan/19 ]

Author:

{'username': 'adamlsd', 'email': 'adam.martin@10gen.com', 'name': 'ADAM David Alan Martin'}

Message: SERVER-38891 Fix some `collection_cloner_test` races.

The mocks in these tests hold pointers to items on the stack. The
mocks are held in background threads, such as executors. If the
executor accesses one of those mocks after the stack frame of its
creator leaves, the pointer to the stack frame is now invalid.
Branch: master
https://github.com/mongodb/mongo/commit/c741da0edb4952f58441a5e61b29bc93a0ee596c

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