[SERVER-7904] Valgrind memcheck errors with new geo tests Created: 11/Dec/12  Updated: 11/Jul/16  Resolved: 11/Dec/12

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: 2.3.2
Fix Version/s: 2.3.2

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: hari.khalsa@10gen.com
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

run geo_s2near.js under valgrind

Participants:

 Description   

==495== Thread 12:
==495== Conditional jump or move depends on uninitialised value(s)
==495==    at 0x956B79: mongo::run2DSphereGeoNear(mongo::IndexDetails const&, mongo::BSONObj&, std::string&, mongo::BSONObjBuilder&) (bsonobjbuilder.h:235)
==495==    by 0x94B848: mongo::Geo2dFindNearCmd::run(std::string const&, mongo::BSONObj&, int, std::string&, mongo::BSONObjBuilder&, bool) (geonear.cpp:70)
==495==    by 0x8F2EE3: mongo::_execCommand(mongo::Command*, std::string const&, mongo::BSONObj&, int, mongo::BSONObjBuilder&, bool) (dbcommands.cpp:1862)
==495==    by 0x8F432C: mongo::execCommand(mongo::Command*, mongo::Client&, int, char const*, mongo::BSONObj&, mongo::BSONObjBuilder&, bool) (dbcommands.cpp:2012)
==495==    by 0x8F4AD9: mongo::_runCommands(char const*, mongo::BSONObj&, mongo::_BufBuilder<mongo::TrivialAllocator>&, mongo::BSONObjBuilder&, bool, int) (dbcommands.cpp:2090)
==495==    by 0x9CCBD4: mongo::runCommands(char const*, mongo::BSONObj&, mongo::CurOp&, mongo::_BufBuilder<mongo::TrivialAllocator>&, mongo::BSONObjBuilder&, bool, int) (query.cpp:43)
==495==    by 0x9CF980: mongo::runQuery(mongo::Message&, mongo::QueryMessage&, mongo::CurOp&, mongo::Message&) (query.cpp:945)
==495==    by 0x97E3CA: mongo::assembleResponse(mongo::Message&, mongo::DbResponse&, mongo::HostAndPort const&) (instance.cpp:260)
==495==    by 0x7DA8CB: mongo::MyMessageHandler::process(mongo::Message&, mongo::AbstractMessagingPort*, mongo::LastError*) (db.cpp:196)
==495==    by 0xB8889B: mongo::PortMessageServer::handleIncomingMsg(void*) (message_server_port.cpp:205)
==495==    by 0x375A807D13: start_thread (pthread_create.c:309)
==495==    by 0x375A4F167C: clone (clone.S:115)



 Comments   
Comment by auto [ 11/Dec/12 ]

Author:

{u'date': u'2012-12-11T15:57:51Z', u'email': u'hkhalsa@10gen.com', u'name': u'Hari Khalsa'}

Message: SERVER-7904 forgot to init s2nearcursor::nscanned
Branch: master
https://github.com/mongodb/mongo/commit/152ebb67c04bd5b47501017afd34bb82c8c87524

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