[SERVER-2704] double free when shutting down mongos Created: 08/Mar/11  Updated: 12/Jul/16  Resolved: 17/Mar/11

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

Type: Bug Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File log    
Operating System: ALL
Participants:

 Description   

After inserting a few hundred GB of data, I did a control-C and got the log attached.



 Comments   
Comment by auto [ 17/Mar/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: prevent shutdown race condtion SERVER-2704
https://github.com/mongodb/mongo/commit/783dc5a72155e2c73236f01490e5fc1b35968f79

Comment by auto [ 17/Mar/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: standards compliant and leak a list on shutdown to avoid race condition SERVER-2704
https://github.com/mongodb/mongo/commit/676db17f512e39db5c9997e90ed12956a9b62630

Comment by auto [ 17/Mar/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: try to fix double free SERVER-2704
https://github.com/mongodb/mongo/commit/6db701512057c1c017bd0069a27abcf2da705de0

Comment by Kristina Chodorow (Inactive) [ 08/Mar/11 ]

I don't know. It just returned "db assertion failure" without an error code and I couldn't find it in the mongos log and wasn't tracking the shards' logs. I'll try to catch it next time.

Comment by Eliot Horowitz (Inactive) [ 08/Mar/11 ]

What's the db assertion failure?

Comment by Kristina Chodorow (Inactive) [ 08/Mar/11 ]

I can replicate this pretty consistently... after inserting a few hundred to a few thousand documents I get a db assertion failure and then shutting down mongos triggers the glibc message.

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