[SERVER-9061] Mongostat 2.4 segfaults when called with multiple hosts and auth Created: 21/Mar/13  Updated: 11/Jul/16  Resolved: 21/Mar/13

Status: Closed
Project: Core Server
Component/s: Security, Tools
Affects Version/s: 2.4.0
Fix Version/s: 2.4.2, 2.5.0

Type: Bug Priority: Major - P3
Reporter: Andrew Emil (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All


Issue Links:
Depends
Operating System: ALL
Steps To Reproduce:

./mongostat --host localhost:27017,localhost:27018 -u a -p a
Segmentation fault: 11

Participants:

 Description   

Mongostat will seg fault when called with multiple hosts and authorization parameters. It does not seem to matter if the user/pass exists or if all of the hosts are up, in my testing it segfaulted regardless.



 Comments   
Comment by auto [ 21/Mar/13 ]

Author:

{u'date': u'2013-03-21T20:27:37Z', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: SERVER-9061 Fix mongostat segfault when using auth with multiple hosts
Branch: v2.4
https://github.com/mongodb/mongo/commit/4ffa04351152b7ca2ef4ec502f05392d22eddbe2

Comment by auto [ 21/Mar/13 ]

Author:

{u'date': u'2013-03-21T20:27:37Z', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: SERVER-9061 Fix mongostat segfault when using auth with multiple hosts
Branch: master
https://github.com/mongodb/mongo/commit/0ead11b1bc9855e136b77d9e9303856efed6f132

Comment by Andrew Emil (Inactive) [ 21/Mar/13 ]

See "Steps to Reproduce" for parameters and error output. I don't get anything to show up in the mongod logs when doing this, turning on verbose logging and I will post the output

EDIT: Nothing interesting in the logs even with verbose logging turned on (both for mongod and for mongostat)

Comment by Spencer Brody (Inactive) [ 21/Mar/13 ]

Yes please! Can you attach output from a failed run including the parameters used and the error log from when it crashed?

Comment by Andrew Emil (Inactive) [ 21/Mar/13 ]

I know this is sparse, please let me know if you want more info and I will create a more complete write-up.

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