<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:53:11 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-151] db.eval causes segfault if it returns NULL</title>
                <link>https://jira.mongodb.org/browse/SERVER-151</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;$mongoDB-&amp;gt;execute(&apos;function() &lt;/p&gt;
{ return null; }&apos;);&lt;br/&gt;
&lt;br/&gt;
causes segfault in server&lt;br/&gt;
&lt;br/&gt;
Stacktrace:&lt;br/&gt;
&lt;br/&gt;
Sun Jul 12 00:56:49 connection accepted from 192.168.226.1:7883&lt;br/&gt;
Sun Jul 12 00:56:49  Got signal: 11 (Segmentation fault).&lt;br/&gt;
Sun Jul 12 00:56:49  Last op: { opid: 2, active: 1, secs_running: 0, op: &quot;query&quot;, ns: &quot;example.$cmd&quot;, query: &quot;{ query: { $eval: CodeWScope( function() { return null; }
&lt;p&gt;, &lt;/p&gt;
{...&quot;, inLock: 1, client: &quot;192.168.226.1:51998&quot; }
&lt;p&gt;Sun Jul 12 00:56:49  Backtrace:&lt;br/&gt;
0x81a4284 0xb7f13420 0x81d23b3 0x80c1dee 0x813fc8f 0x8141402 0x81317d6 0x80ca8e0 0x80d2a55 0x815a954 0x815d286 0x81a0738 0x808cc3f 0x81a723d 0xb7dd64fb 0xb7d58e5e&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod(_ZN5mongo10abruptQuitEi+0x574) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x81a4284&amp;#93;&lt;/span&gt;&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;0xb7f13420&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x81d23b3&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x80c1dee&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x813fc8f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8141402&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x81317d6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x80ca8e0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x80d2a55&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x815a954&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x815d286&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod(_ZN5mongo10connThreadEv+0x278) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x81a0738&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x808cc3f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-i686-2009-07-10/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x81a723d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/tls/i686/cmov/libpthread.so.0 &lt;span class=&quot;error&quot;&gt;&amp;#91;0xb7dd64fb&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/tls/i686/cmov/libc.so.6(clone+0x5e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xb7d58e5e&amp;#93;&lt;/span&gt;&lt;br/&gt;
Sun Jul 12 00:56:49  dbexit:&lt;br/&gt;
Sun Jul 12 00:56:49    closeAllFiles() finished&lt;br/&gt;
Sun Jul 12 00:56:49  dbexit: really exiting now&lt;/p&gt;</description>
                <environment>Ubuntu</environment>
        <key id="10291">SERVER-151</key>
            <summary>db.eval causes segfault if it returns NULL</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="wouter">Wouter</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 Jul 2009 13:03:04 +0000</created>
                <updated>Tue, 12 Jul 2016 00:28:46 +0000</updated>
                            <resolved>Mon, 13 Jul 2009 12:49:35 +0000</resolved>
                                    <version>0.9.6</version>
                                    <fixVersion>0.9.7</fixVersion>
                                    <component>JavaScript</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="10264" author="eliot" created="Mon, 13 Jul 2009 12:49:54 +0000"  >&lt;p&gt;tested in jstests/eval9.js&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>Mon, 13 Jul 2009 12:49:54 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 years, 32 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>
                            14 years, 32 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>wouter</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpxif:</customfieldvalue>

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

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

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