<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:52:54 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-54] spidermonkey may destroy connection before destroying cursor holding that connection, leading to &quot;pure virtual method called&quot; error</title>
                <link>https://jira.mongodb.org/browse/SERVER-54</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;the following produces the described behavior:&lt;/p&gt;

&lt;p&gt;t = db.jstests_capped4;&lt;br/&gt;
t.drop();&lt;/p&gt;

&lt;p&gt;db.createCollection( &quot;jstests_capped4&quot;, &lt;/p&gt;
{size:1000,capped:true}
&lt;p&gt; );&lt;br/&gt;
t.ensureIndex( &lt;/p&gt;
{ i: 1 }
&lt;p&gt; );&lt;br/&gt;
for( i = 0; i &amp;lt; 20; ++i ) {&lt;br/&gt;
    t.save( &lt;/p&gt;
{ i : i }
&lt;p&gt; );&lt;br/&gt;
}&lt;br/&gt;
c = t.find().sort( &lt;/p&gt;
{ $natural: -1 }
&lt;p&gt; ).limit( 2 );&lt;br/&gt;
c.next();&lt;/p&gt;

&lt;p&gt;If I add more code to the end of this script the crash still occurs, but only as the shell is exiting.&lt;/p&gt;


&lt;p&gt;After some investigation:&lt;br/&gt;
&amp;lt;&lt;a href=&quot;http://www.nabble.com/Forcing-Complete-GC-Just-Before-Destroying-a-Context-td22879892.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.nabble.com/Forcing-Complete-GC-Just-Before-Destroying-a-Context-td22879892.html&lt;/a&gt;&amp;gt;&lt;br/&gt;
&amp;gt; A few key realizations: &lt;br/&gt;
&amp;gt; - JSNatives never run when Finalizers run  (helps to know if you care about &lt;br/&gt;
&amp;gt; thread safety) &lt;br/&gt;
&amp;gt;  - Finalization happens in any order &lt;br/&gt;
&amp;gt;  - References between unreachable objects are irrelvant (closer to &lt;br/&gt;
&amp;gt; Java-style GC rather than Cedar or Modula-3) &lt;br/&gt;
&amp;gt;  - SpiderMonkey GC is not incremental (it always collects everything it can) &lt;/p&gt;

&lt;p&gt;Let me know if you want me to fix, Eliot.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="10142">SERVER-54</key>
            <summary>spidermonkey may destroy connection before destroying cursor holding that connection, leading to &quot;pure virtual method called&quot; error</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="aaron">Aaron Staple</assignee>
                                    <reporter username="aaron">Aaron Staple</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 May 2009 14:31:20 +0000</created>
                <updated>Tue, 12 Jul 2016 00:27:48 +0000</updated>
                            <resolved>Mon, 18 May 2009 17:22:13 +0000</resolved>
                                                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="10099" author="aaron" created="Mon, 18 May 2009 17:22:13 +0000"  >&lt;p&gt;Ok, I fixed this &amp;#8211; just added reference counted pointers in sm code, since using smart pointers w/ dbclient code more generally proved to be too much work &amp;amp; not necessarily useful with current code.&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>
                                        14 years, 40 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, 40 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aaron</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpygf:</customfieldvalue>

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

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

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