<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:48 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-2042] Server crashes on CLI client exit</title>
                <link>https://jira.mongodb.org/browse/SERVER-2042</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have installed Mongodb from ports, giving me version 1.6.3 on my FreeBSD development server.&lt;/p&gt;

&lt;p&gt;The server starts ok and I am able to use the mongo shell to do things to my  various databases and collections.&lt;/p&gt;

&lt;p&gt;When I use the exit command in the client, the server shuts down without any useful diagnostics in the log.&lt;/p&gt;

&lt;p&gt;I have tried:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;starting with a clean slate with no databases at all.  Created a database, collection, inserted data, queried all ok.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;with my dbs which were running happily with 1.4.1 queried all ok.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;recompiling all pre-requisite ports and retrying prior data.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I have attached a log generated by the problem.  This was with -vvvvv specified on the command line for maximum debugging output.&lt;/p&gt;

&lt;p&gt;The server also crashes when a Ruby client exits as well.&lt;/p&gt;

</description>
                <environment>FreeBSD 7.3 32-bit&lt;br/&gt;
</environment>
        <key id="13585">SERVER-2042</key>
            <summary>Server crashes on CLI client exit</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="5">Cannot Reproduce</resolution>
                                        <assignee username="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="mrludo">David Dodd</reporter>
                        <labels>
                    </labels>
                <created>Mon, 1 Nov 2010 04:39:20 +0000</created>
                <updated>Fri, 30 Mar 2012 14:37:06 +0000</updated>
                            <resolved>Fri, 10 Dec 2010 05:30:53 +0000</resolved>
                                    <version>1.6.3</version>
                                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="21284" author="eliot" created="Fri, 10 Dec 2010 05:31:10 +0000"  >&lt;p&gt;Ok - please let us know if it happens again.&lt;/p&gt;</comment>
                            <comment id="21262" author="mrludo" created="Thu, 9 Dec 2010 21:40:51 +0000"  >&lt;p&gt;Another developer has recently retried building 1.6.3 and the problem appears to have now stopped happening.&lt;/p&gt;

&lt;p&gt;I cannot figure out why.&lt;/p&gt;

&lt;p&gt;You can probably close the problem.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Dave&lt;/p&gt;</comment>
                            <comment id="19936" author="mrludo" created="Tue, 2 Nov 2010 00:48:03 +0000"  >&lt;p&gt;Having gmp &amp;amp; mfpr on made no difference.&lt;/p&gt;</comment>
                            <comment id="19934" author="mrludo" created="Tue, 2 Nov 2010 00:34:06 +0000"  >&lt;p&gt;gcc version is reported as follows:&lt;/p&gt;

&lt;p&gt;mippet# gcc -v&lt;br/&gt;
Using built-in specs.&lt;br/&gt;
Target: i386-undermydesk-freebsd&lt;br/&gt;
Configured with: FreeBSD/i386 system compiler&lt;br/&gt;
Thread model: posix&lt;br/&gt;
gcc version 4.2.1 20070719  &lt;span class=&quot;error&quot;&gt;&amp;#91;FreeBSD&amp;#93;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="19933" author="mrludo" created="Tue, 2 Nov 2010 00:28:44 +0000"  >&lt;p&gt;Just to be certain my environment is correct, I have rebuilt version 1.4.2 from source and the server works perfectly.&lt;/p&gt;

&lt;p&gt;A freshly built 1.4.2 does not shutdown on exit.&lt;/p&gt;

&lt;p&gt;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 ...&lt;/p&gt;

&lt;p&gt;terminate called after throwing an instance of &apos;boost::exception_detail::clone_impl&amp;lt;boost::exception_detail::bad_alloc_&amp;gt;&apos;&lt;br/&gt;
  what():  std::bad_alloc&lt;br/&gt;
Abort (core dumped)&lt;/p&gt;

&lt;p&gt;The versions of each pre-requisite ports are as follows:&lt;/p&gt;

&lt;p&gt;boost-libs-1.43.0_1&lt;br/&gt;
icu-3.8.1_3&lt;br/&gt;
libexecinfo-1.1_3&lt;br/&gt;
libiconv-1.13.1_1&lt;br/&gt;
nspr-4.8.6&lt;br/&gt;
pcre-8.10&lt;br/&gt;
python26-2.6.6&lt;br/&gt;
scons-1.3.0&lt;br/&gt;
spidermonkey-1.7.0&lt;/p&gt;

&lt;p&gt;I noticed that the FreeBSD ports page for mongodb also lists gmp &amp;amp; mpfr as requisites but these were not installed as part of the port&apos;s dependencies.&lt;/p&gt;

&lt;p&gt;I have now also installed:&lt;/p&gt;

&lt;p&gt;gmp-5.0.1&lt;br/&gt;
mpfr-3.0.0&lt;/p&gt;

&lt;p&gt;I will now retry 1.6.3 from ports and 1.6.4 from source with the additional ports installed for gmp &amp;amp; mpfr and see if this makes any difference to the behaviour observed.&lt;/p&gt;</comment>
                            <comment id="19932" author="eliot" created="Mon, 1 Nov 2010 23:57:40 +0000"  >&lt;p&gt;Do you know what version of boost your&apos;e compiling with? &lt;br/&gt;
And gcc&lt;/p&gt;</comment>
                            <comment id="19930" author="mrludo" created="Mon, 1 Nov 2010 23:09:11 +0000"  >&lt;p&gt;The python smoke tests fail as shown by the attached file python.txt&lt;/p&gt;</comment>
                            <comment id="19929" author="mrludo" created="Mon, 1 Nov 2010 22:54:54 +0000"  >&lt;p&gt;I have now tried using the version 1.6.4 source tarball.&lt;/p&gt;

&lt;p&gt;I used the following commands to build:&lt;/p&gt;

&lt;p&gt;scons --dd .&lt;br/&gt;
scons --dd --prefix=/usr/local install&lt;/p&gt;

&lt;p&gt;I started the server.&lt;/p&gt;

&lt;p&gt;I used the mongo CLI to look up an entry from the dgdtest/mycol collection.&lt;/p&gt;

&lt;p&gt;When I then left the client via the exit command, the server shut down.&lt;/p&gt;

&lt;p&gt;I have attached the log.&lt;/p&gt;

&lt;p&gt;I then tried running the C++ unit tests which crash, reporting the following:&lt;/p&gt;

&lt;p&gt; terminate called after throwing an instance of &apos;boost::exception_detail::clone_impl&amp;lt;boost::exception_detail::bad_alloc_&amp;gt;&apos;&lt;br/&gt;
  what():  std::bad_alloc&lt;br/&gt;
Abort (core dumped)&lt;/p&gt;

&lt;p&gt;I have also attached a transcript of the output of gdb on the core dump produced by running test.&lt;/p&gt;</comment>
                            <comment id="19905" author="eliot" created="Mon, 1 Nov 2010 15:34:56 +0000"  >&lt;p&gt;Seems like an issue with the build.&lt;br/&gt;
Can you try compiling 1.6.4 from source?&lt;/p&gt;</comment>
                            <comment id="19896" author="mrludo" created="Mon, 1 Nov 2010 05:24:48 +0000"  >&lt;p&gt;Is there any additional debugging I can turn on to allow me to provide more info regarding the shutdown ?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10560" name="crud" size="5098" author="mrludo" created="Mon, 1 Nov 2010 04:39:20 +0000"/>
                            <attachment id="10568" name="mongod.log" size="3895" author="mrludo" created="Mon, 1 Nov 2010 22:56:45 +0000"/>
                            <attachment id="10569" name="pytest.txt" size="2880" author="mrludo" created="Mon, 1 Nov 2010 23:08:16 +0000"/>
                            <attachment id="10567" name="typescript" size="4088" author="mrludo" created="Mon, 1 Nov 2010 22:56:45 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 1 Nov 2010 15:34:56 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 10 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 10 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10024"><![CDATA[FreeBSD]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>mrludo</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpbzz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrigu7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21380</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnvcn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>