[SERVER-988] mysterious 'pure virtual method called' failure Created: 08/Apr/10  Updated: 12/Jul/16  Resolved: 08/Apr/10

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

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

<http://buildbot.mongodb.org/builders/OS%20X%2010.4%2032-bit/builds/459/steps/test_3/logs/stdio>
<http://buildbot.mongodb.org/builders/OS%20X%2010.5%2064-bit/builds/646/steps/test_3/logs/stdio>

probably trying to use a freed object, not sure which one

let me know if you want me to work on it



 Comments   
Comment by Eliot Horowitz (Inactive) [ 26/Apr/10 ]

in a release

Comment by auto [ 08/Apr/10 ]

Author:

{'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}

Message: Prevent calls to pure virtual functions in MongoFile SERVER-988

The issue was that during construction and destruction an object's vtable
points to the current type rather than the most derived type. ~MongoFile() tried
to take a lock, but the function holding the lock tried to use the object,
calling either the close() or flush() virtual methods. The solution was to move
the call that needed the lock to the most derived class's destructor. The
easiest way to increase the probability of this crash is by using --syncdelay 1.
http://github.com/mongodb/mongo/commit/dfa0c41aa11ae1d97576e1b72180f0a398d4894a

Comment by Aaron Staple [ 08/Apr/10 ]

seems like you're looking into it. Go ahead and reassign to me if you want me to investigate at some point instead.

Comment by auto [ 08/Apr/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-988 debug
http://github.com/mongodb/mongo/commit/5a235ba8f6477b8c20a943303a6c9c002e1505a5

Comment by Eliot Horowitz (Inactive) [ 08/Apr/10 ]

sure
it has to do with the MMF abstraction dwight added.
started happening right after that

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