[SERVER-5487] Seg fault when shutting down replica set member - Subscription Build with SSL Enabled Created: 03/Apr/12 Updated: 11/Jul/16 Resolved: 05/Dec/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Networking |
| Affects Version/s: | 2.0.4 |
| Fix Version/s: | 2.2.3, 2.3.2 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Adam Comerford | Assignee: | Eric Milkie |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Amazon Linux amzn-ami-pv-2012.03.1.x86_64-ebs; mongodb 2.0.4; git version: 329f3c47fe8136c03392c8f0e548506cb21f8ebf modules: subscription |
||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
Using this subscription build (2.0.4) for Amazon Linux: http://downloads.10gen.com/linux/mongodb-linux-x86_64-subscription-amzn64-2.0.4.tgz Shutting down a replica set instance (using SSL) using a SIGTERM (kill -15 <pid>) or a SIGINT (Ctrl-C), mongod does not exit cleanly |
| Comments |
| Comment by auto [ 08/Jan/13 ] | ||||||||||||||||||||||||||||||||
|
Author: {u'date': u'2012-11-29T18:56:25Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: | ||||||||||||||||||||||||||||||||
| Comment by auto [ 29/Nov/12 ] | ||||||||||||||||||||||||||||||||
|
Author: {u'date': u'2012-11-29T18:56:25Z', u'email': u'milkie@10gen.com', u'name': u'Eric Milkie'}Message: | ||||||||||||||||||||||||||||||||
| Comment by Andy Schwerin [ 18/May/12 ] | ||||||||||||||||||||||||||||||||
|
One possible bandaid would be to not run the socket-closing thread on shutdown. Closing sockets that belong to other, live threads is probably bad news, anyways. A more complete solution should come as part of a startup/shutdown redesign. | ||||||||||||||||||||||||||||||||
| Comment by Andy Schwerin [ 18/May/12 ] | ||||||||||||||||||||||||||||||||
|
Reproduces on Ubuntu 12.04 in mongo 2.1.2-pre- (master branch). Changing ::exit() to ::_exit() does not change this behavior. | ||||||||||||||||||||||||||||||||
| Comment by Adam Comerford [ 05/Apr/12 ] | ||||||||||||||||||||||||||||||||
|
Just to note, initial testing suggests this does not happen with the Ubuntu build, it seems to exit cleanly when run in a similar manner. | ||||||||||||||||||||||||||||||||
| Comment by Adam Comerford [ 03/Apr/12 ] | ||||||||||||||||||||||||||||||||
|
Note: this does not happen if SSL is not enabled, without SSL the build exits cleanly. To reproduce, provision an Amazon AWS instance (micro is just about big enough):
Get the subscription build, 2.0.4, and set up a replica set:
Initiate the replica set. Then either send the signal to the PID or hit Ctrl-C on the command line. Error looks like this:
|