[SERVER-11249] Valgrind complains about CollectionInfoCache::notifyOfWriteOp Created: 17/Oct/13  Updated: 11/Jul/16  Resolved: 24/Oct/13

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

Type: Task Priority: Major - P3
Reporter: Randolph Tan Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

This was reported when I run jstests/sharding/drop_sharded_db.js (the valgrind was running on the mongod server with port 30001):

sh7534| 2013-10-17T14:42:25.727-0400 [conn4] CMD: drop buy.data0
sh7534| ==7534== Thread 15:
sh7534| ==7534== Conditional jump or move depends on uninitialised value(s)
sh7534| ==7534==    at 0x12AE61B: mongo::CollectionInfoCache::notifyOfWriteOp() (collection_info_cache.cpp:77)
sh7534| ==7534==    by 0x12AD56E: mongo::Collection::deleteDocument(mongo::DiskLoc const&, bool, bool, mongo::BSONObj*) (collection.cpp:100)
sh7534| ==7534==    by 0x10BC74C: mongo::deleteObjects(mongo::StringData const&, mongo::BSONObj, bool, bool, bool) (delete.cpp:155)
sh7534| ==7534==    by 0xF44410: mongo::Database::_dropNS(mongo::StringData const&) (database.cpp:612)
sh7534| ==7534==    by 0x1021261: mongo::IndexDetails::kill_idx() (index.cpp:117)
sh7534| ==7534==    by 0x10B9515: mongo::NamespaceDetails::_removeIndex(int) (namespace_details.cpp:777)
sh7534| ==7534==    by 0x10B9452: mongo::NamespaceDetails::removeIndex(int) (namespace_details.cpp:763)
sh7534| ==7534==    by 0x106335F: mongo::dropIndexes(mongo::NamespaceDetails*, mongo::StringData const&, mongo::StringData const&, std::string&, mongo::BSONObjBuilder&, bool) (index_update.cpp:360)
sh7534| ==7534==    by 0xF41B21: mongo::Database::dropCollection(mongo::StringData const&) (database.cpp:304)
sh7534| ==7534==    by 0xF502C9: mongo::CmdDrop::run(std::string const&, mongo::BSONObj&, int, std::string&, mongo::BSONObjBuilder&, bool) (dbcommands.cpp:540)
sh7534| ==7534==    by 0xF4AE51: mongo::_execCommand(mongo::Command*, std::string const&, mongo::BSONObj&, int, std::string&, mongo::BSONObjBuilder&, bool) (dbcommands.cpp:1850)
sh7534| ==7534==    by 0xF4BF23: mongo::Command::execCommand(mongo::Command*, mongo::Client&, int, char const*, mongo::BSONObj&, mongo::BSONObjBuilder&, bool) (dbcommands.cpp:2017)
sh7534| ==7534== 
 

git version: 4850a6ae10601226642c6594f3b93e052d62bdf6



 Comments   
Comment by auto [ 24/Oct/13 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-11249 properly initialize variables in CollectionInfoCache constructor
Branch: master
https://github.com/mongodb/mongo/commit/2d1b78d00700a4d0db6e739cc888bcf74944f00b

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