[SERVER-15615] Running {listIndexes: 1} causes a segfault. Created: 13/Oct/14  Updated: 25/Oct/14  Resolved: 14/Oct/14

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

Type: Bug Priority: Critical - P2
Reporter: Amalia Hawkins Assignee: David Percy
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-15642 Passing an integer as a collection na... Closed
related to SERVER-15714 Invariant failure when running aggreg... Closed
is related to SERVER-15294 Query (read-only) paths should not tr... Closed
Tested
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

mongo::printStackTrace(std::ostream&) (in mongod) (stacktrace_posix.cpp:102)
mongo::(anonymous namespace)::abruptQuit(int) (in mongod) (ios_base.h:162)
0x7fff913355aa
0x7fff8b6a027c
0x7fff8bdfab1a
mongo::invariantFailed(char const*, char const*, unsigned int) (in mongod) (assert_util.cpp:145)
0x0000000100167036 (in mongod)
mongo::AutoGetCollectionForRead::AutoGetCollectionForRead(mongo::OperationContext*, std::string const&) (in mongod) (client.cpp:207)
mongo::CmdListIndexes::run(mongo::OperationContext*, std::string const&, mongo::BSONObj&, int, std::string&, mongo::BSONObjBuilder&, bool) (in mongod) (list_indexes.cpp:71)
mongo::_execCommand(mongo::OperationContext*, mongo::Command*, std::string const&, mongo::BSONObj&, int, std::string&, mongo::BSONObjBuilder&, bool) (in mongod) (dbcommands.cpp:1178)
mongo::Command::execCommand(mongo::OperationContext*, mongo::Command*, int, char const*, mongo::BSONObj&, mongo::BSONObjBuilder&, bool) (in mongod) (dbcommands.cpp:1378)
mongo::_runCommands(mongo::OperationContext*, char const*, mongo::BSONObj&, mongo::_BufBuilder<mongo::TrivialAllocator>&, mongo::BSONObjBuilder&, bool, int) (in mongod) (dbcommands.cpp:1452)
mongo::newRunQuery(mongo::OperationContext*, mongo::Message&, mongo::QueryMessage&, mongo::CurOp&, mongo::Message&, bool) (in mongod) (new_find.cpp:511)
mongo::assembleResponse(mongo::OperationContext*, mongo::Message&, mongo::DbResponse&, mongo::HostAndPort const&, bool) (in mongod) (instance.cpp:271)
mongo::MyMessageHandler::process(mongo::Message&, mongo::AbstractMessagingPort*, mongo::LastError*) (in mongod) (basic_string.h:280)
mongo::PortMessageServer::handleIncomingMsg(void*) (in mongod) (shared_ptr.hpp:424)
boost::(anonymous namespace)::thread_proxy(void*) (in mongod) (thread.cpp:133)
0x7fff93bb0899
0x7fff93bb072a
0x7fff93bb4fc9



 Comments   
Comment by Githook User [ 14/Oct/14 ]

Author:

{u'username': u'dpercy', u'name': u'David Percy', u'email': u'david.percy@mongodb.com'}

Message: SERVER-15615 Check listIndexes collName is string
Branch: master
https://github.com/mongodb/mongo/commit/5e6c71dd4a9c2f0304fb88d3901b1c6889f1b3f6

Comment by Andy Schwerin [ 13/Oct/14 ]

amalia.hawkins@10gen.com, I recommend you fix this by having listIndexes error out if you fail to supply a collection name to the command.

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