[SERVER-15543] Crash in oplog application thread during shutdown, due to invalid memory access Created: 07/Oct/14  Updated: 02/Aug/18  Resolved: 07/Oct/14

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

Type: Task Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

SyncTail::oplogApplication may attempt to observe the last element of an empty container during shutdown.



 Comments   
Comment by Andy Schwerin [ 07/Oct/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-15535 In SyncTail::oplogApplication, do not look in ops container when it is empty.
This fixes a shutdown-time segfault, caused when the applier thread exits the
inner loop due to inShutdown, rather than because it has operations to apply.
Branch: master
https://github.com/mongodb/mongo/commit/d4d7067f56562d093da48fa42230ca62caf3e6a8

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