[SERVER-63224] ViewCatalog pointer in ViewCatalog::createView can dangle Created: 02/Feb/22  Updated: 29/Oct/23  Resolved: 03/Feb/22

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

Type: Bug Priority: Major - P3
Reporter: Henrik Edin Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
is caused by SERVER-53307 Make ViewCatalog global Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-02-07
Participants:
Linked BF Score: 140

 Description   

ViewCatalogWriter::operator->() returns an unsafe pointer when it is not in write mode. So we can get a segfault in createView() when it happens concurrently with a database registration operation.



 Comments   
Comment by Githook User [ 03/Feb/22 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-63224 Fix dangling pointer when creating view concurrently with database
Branch: master
https://github.com/mongodb/mongo/commit/7e917657f0f23fc962010a2f2e1a837309b787ae

Generated at Thu Feb 08 05:57:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.