<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:57 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-3395] Searching for certain IDs on documents with indexed fields using the Mongoose driver can seg fault the mongodb server</title>
                <link>https://jira.mongodb.org/browse/SERVER-3395</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Running this gist against MongoDB 1.8.1 on FreeBSD will crash the server&lt;br/&gt;
&lt;a href=&quot;https://gist.github.com/1071926&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/1071926&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message is:&lt;br/&gt;
Fri Jul  8 09:58:29 Invalid access at address: 0x801fffffa&lt;/p&gt;

&lt;p&gt;Fri Jul  8 09:58:29 Got signal: 11 (Segmentation fault: 11).&lt;/p&gt;

&lt;p&gt;Fri Jul  8 09:58:29 Backtrace:&lt;/p&gt;

&lt;p&gt;Fri Jul  8 09:58:29 Invalid access at address: 0x801b1c813&lt;/p&gt;

&lt;p&gt;Fri Jul  8 09:58:29 Got signal: 10 (Bus error: 10).&lt;/p&gt;

&lt;p&gt;Fri Jul  8 09:58:29 Backtrace:&lt;/p&gt;

&lt;p&gt;Repro:&lt;br/&gt;
Install node.js&lt;br/&gt;
Install npm&lt;br/&gt;
npm install mongoose&lt;br/&gt;
node crashMongo.js&lt;/p&gt;

&lt;p&gt;Expected:&lt;br/&gt;
Bad query (because of the blank id)&lt;/p&gt;

&lt;p&gt;Observed:&lt;br/&gt;
Server crashes&lt;/p&gt;

&lt;p&gt;My other test environment is MongoDB 1.6.5 on Linux, and it does not crash&lt;/p&gt;

&lt;p&gt;The driver is probably doing something incorrect, but I would expect the server to be robust against ill-formed queries.&lt;/p&gt;</description>
                <environment>64-bit FreeBSD</environment>
        <key id="19279">SERVER-3395</key>
            <summary>Searching for certain IDs on documents with indexed fields using the Mongoose driver can seg fault the mongodb server</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="9">Done</resolution>
                                        <assignee username="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="brettkiefer">Brett Kiefer</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Jul 2011 14:22:44 +0000</created>
                <updated>Tue, 12 Jul 2016 00:18:28 +0000</updated>
                            <resolved>Fri, 15 Jul 2011 20:59:38 +0000</resolved>
                                    <version>1.8.1</version>
                                    <fixVersion>1.9.0</fixVersion>
                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="42615" author="spencer" created="Fri, 15 Jul 2011 20:59:38 +0000"  >&lt;p&gt;Was able to successfully reproduce with 1.8.1 and 1.8.2 on FreeBSD, but it seems to be fixed already on 1.9.0.&lt;/p&gt;</comment>
                            <comment id="42316" author="dan@10gen.com" created="Thu, 14 Jul 2011 17:32:52 +0000"  >&lt;p&gt;I think the seg fault is OS dependent.  However, this particular problem was traced back to bug in the node-native-mongo driver, according to the maintainer.  Apparently there was a bad serialization of arrays to bson.  This bug had been fixed in 0.9.6.5 already for a while but mongoose was using 0.9.6.4.  Mongoose can upgrade their driver now.&lt;/p&gt;</comment>
                            <comment id="42307" author="brettkiefer" created="Thu, 14 Jul 2011 16:20:17 +0000"  >&lt;p&gt;I wonder if the seg fault might be OS-dependent? We&apos;re on Freebsd 8.2: (8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64), with MongoDB 1.8.1 built from ports with no modifications. In what ways does your test environment differ?&lt;/p&gt;</comment>
                            <comment id="42301" author="spencer" created="Thu, 14 Jul 2011 15:59:15 +0000"  >&lt;p&gt;While I was successfully able to reproduce the bug on the mongoose side using version 1.6.0 of mongoose, I could not reproduce the server segfault on mongo 1.8.1, 1.8.2, or HEAD.&lt;/p&gt;

&lt;p&gt;Thanks for reporting, we&apos;ll keep our eyes open for more reports of this problem.&lt;/p&gt;</comment>
                            <comment id="41344" author="brettkiefer" created="Fri, 8 Jul 2011 15:47:43 +0000"  >&lt;p&gt;The gist will crash just fine against a blank DB &amp;#8211; no data needs to be populated. The Mongoose version is 1.6.0.&lt;/p&gt;</comment>
                            <comment id="41343" author="scotthernandez" created="Fri, 8 Jul 2011 15:44:34 +0000"  >&lt;p&gt;Can you put together a test case to reproduce it? It seems like there is some data expected in your gist, or can we just run that without anything else?&lt;/p&gt;

&lt;p&gt;Also, what version of the driver are you using?&lt;/p&gt;</comment>
                            <comment id="41342" author="brettkiefer" created="Fri, 8 Jul 2011 15:27:43 +0000"  >&lt;p&gt;No, I can only repro through Mongoose, and only with a schema that it thinks has an &apos;indexed:true&apos; member. Unfortunately, the backtrace in the mongo logs is blank, as in the description above. I reported it to Mongoose as well: &lt;a href=&quot;https://github.com/LearnBoost/mongoose/issues/407&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/LearnBoost/mongoose/issues/407&lt;/a&gt;, but the server crash seems like it&apos;s for y&apos;all.&lt;/p&gt;</comment>
                            <comment id="41328" author="scotthernandez" created="Fri, 8 Jul 2011 14:32:04 +0000"  >&lt;p&gt;Can you reproduce this without mongoose, and with just the mongo javascript shell? Also, is there a chance there is corruption in the db (did you have any unclean shutdowns)? Please include the full stacktrace as well.&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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 8 Jul 2011 14:32:04 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 31 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>brettkiefer</customfieldvalue>
            <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrow5b:</customfieldvalue>

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

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

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