[SERVER-2042] Server crashes on CLI client exit Created: 01/Nov/10 Updated: 30/Mar/12 Resolved: 10/Dec/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Stability |
| Affects Version/s: | 1.6.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | David Dodd | Assignee: | Mathias Stearn |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
FreeBSD 7.3 32-bit |
||
| Attachments: |
|
| Operating System: | FreeBSD |
| Participants: |
| Description |
|
I have installed Mongodb from ports, giving me version 1.6.3 on my FreeBSD development server. The server starts ok and I am able to use the mongo shell to do things to my various databases and collections. When I use the exit command in the client, the server shuts down without any useful diagnostics in the log. I have tried:
I have attached a log generated by the problem. This was with -vvvvv specified on the command line for maximum debugging output. The server also crashes when a Ruby client exits as well. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 10/Dec/10 ] |
|
Ok - please let us know if it happens again. |
| Comment by David Dodd [ 09/Dec/10 ] |
|
Another developer has recently retried building 1.6.3 and the problem appears to have now stopped happening. I cannot figure out why. You can probably close the problem. Thanks, Dave |
| Comment by David Dodd [ 02/Nov/10 ] |
|
Having gmp & mfpr on made no difference. |
| Comment by David Dodd [ 02/Nov/10 ] |
|
gcc version is reported as follows: mippet# gcc -v |
| Comment by David Dodd [ 02/Nov/10 ] |
|
Just to be certain my environment is correct, I have rebuilt version 1.4.2 from source and the server works perfectly. A freshly built 1.4.2 does not shutdown on exit. Out of interest, I tried the C++ unit tests on this version and they crash out in the same message as with 1.6.4 ... terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::bad_alloc_>' The versions of each pre-requisite ports are as follows: boost-libs-1.43.0_1 I noticed that the FreeBSD ports page for mongodb also lists gmp & mpfr as requisites but these were not installed as part of the port's dependencies. I have now also installed: gmp-5.0.1 I will now retry 1.6.3 from ports and 1.6.4 from source with the additional ports installed for gmp & mpfr and see if this makes any difference to the behaviour observed. |
| Comment by Eliot Horowitz (Inactive) [ 01/Nov/10 ] |
|
Do you know what version of boost your'e compiling with? |
| Comment by David Dodd [ 01/Nov/10 ] |
|
The python smoke tests fail as shown by the attached file python.txt |
| Comment by David Dodd [ 01/Nov/10 ] |
|
I have now tried using the version 1.6.4 source tarball. I used the following commands to build: scons --dd . I started the server. I used the mongo CLI to look up an entry from the dgdtest/mycol collection. When I then left the client via the exit command, the server shut down. I have attached the log. I then tried running the C++ unit tests which crash, reporting the following: terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::bad_alloc_>' I have also attached a transcript of the output of gdb on the core dump produced by running test. |
| Comment by Eliot Horowitz (Inactive) [ 01/Nov/10 ] |
|
Seems like an issue with the build. |
| Comment by David Dodd [ 01/Nov/10 ] |
|
Is there any additional debugging I can turn on to allow me to provide more info regarding the shutdown ? |