[SERVER-10875] mongo segfaults while authenticating user with x509 and no command line ops specified Created: 24/Sep/13 Updated: 11/Jul/16 Resolved: 25/Sep/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 2.5.2 |
| Fix Version/s: | 2.5.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Luke Lovett | Assignee: | Andreas Nilsson |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OS X 10.8.5, mongo 2.5.3 and 2.4.5 (built with SSL) |
||
| Attachments: |
|
||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||
| Steps To Reproduce: | I am able to reproduce this with the latest version of mongod on github (2.5.3-pre-) as well as 2.4.5 (must be compiled with SSL).
1. Start up a mongod without any of the options specified on the docs
2. Start up a mongo shell without any of the options given in the above documentation.
3. Follow these instructions for adding an x509 subject as a user
4. Follow these instructions for attempting to authenticate with a certificate
The mongo shell will crash after the 4th step |
||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||
| Description |
|
mongod will crash with a segmentation fault if you attempt to authenticate a user with x509 through the mongo shell when you haven't specified any SSL command line options. |
| Comments |
| Comment by auto [ 25/Sep/13 ] |
|
Author: {u'username': u'agralius', u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@10gen.com'}Message: |
| Comment by Andreas Nilsson [ 25/Sep/13 ] |
| Comment by Luke Lovett [ 24/Sep/13 ] |
|
backtrace from gdb when the segfault occurs |
| Comment by Andreas Nilsson [ 24/Sep/13 ] |
|
I have compiled with but still cannot reproduce. Can you please provide a stack trace of the server crash. Also that command syntax will not work for the latest build since the addUser command has changed. What are the commands you are using for the nightly 2.5.3-pre? |
| Comment by Luke Lovett [ 24/Sep/13 ] |
|
andreas.nilsson@10gen.com, I think you might be running the mongo shell without SSL support. You need to have mongodb compiled with SSL in order to attempt to authenticate using an x509 certificate. I updated the ticket to make this clearer, and added the exact commands I used. |