<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:41 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-972] mongod crashes when running with --auth and a mongo shell connecting without -u &amp; -p</title>
                <link>https://jira.mongodb.org/browse/SERVER-972</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I installed mongodb via the FreeBSD ports and added an admin user as described on the website. I added these three lines to /usr/local/etc/mongo.conf:&lt;/p&gt;

&lt;p&gt;dbpath = /var/db/mongodb&lt;br/&gt;
bind_ip = xx.xx.xxx.xxx&lt;br/&gt;
auth = true&lt;/p&gt;

&lt;p&gt;Then started it via: ./usr/local/etc/rc.d/mongod start&lt;/p&gt;

&lt;p&gt;Everything went fine whenn I connected via the mongo shell supplying proper -u and -p parameters. However if I start mongo without any parameters mongod crashes after the first query. This is the log of exactly one such session. Starting mongod, connecting, first query, boom:&lt;/p&gt;

&lt;p&gt;Mon Apr  5 22:30:19 Mongo DB : starting : pid = 86330 port = 27017 dbpath = /var/db/mongodb master = 0 slave = 0  32-bit &lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data&lt;/li&gt;
		&lt;li&gt;see &lt;a href=&quot;http://blog.mongodb.org/post/137788967/32-bit-limitations&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://blog.mongodb.org/post/137788967/32-bit-limitations&lt;/a&gt; for more&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Mon Apr  5 22:30:19 db version v1.4.0, pdfile version 4.5&lt;br/&gt;
Mon Apr  5 22:30:19 git version: nogitversion&lt;br/&gt;
Mon Apr  5 22:30:19 sys info: FreeBSD xxxxxxxx 7.2-RELEASE-p5 FreeBSD 7.2-RELEASE-p5 #0: Wed Dec  9 21:41:28 CET 2009   i386 BOOST_LIB_VERSION=1_41&lt;br/&gt;
Mon Apr  5 22:30:19 waiting for connections on port 27017&lt;br/&gt;
Mon Apr  5 22:30:19 web admin interface listening on port 28017&lt;br/&gt;
Mon Apr  5 22:30:27 connection accepted from xxxxxxxxxxxxx:61762 #1&lt;br/&gt;
Mon Apr  5 22:30:30 Assertion: 10057:unauthorized for db &lt;span class=&quot;error&quot;&gt;&amp;#91;test&amp;#93;&lt;/span&gt; lock type: -1&lt;/p&gt;

&lt;p&gt;Mon Apr  5 22:30:30  Got signal: 6 (Abort trap: 6).&lt;br/&gt;
Mon Apr  5 22:30:30  Backtrace:&lt;br/&gt;
Mon Apr  5 22:30:30  dbexit: &lt;br/&gt;
Mon Apr  5 22:30:30 	 shutdown: going to close listening sockets...&lt;br/&gt;
Mon Apr  5 22:30:30 	 going to close listening socket: 5&lt;br/&gt;
Mon Apr  5 22:30:30 	 going to close listening socket: 7&lt;br/&gt;
Mon Apr  5 22:30:30 	 shutdown: going to flush oplog...&lt;br/&gt;
Mon Apr  5 22:30:30 	 shutdown: going to close sockets...&lt;br/&gt;
Mon Apr  5 22:30:30 	 shutdown: waiting for fs preallocator...&lt;br/&gt;
Mon Apr  5 22:30:30 	 shutdown: closing all files...&lt;br/&gt;
Mon Apr  5 22:30:30      closeAllFiles() finished&lt;br/&gt;
Mon Apr  5 22:30:30 	 shutdown: removing fs lock...&lt;br/&gt;
Mon Apr  5 22:30:30  dbexit: really exiting now&lt;/p&gt;

&lt;p&gt;I will try that on a FreeBSD 8.0 Jail today and update the ticket accordingly.&lt;/p&gt;
</description>
                <environment>FreeBSD 7.2-RELEASE-p5, mongod running inside a Jail. FreeBSD Jails have no localhost so mongod is specifically bound to the Jails external IP. Shared Memory is enabled.</environment>
        <key id="11708">SERVER-972</key>
            <summary>mongod crashes when running with --auth and a mongo shell connecting without -u &amp; -p</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="hukl">John-Paul Bader</reporter>
                        <labels>
                    </labels>
                <created>Tue, 6 Apr 2010 03:03:42 +0000</created>
                <updated>Thu, 17 Mar 2011 19:13:08 +0000</updated>
                            <resolved>Sun, 16 Jan 2011 05:00:41 +0000</resolved>
                                    <version>1.4.0</version>
                                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="13457" author="hukl" created="Tue, 6 Apr 2010 03:58:50 +0000"  >&lt;p&gt;Just tried to replicate this on FreeBSD 8.0 but wasn&apos;t able to. Behaves as expected I assume so that this seems to be FreeBSD 7.2 related.&lt;/p&gt;

&lt;p&gt;Tue Apr  6 07:55:40 connection accepted from xxx.xxx.xxx.xxx:63051 #1&lt;br/&gt;
Tue Apr  6 07:55:45 Assertion: 10057:unauthorized for db &lt;span class=&quot;error&quot;&gt;&amp;#91;test&amp;#93;&lt;/span&gt; lock type: -1&lt;/p&gt;

&lt;p&gt;Tue Apr  6 07:55:45    Caught Assertion in runQuery ns:test.system.users massert:unauthorized for db &lt;span class=&quot;error&quot;&gt;&amp;#91;test&amp;#93;&lt;/span&gt; lock type: -1&lt;/p&gt;

&lt;p&gt;Tue Apr  6 07:55:45   ntoskip:0 ntoreturn:0&lt;br/&gt;
Tue Apr  6 07:55:45   query:{}&lt;br/&gt;
Tue Apr  6 07:55:45 query test.system.users ntoreturn:0 exception  14ms&lt;br/&gt;
Tue Apr  6 07:56:00 end connection xxx.xxx.xxx.xxx:63051&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_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 46 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>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, 46 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>hukl</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpo67:</customfieldvalue>

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

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

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