[SERVER-5171] map reduce Config::outNonAtomic may be used uninitialized Created: 02/Mar/12  Updated: 11/Jul/16  Resolved: 02/Mar/12

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

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

Operating System: ALL
Participants:

 Description   

This variable is possibly used without initialization. Detected by valgrind.

 
==2312== Thread 10:
==2312== Conditional jump or move depends on uninitialised value(s)
==2312==    at 0x9B8AEF: mongo::mr::State::postProcessCollection(mongo::CurOp*, mongo::ProgressMeterHolder&) (mr.cpp:462)
==2312==    by 0x9BF416: mongo::mr::MapReduceCommand::run(std::string const&, mongo::BSONObj&, int, std::string&, mongo::BSONObjBuilder&, bool) (mr.cpp:1163)
==2312==    by 0xA740E8: mongo::_execCommand(mongo::Command*, std::string const&, mongo::BSONObj&, int, mongo::BSONObjBuilder&, bool) (dbcommands.cpp:1776)
==2312==    by 0xA74BEB: mongo::execCommand(mongo::Command*, mongo::Client&, int, char const*, mongo::BSONObj&, mongo::BSONObjBuilder&, bool) (dbcommands.cpp:1880)
==2312==    by 0xA753AF: mongo::_runCommands(char const*, mongo::BSONObj&, mongo::_BufBuilder<mongo::TrivialAllocator>&, mongo::BSONObjBuilder&, bool, int) (dbcommands.cpp:1949)
==2312==    by 0x9FB230: mongo::runCommands(char const*, mongo::BSONObj&, mongo::CurOp&, mongo::_BufBuilder<mongo::TrivialAllocator>&, mongo::BSONObjBuilder&, bool, int) (query.cpp:42)
==2312==    by 0x9FF083: mongo::runQuery(mongo::Message&, mongo::QueryMessage&, mongo::CurOp&, mongo::Message&) (query.cpp:779)
==2312==    by 0x9A169D: mongo::receivedQuery(mongo::Client&, mongo::DbResponse&, mongo::Message&) (instance.cpp:225)
==2312==    by 0x9A23A2: mongo::assembleResponse(mongo::Message&, mongo::DbResponse&, mongo::HostAndPort const&) (instance.cpp:362)
==2312==    by 0x8CE6FE: mongo::MyMessageHandler::process(mongo::Message&, mongo::AbstractMessagingPort*, mongo::LastError*) (db.cpp:184)
==2312==    by 0xAD7683: mongo::pms::threadRun(mongo::MessagingPort*) (message_server_port.cpp:77)
==2312==    by 0x33C5206CCA: start_thread (in /lib64/libpthread-2.13.so)
==2312== 



 Comments   
Comment by auto [ 02/Mar/12 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-5171 initialize member variable
Branch: master
https://github.com/mongodb/mongo/commit/a8cf52512e6c2356f3a64008d43ec366dd5fdcee

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