[SERVER-12555] OpDebug::planSummary std::string may be accessed concurrently by multiple threads Created: 30/Jan/14  Updated: 10/Dec/14  Resolved: 14/Feb/14

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

Type: Bug Priority: Critical - P2
Reporter: Andrew Morrow (Inactive) Assignee: Andy Schwerin
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-11762 ProgressMeter is not thread-safe Closed
Related
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

In c51857a44af6fc69f1e21bb9c6b2b6adda0ef80e, OpDebug::planSummary was added. This is a std::string, but it may be concurrently read and written from different threads which is definitely illegal.

One possible example is being read by ::inProgCmd via CurOp::info, while being written to by ::newRunQuery.



 Comments   
Comment by Andy Schwerin [ 14/Feb/14 ]

Fixed in SERVER-10026.

Comment by J Rassi [ 30/Jan/14 ]

Very similar issue to SERVER-11762.

Generated at Thu Feb 08 03:28:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.