[SERVER-23125] Ownership semantics of MessageHandlers are broken Created: 14/Mar/16  Updated: 22/Nov/16  Resolved: 17/Mar/16

Status: Closed
Project: Core Server
Component/s: Networking, Sharding
Affects Version/s: 3.3.3
Fix Version/s: 3.2.7, 3.3.4

Type: Bug Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Samantha Ritter (Inactive)
Resolution: Done Votes: 0
Labels: code-and-test
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-22950 mongos shutdown is non-deterministic ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Platforms 12 (04/01/16), Platforms 14 (05/13/16)
Participants:
Linked BF Score: 0

 Description   

In mongos, we declare a MessageHandler on a stack that disappears partway through shutdown, causing the fatal error "pure virtual method called."

In mongod, we don't run into this... because we don't clean up its MessageHandler at all, we just leak it.



 Comments   
Comment by Githook User [ 04/May/16 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: SERVER-23125 MessageHandler has shared ownership

(cherry picked from a8412488599ba9def9dea29505ea69323ba6e1fc)
Branch: v3.2
https://github.com/mongodb/mongo/commit/b3dec1e2a964c8bc33d66eef4d47d0ce9d28fcdf

Comment by Samantha Ritter (Inactive) [ 17/Mar/16 ]

Given that the changes made for SERVER-22950 were backported to 3.2, this fix should be as well.

Comment by Githook User [ 17/Mar/16 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: SERVER-23125 MessageHandler has shared ownership
Branch: master
https://github.com/mongodb/mongo/commit/a8412488599ba9def9dea29505ea69323ba6e1fc

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