[SERVER-10919] logging in ~ReplicaSetMonitor() crashes Created: 26/Sep/13 Updated: 11/Jul/16 Resolved: 01/Oct/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Client |
| Affects Version/s: | 2.4.6 |
| Fix Version/s: | 2.4.9, 2.5.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ingo Schramm | Assignee: | Randolph Tan |
| Resolution: | Done | Votes: | 0 |
| Labels: | replicaset | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux |
||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | Linux |
| Steps To Reproduce: | probably like this: use mongo::ScopedDbConnection and shutdown aplication |
| Participants: |
| Description |
|
A server application with integrated MongoDB C++ Driver 2.4.6 crashes on shutdown. The crash might be related to src/mongo/client/dbclient_rs.cpp:408. We see: "Logstream::get called in uninitialized state". Calling "mongo::initLogging()" previously did not help and is also not an option because it seems to totally hijack stdout and stderr. We could not see this problem with 2.4.5. Stacktrace: #0 0x00007fe92870b88d in __libc_waitpid (pid=<optimized out>, stat_loc=<optimized out>, options=<optimized out>) at ../sysdeps/unix/sysv/linux/waitpid.c:41 |
| Comments |
| Comment by Githook User [ 20/Dec/13 ] |
|
Author: {u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}Message: |
| Comment by auto [ 01/Oct/13 ] |
|
Author: {u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}Message: |
| Comment by Ingo Schramm [ 30/Sep/13 ] |
|
I could fix the problem by commenting src/mongo/client/dbclient_rs.cpp:408 and recompiling the driver. |