<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:56:36 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-1282] Passing 0 to db.collection.stats() causes server to die.</title>
                <link>https://jira.mongodb.org/browse/SERVER-1282</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Executing the following from a js shell:&lt;/p&gt;

&lt;p&gt;db.collection_name.stats(0)&lt;/p&gt;

&lt;p&gt;Results in the server crashing with, e.g.:&lt;/p&gt;

&lt;p&gt;Tue Jun 22 17:59:42 connection accepted from 127.0.0.1:36607 #1&lt;/p&gt;

&lt;p&gt;Tue Jun 22 18:02:50  Got signal: 8 (Floating point exception).&lt;br/&gt;
Tue Jun 22 18:02:50  Backtrace:&lt;br/&gt;
0x71b299 0x7f2b2aaa8af0 0x708c4a 0x6f2851 0x6f3677 0x5a872f 0x5acd87 0x670f89 0x674060 0x71be7d 0x72e770 0x7f2b2b5ab9ca 0x7f2b2ab5b6cd &lt;br/&gt;
 ./mongod(_ZN5mongo10abruptQuitEi+0x399) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x71b299&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(+0x33af0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f2b2aaa8af0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo15CollectionStats3runERKSsRNS_7BSONObjERSsRNS_14BSONObjBuilderEb+0x14a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x708c4a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo11execCommandEPNS_7CommandERNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0x981) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6f2851&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_10BufBuilderERNS_14BSONObjBuilderEbi+0x6e7) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6f3677&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_10BufBuilderERNS_14BSONObjBuilderEbi+0x3f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5a872f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(&lt;em&gt;ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1&lt;/em&gt;+0x18f7) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5acd87&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x670f89&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x1290) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x674060&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo10connThreadEv+0x2cd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x71be7d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(thread_proxy+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x72e770&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libpthread.so.0(+0x69ca) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f2b2b5ab9ca&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f2b2ab5b6cd&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Jun 22 18:02:50  dbexit: &lt;br/&gt;
Tue Jun 22 18:02:50 	 shutdown: going to close listening sockets...&lt;br/&gt;
Tue Jun 22 18:02:50 	 going to close listening socket: 5&lt;br/&gt;
Tue Jun 22 18:02:50 	 going to close listening socket: 6&lt;br/&gt;
Tue Jun 22 18:02:50 	 going to close listening socket: 7&lt;br/&gt;
Tue Jun 22 18:02:50 	 going to close listening socket: 8&lt;br/&gt;
Tue Jun 22 18:02:50 	 shutdown: going to flush oplog...&lt;br/&gt;
Tue Jun 22 18:02:50 	 shutdown: going to close sockets...&lt;br/&gt;
Tue Jun 22 18:02:50 	 shutdown: waiting for fs preallocator...&lt;br/&gt;
Tue Jun 22 18:02:50 	 shutdown: closing all files...&lt;br/&gt;
Tue Jun 22 18:02:50      closeAllFiles() finished&lt;br/&gt;
Tue Jun 22 18:02:50 	 shutdown: removing fs lock...&lt;br/&gt;
Tue Jun 22 18:02:50  dbexit: really exiting now&lt;br/&gt;
ERROR: Client::~Client _context should be NULL: conn&lt;/p&gt;


&lt;p&gt;Reporter understands that stats shouldn&apos;t be passed an argument, but doing this by accident shouldn&apos;t cause server to die.&lt;/p&gt;

&lt;p&gt;FYI the shell is issuing the following command:&lt;/p&gt;
{ collstats: &quot;author_count&quot;, scale: 0.0 }</description>
                <environment>db version v1.5.3-pre-, pdfile version 4.5&lt;br/&gt;
git version: 783bf1e4d7f5f9caadf73233df59f6672b47120f&lt;br/&gt;
sys info: Linux domU-12-31-39-06-79-A1 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41&lt;br/&gt;
</environment>
        <key id="12228">SERVER-1282</key>
            <summary>Passing 0 to db.collection.stats() causes server to die.</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="9">Done</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="crudson">Doug Hudson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 22 Jun 2010 18:13:37 +0000</created>
                <updated>Tue, 12 Jul 2016 00:29:18 +0000</updated>
                            <resolved>Tue, 22 Jun 2010 20:17:52 +0000</resolved>
                                                    <fixVersion>1.5.4</fixVersion>
                                    <component>JavaScript</component>
                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="14987" author="auto" created="Tue, 22 Jun 2010 20:18:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: fix scale of 0 breaking command &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1282&quot; title=&quot;Passing 0 to db.collection.stats() causes server to die.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1282&quot;&gt;&lt;del&gt;SERVER-1282&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/dba012b66501c3049677b077c96534eb47e3892b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/dba012b66501c3049677b077c96534eb47e3892b&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 22 Jun 2010 20:18:49 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 35 weeks, 1 day 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 35 weeks, 1 day 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="10026"><![CDATA[ALL]]></customfieldvalue>

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

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21988</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|ht0ilj:</customfieldvalue>

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