<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:56:53 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-1390] Server crashes when running PyMongo test suite</title>
                <link>https://jira.mongodb.org/browse/SERVER-1390</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This has only been happening for very recent (last few days or so) server builds. The stack trace I get before the crash is this:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Fri Jul  9 17:47:48 connection accepted from 127.0.0.1:53721 #6&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;conn5&amp;#93;&lt;/span&gt; Fri Jul  9 17:47:48 CMD: drop pymongo_test.test&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; Fri Jul  9 17:47:48  pymongo_test.test Assertion failure pos != -2 db/clientcursor.cpp 171&lt;br/&gt;
0x100030fce 0x100035f48 0x1000700b3 0x100174a6a 0x100013199 0x100174c17 0x1000a25e6 0x1000a2add 0x1000acb62 0x1000ad2c7 0x1000adf9c 0x10024e3bc 0x10016fe16 0x100236576 0x100238027 0x100303031 0x100637404 0x7fff879348b6 0x7fff87934769 &lt;br/&gt;
 0   mongod                              0x0000000100030fce _ZN5mongo12sayDbContextEPKc + 174&lt;br/&gt;
 1   mongod                              0x0000000100035f48 _ZN5mongo8assertedEPKcS1_j + 344&lt;br/&gt;
 2   mongod                              0x00000001000700b3 _ZN5mongo12ClientCursorD2Ev + 467&lt;br/&gt;
 3   mongod                              0x0000000100174a6a _ZN5boost6detail17sp_counted_impl_pIN5mongo12ClientCursorEE7disposeEv + 26&lt;br/&gt;
 4   mongod                              0x0000000100013199 _ZN5boost6detail12shared_countD1Ev + 73&lt;br/&gt;
 5   mongod                              0x0000000100174c17 _ZN5mongo11UserQueryOp16recoverFromYieldEv + 199&lt;br/&gt;
 6   mongod                              0x00000001000a25e6 _ZN5mongo12QueryPlanSet6Runner16recoverFromYieldERNS_7QueryOpE + 70&lt;br/&gt;
 7   mongod                              0x00000001000a2add _ZN5mongo12QueryPlanSet6Runner8mayYieldERKSt6vectorIN5boost10shared_ptrINS_7QueryOpEEESaIS6_EE + 221&lt;br/&gt;
 8   mongod                              0x00000001000acb62 _ZN5mongo12QueryPlanSet6Runner3runEv + 1218&lt;br/&gt;
 9   mongod                              0x00000001000ad2c7 _ZN5mongo12QueryPlanSet5runOpERNS_7QueryOpE + 71&lt;br/&gt;
 10  mongod                              0x00000001000adf9c _ZN5mongo16MultiPlanScanner9runOpOnceERNS_7QueryOpE + 124&lt;br/&gt;
 11  mongod                              0x000000010024e3bc _ZN5mongo16MultiPlanScanner5runOpERNS_7QueryOpE + 28&lt;br/&gt;
 12  mongod                              0x000000010016fe16 &lt;em&gt;ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1&lt;/em&gt; + 3318&lt;br/&gt;
 13  mongod                              0x0000000100236576 _ZN5mongoL13receivedQueryERNS_6ClientERNS_10DbResponseERNS_7MessageE + 230&lt;br/&gt;
 14  mongod                              0x0000000100238027 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 4583&lt;br/&gt;
 15  mongod                              0x0000000100303031 _ZN5mongo10connThreadEv + 897&lt;br/&gt;
 16  libboost_thread-mt.dylib            0x0000000100637404 thread_proxy + 132&lt;br/&gt;
 17  libSystem.B.dylib                   0x00007fff879348b6 _pthread_start + 331&lt;br/&gt;
 18  libSystem.B.dylib                   0x00007fff87934769 thread_start + 13&lt;br/&gt;
mongod(10199,0x100f10000) malloc: *** error for object 0x100b17470: pointer being freed was not allocated&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;
		&lt;ul&gt;
			&lt;li&gt;set a breakpoint in malloc_error_break to debug&lt;br/&gt;
Fri Jul  9 17:47:48  Got signal: 6 (Abort trap).&lt;br/&gt;
Fri Jul  9 17:47:48  Backtrace:&lt;br/&gt;
0x1002ffbc5 0x7fff8795b80a 0x10086ba00 0x100300232&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Showed to Mathias but he was hoping somebody else could take a look. Can consistently reproduce on my machine just by running the PyMongo test suite. Narrowed it down to running these two tests in succession, in particular:&lt;/p&gt;

&lt;p&gt;nosetests -v test.test_connection:TestConnection.test_network_timeout test.test_connection:TestConnection.test_tz_aware&lt;/p&gt;</description>
                <environment></environment>
        <key id="12400">SERVER-1390</key>
            <summary>Server crashes when running PyMongo test suite</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="mike">Michael Dirolf</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Jul 2010 18:25:38 +0000</created>
                <updated>Tue, 12 Jul 2016 00:28:47 +0000</updated>
                            <resolved>Mon, 12 Jul 2010 14:24:22 +0000</resolved>
                                                    <fixVersion>1.5.5</fixVersion>
                                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="15654" author="aaron" created="Mon, 12 Jul 2010 14:24:07 +0000"  >&lt;p&gt;The problem was that ClientCursors were being stored in shared_ptr objects, which is bad since ClientCursor objects can get freed when a yield happens.  This storage model was in place before my changes, but I think with the changes we are yielding more and this triggered the recent failures.&lt;/p&gt;

&lt;p&gt;I added a ClientCursor pointer holder object and used that instead of shared_ptr.&lt;/p&gt;</comment>
                            <comment id="15653" author="auto" created="Mon, 12 Jul 2010 14:21:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;astaple&apos;, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1390&quot; title=&quot;Server crashes when running PyMongo test suite&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1390&quot;&gt;&lt;del&gt;SERVER-1390&lt;/del&gt;&lt;/a&gt; don&apos;t put ClientCursor in shared_ptr&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/c6f48e0cd33ba3f6eea5b54397dac89544cfda6d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/c6f48e0cd33ba3f6eea5b54397dac89544cfda6d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="15605" author="eliot" created="Sat, 10 Jul 2010 00:02:52 +0000"  >&lt;p&gt;I think this is from your change.&lt;br/&gt;
If not - assign back to me.&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 10 Jul 2010 00:02:52 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 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>
                            13 years, 32 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>aaron</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>mike</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpjtz:</customfieldvalue>

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

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

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