[SERVER-38892] options_parser_test fails under clang 7 ASAN with use-after-scope Created: 08/Jan/19  Updated: 29/Oct/23  Resolved: 30/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

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6, v3.4, v3.2
Sprint: Dev Tools 2019-01-28, Dev Tools 2019-02-11
Participants:

 Description   

When testing the v3 toolchain clang, based on clang 7, we found that the options_parser_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-38892 Fix options parser test ASAN problem.

There is a minor lifetime issue with the options parser code
in interacting with the way YAML iterators are implemented.
This issue was found by ASAN.
Branch: master
https://github.com/mongodb/mongo/commit/6e21e6e124e3124ded27dc4f2e23109db627417c

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