<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:11:05 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-6222] Mongo crashes if query for collection in new db</title>
                <link>https://jira.mongodb.org/browse/SERVER-6222</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;A new db is used and a query is executed against it causing the mongod process to crash.&lt;/p&gt;

&lt;p&gt;Step to repro:&lt;/p&gt;

&lt;p&gt;1. Initiate mongo console to mongod&lt;br/&gt;
2. Type &quot;use foo&quot; where &quot;foo&quot; is a new database name (never used before)&lt;br/&gt;
3. Type &quot;db.Bar.find()&quot;&lt;br/&gt;
4. Watch process die horribly...&lt;/p&gt;

&lt;p&gt;NOTE: I made sure to clear out all data files to be sure I wasn&apos;t using a previously existant db.&lt;/p&gt;</description>
                <environment>Win2008, Win7</environment>
        <key id="42584">SERVER-6222</key>
            <summary>Mongo crashes if query for collection in new db</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="benjamin.becker">Ben Becker</assignee>
                                    <reporter username="davidmohara">David O&apos;Hara</reporter>
                        <labels>
                    </labels>
                <created>Wed, 27 Jun 2012 15:53:46 +0000</created>
                <updated>Mon, 11 Jul 2016 18:32:42 +0000</updated>
                            <resolved>Mon, 2 Jul 2012 19:24:37 +0000</resolved>
                                    <version>2.1.2</version>
                                    <fixVersion>2.2.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="138728" author="benjamin.becker" created="Mon, 2 Jul 2012 19:24:37 +0000"  >&lt;p&gt;Solution was to enforce collection creation in the call to profile().&lt;/p&gt;</comment>
                            <comment id="138726" author="auto" created="Mon, 2 Jul 2012 19:16:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-02T12:16:04-07:00&apos;, u&apos;email&apos;: u&apos;ben.becker@10gen.com&apos;, u&apos;name&apos;: u&apos;Ben Becker&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6222&quot; title=&quot;Mongo crashes if query for collection in new db&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6222&quot;&gt;&lt;del&gt;SERVER-6222&lt;/del&gt;&lt;/a&gt;: lazy init profile collection&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1d58eed0e23bb446388205a1df7f3eebef1f29a2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1d58eed0e23bb446388205a1df7f3eebef1f29a2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="137356" author="davidmohara" created="Wed, 27 Jun 2012 23:44:34 +0000"  >&lt;p&gt;Awesome, I suppose if I yank that part, I can move forward. Many thanks for the quick responses.&lt;/p&gt;</comment>
                            <comment id="137294" author="benjamin.becker" created="Wed, 27 Jun 2012 21:11:17 +0000"  >&lt;p&gt;This issue can be reproduced on any OS by simply starting mongod with --profile=2 and running the supplied commands (&apos;use foo&apos;, then &apos;db.bar.find()&apos;) on a namespace that does not exist.&lt;/p&gt;</comment>
                            <comment id="137291" author="benjamin.becker" created="Wed, 27 Jun 2012 21:07:46 +0000"  >&lt;p&gt;Hi Dave,&lt;/p&gt;

&lt;p&gt;Many thanks for the update.  I&apos;m able to reproduce this now &amp;#8211; this actually appears to be caused by enabling the profiler with an empty DB.  Digging into this a bit further now, but if you need a quick work-around you can remove the --profile=2 line from startup and wait until the collection has been created.&lt;/p&gt;

&lt;p&gt;     Regards,&lt;br/&gt;
     Ben&lt;/p&gt;</comment>
                            <comment id="137284" author="davidmohara" created="Wed, 27 Jun 2012 20:53:19 +0000"  >&lt;p&gt;Ben,&lt;/p&gt;

&lt;p&gt;I appreciate the quick replies &amp;amp; look.&lt;/p&gt;

&lt;p&gt;1. Yes, I can repro 100% of the time.&lt;br/&gt;
2. It was the 2008+ version&lt;br/&gt;
3. Starting in a shell (from a bat file)&lt;br/&gt;
4. c:\develop\&amp;lt;project name&amp;gt;\lib\mongodb\bin is the location for mongod.exe&lt;br/&gt;
5. It is on the c: (same as mongod) and it is an NTFS volume.&lt;/p&gt;

&lt;p&gt;I&apos;ve attached the run-mongo.bat file so you can see how I&apos;m starting the process. Otherwise, the procedure is spot on to what I&apos;ve described. One thing that can make a little difference, be sure to completely clear out the data/ozsystems dir before starting mongod. Then you can be sure that executing the query is against an empty dataset.&lt;/p&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Dave&lt;/p&gt;</comment>
                            <comment id="137271" author="benjamin.becker" created="Wed, 27 Jun 2012 20:36:58 +0000"  >&lt;p&gt;Hi David,&lt;/p&gt;

&lt;p&gt;I&apos;m trying to reproduce this locally with Win7 Ultimate w/ SP1 and all of the latest OS updates, but haven&apos;t had any luck yet.  I have a few questions about reproducing this:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Does this happen every time?&lt;/li&gt;
	&lt;li&gt;Did you download the standard v2.1.2 distribution, or the &apos;2008+&apos; version?&lt;/li&gt;
	&lt;li&gt;How are you starting the mongod.exe process (e.g. as a service, in a shell, batch script, etc.)?&lt;/li&gt;
	&lt;li&gt;What drive and directory is the mongod.exe binary in?&lt;/li&gt;
	&lt;li&gt;Is the &apos;data\ozsystems&apos; directory on an NTFS volume?  Is this on the same drive as mongod.exe?&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Any additional details about the host system would be greatly appreciated.&lt;/p&gt;

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

</comment>
                            <comment id="137142" author="tad" created="Wed, 27 Jun 2012 16:40:08 +0000"  >&lt;p&gt;Can you post the mongod log for the crash?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="21788">SERVER-3744</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="17624" name="mongo.log" size="5454" author="davidmohara" created="Wed, 27 Jun 2012 16:58:26 +0000"/>
                            <attachment id="17632" name="run-mongod.bat" size="119" author="davidmohara" created="Wed, 27 Jun 2012 20:53:08 +0000"/>
                            <attachment id="17631" name="run-mongod.bat" size="119" author="davidmohara" created="Wed, 27 Jun 2012 20:52:45 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 27 Jun 2012 16:40:08 +0000</customfieldvalue>

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

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

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

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

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

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