<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:16:52 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-8227] Assertion in mongo log: 10334:Invalid BSONObj size: 1769280243 (0xF3127569) first element: : ?type=100 </title>
                <link>https://jira.mongodb.org/browse/SERVER-8227</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We have 6 servers in replica set, accessed using C++ and python drivers.&lt;br/&gt;
One of servers sometimes throw in logs assertions like this:&lt;/p&gt;

&lt;div class=&quot;panel&quot; style=&quot;background-color: #DDF;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;background-color: #DDF;&quot;&gt;&lt;b&gt;mongo.log&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #DDF;&quot;&gt;
&lt;p&gt;Thu Jan 17 11:00:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn103&amp;#93;&lt;/span&gt; Assertion: 10334:Invalid BSONObj size: 1769280243 (0xF3127569) first element: : ?type=100&lt;br/&gt;
0xaffd31 0xac5eb9 0xac603c 0x572567 0x66f857 0x84c46b 0x84fcdd 0x85145f 0x851543 0x83dcf3 0x841fc1 0x844a27 0x7ade1f 0x7b4284 0x5703f2 0xaedfc1 0x355a607851 0x355a2e811d&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xaffd31&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x99) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xac5eb9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0xac603c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZNK5mongo7BSONObj14_assertInvalidEv+0x497) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x572567&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZNK5mongo11BSONElement14embeddedObjectEv+0xa7) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x66f857&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;/usr/bin/mongod(_ZNK5mongo3Mod5applyERNS_15BSONBuilderBaseENS_11BSONElementERNS_8ModStateE+0x191b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x84c46b&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;/usr/bin/mongod(_ZN5mongo11ModSetState17createNewFromModsERKSsRNS_15BSONBuilderBaseERNS_18BSONIteratorSortedERKSt4pairIKSt17_Rb_tree_iteratorIS7_IS1_N5boost10shared_ptrINS_8ModStateEEEEESF_ERKNS_9LexNumCmpE+0x4dd)&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x84fcdd&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;/usr/bin/mongod(_ZN5mongo11ModSetState20createNewObjFromModsERKSsRNS_14BSONObjBuilderERKNS_7BSONObjE+0x7f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x85145f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo11ModSetState17createNewFromModsEv+0x63) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x851543&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x83dcf3&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;/usr/bin/mongod(_ZN5mongo14_updateObjectsEbPKcRKNS_7BSONObjES4_bbbRNS_7OpDebugEPNS_11RemoveSaverEbRKNS_24QueryPlanSelectionPolicyEb+0x3081) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x841fc1&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;/usr/bin/mongod(_ZN5mongo13updateObjectsEPKcRKNS_7BSONObjES4_bbbRNS_7OpDebugEbRKNS_24QueryPlanSelectionPolicyE+0xb7) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x844a27&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;/usr/bin/mongod(_ZN5mongo14receivedUpdateERNS_7MessageERNS_5CurOpE+0x4cf) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7ade1f&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;/usr/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xbd4) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7b4284&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;/usr/bin/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x82) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5703f2&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x411) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xaedfc1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libpthread.so.0() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x355a607851&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x355a2e811d&amp;#93;&lt;/span&gt;&lt;br/&gt;
Thu Jan 17 11:00:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn103&amp;#93;&lt;/span&gt; Assertion: 10329:Element too large&lt;br/&gt;
0xaffd31 0xac5eb9 0x5745c7 0x572fdb 0x65b17f 0x7b3aeb 0x5703f2 0xaedfc1 0x355a607851 0x355a2e811d&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xaffd31&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x99) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xac5eb9&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;/usr/bin/mongod(_ZNK5mongo7BSONObj8toStringERNS_17StringBuilderImplINS_16TrivialAllocatorEEEbbi+0x317) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5745c7&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;/usr/bin/mongod(_ZNK5mongo11BSONElement8toStringERNS_17StringBuilderImplINS_16TrivialAllocatorEEEbbi+0x69b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x572fdb&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZNK5mongo7OpDebug6reportERKNS_5CurOpE+0xaef) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x65b17f&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;/usr/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x43b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7b3aeb&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;/usr/bin/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x82) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5703f2&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x411) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xaedfc1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libpthread.so.0() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x355a607851&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x355a2e811d&amp;#93;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We tracked down to piece of code which causes this, but it consists of 3 queries within single connections:&lt;/p&gt;
&lt;div class=&quot;panel&quot; style=&quot;background-color: #EEF;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;background-color: #EEF;&quot;&gt;&lt;b&gt;schematic code&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #EEF;&quot;&gt;
&lt;p&gt;conn-&amp;gt;insert( &quot;collTickets&quot;, ticketObj );&lt;br/&gt;
conn-&amp;gt;getLastError(); // ensure insertion was done&lt;br/&gt;
conn-&amp;gt;update( &quot;userInfo&quot;, BSON( &quot;_id&quot; &amp;lt;&amp;lt; userId ), BSON( &quot;$inc&quot; &amp;lt;&amp;lt; BSON( &quot;ticketCount&quot; &amp;lt;&amp;lt; 1 ) ), false/&lt;b&gt;update mode&lt;/b&gt;/ );&lt;br/&gt;
conn-&amp;gt;update( &quot;ticketAcks&quot;, BSON( &quot;_id&quot; &amp;lt;&amp;lt; mongo::OID( ackIdStr ) ), BSON( &quot;$set&quot; &amp;lt;&amp;lt; BSON( &quot;lastTicket&quot; &amp;lt;&amp;lt; ticketOdj[ &quot;_id&quot; ].OID().str() &amp;lt;&amp;lt; &quot;accountant&quot; &amp;lt;&amp;lt; managerId ) ) );&lt;br/&gt;
conn.done();&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;objects sizes are guaranteed to be much less than 16MB:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;thead&gt;
			&lt;tr id=&quot;syntaxplugin_title&quot;&gt;
			&lt;td bgcolor=&quot;#f5f5f5&quot; style=&quot;font-family: Arial,sans-serif; color: #333; border-bottom: 1px solid #bbb; background-color: #f5f5f5 !important; font-weight: bold; line-height: 1em;&quot; &gt;
				&lt;p style=&quot;margin: 5px 10px; padding: 0;&quot;&gt;Mongo console&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/thead&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;truck:PRIMARY&amp;gt; Object.bsonsize( db.userInfo.findOne( { _id:1842412 } ) )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;43705&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;truck:PRIMARY&amp;gt; db.collTickets.find( {userId:1842412} ).forEach( function ( e ) { print(Object.bsonsize(e));} )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;255&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;356&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;truck:PRIMARY&amp;gt; db.ticketAcks.find( {toUserId:1842412} ).forEach( function ( e ) { print(Object.bsonsize(e));} )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;269&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;6732&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;6178&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;6414&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;6334&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;6100&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;truck:PRIMARY&amp;gt; db.version()&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2.2.2&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;What can cause this assertion failures?&lt;br/&gt;
How we can avoid them?&lt;/p&gt;</description>
                <environment>CentOS, x86_64, </environment>
        <key id="62545">SERVER-8227</key>
            <summary>Assertion in mongo log: 10334:Invalid BSONObj size: 1769280243 (0xF3127569) first element: : ?type=100 </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="-1">Unassigned</assignee>
                                    <reporter username="dink">Dmitry Chernikov</reporter>
                        <labels>
                            <label>bson</label>
                            <label>crash</label>
                    </labels>
                <created>Fri, 18 Jan 2013 12:30:04 +0000</created>
                <updated>Wed, 10 Dec 2014 23:19:34 +0000</updated>
                            <resolved>Fri, 4 Apr 2014 18:59:19 +0000</resolved>
                                    <version>2.2.2</version>
                                                    <component>Querying</component>
                                        <votes>1</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="346724" author="kuku" created="Tue, 28 May 2013 10:19:59 +0000"  >&lt;p&gt;ue May 28 18:09:31 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn396&amp;#93;&lt;/span&gt; Assertion: 10334:Invalid BSONObj size: -286331391 (0x01EEEEEE) first element: : ?type=112&lt;br/&gt;
0xaffd31 0xac5eb9 0xac603c 0x572567 0x796c1d 0x86fc24 0x6587c4 0x80fd77 0x810068 0x85cc3e 0x7b955f 0x7b9ea0 0x7b40f8 0x5703f2 0xaedfc1 0x3402c0673d 0x34020d44bd &lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xaffd31&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x99) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xac5eb9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0xac603c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZNK5mongo7BSONObj14_assertInvalidEv+0x497) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x572567&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZN5mongo13unindexRecordEPNS_16NamespaceDetailsEPNS_6RecordERKNS_7DiskLocEb+0x11d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x796c1d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZN5mongo11DataFileMgr12deleteRecordEPKcPNS_6RecordERKNS_7DiskLocEbbb+0x204) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x86fc24&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZN5mongo16NamespaceDetails11cappedAllocEPKci+0x4b4) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6587c4&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZN5mongo16NamespaceDetails6_allocEPKci+0x27) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x80fd77&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZN5mongo16NamespaceDetails5allocEPKciRNS_7DiskLocE+0x38) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x810068&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZN5mongo11DataFileMgr17fast_oplog_insertEPNS_16NamespaceDetailsEPKci+0x6e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x85cc3e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7b955f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZN5mongo7profileERKNS_6ClientEiRNS_5CurOpE+0x290) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7b9ea0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xa48) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7b40f8&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x82) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5703f2&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /mongodb-linux-x86_64-2.2.2/bin/mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x411) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xaedfc1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libpthread.so.0 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x3402c0673d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x34020d44bd&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue May 28 18:09:31 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn396&amp;#93;&lt;/span&gt; warning: Caught Assertion while trying to profile getmore against local.oplog.rs: 10334 Invalid BSONObj size: -286331391 (0x01EEEEEE) first element: : ?type=112&lt;br/&gt;
Tue May 28 18:09:31 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 192.168.100.238:38062 #556307 (640 connections now open)&lt;br/&gt;
Tue May 28 18:09:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 192.168.100.238:38068 #556308 (641 connections now open)&lt;br/&gt;
Tue May 28 18:09:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 192.168.100.238:38069 #556309 (642 connections now open)&lt;br/&gt;
Tue May 28 18:09:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 192.168.100.238:38072 #556310 (643 connections now open)&lt;/p&gt;

&lt;p&gt;Ask for help, every day, Thinks!&lt;/p&gt;
</comment>
                            <comment id="283471" author="james.wahlin@10gen.com" created="Thu, 7 Mar 2013 16:10:06 +0000"  >&lt;p&gt;Hi Alexander,&lt;/p&gt;

&lt;p&gt;From the log trace above it looks like the BSON object itself is invalid. The &quot;first element:&quot; trace shows &quot;?type=100&quot; where 100 is not a valid BSON type. MongoDB code prepends a &lt;b&gt;?&lt;/b&gt; when an unknown type is encountered in this path. You can find the code here:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/blob/v2.2/src/mongo/bson/bson-inl.h#L779&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/v2.2/src/mongo/bson/bson-inl.h#L779&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My first question to you is what version of the C++ driver are you running? If older than 2.2.2 I would suggest upgrading. If you are running the 2.2.2 client then we will need to dive deeper. The path above appears to be triggered by an update so at this point it is not clear whether the driver is generating invalid BSON or whether the update path is generating.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
James&lt;/p&gt;</comment>
                            <comment id="243809" author="magum" created="Fri, 18 Jan 2013 19:52:30 +0000"  >&lt;p&gt;Also we have MMS account associated with my JIRA account. This issue occured on repset &quot;wop&quot;&lt;/p&gt;</comment>
                            <comment id="243798" author="magum" created="Fri, 18 Jan 2013 19:42:34 +0000"  >&lt;p&gt;Also i want to underline - this is not &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7206&quot; title=&quot;potential mongod crash in profiling, 2.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7206&quot;&gt;&lt;del&gt;SERVER-7206&lt;/del&gt;&lt;/a&gt;. Because we didn&apos;t use profiler and we have NO system.profiler collection&lt;/p&gt;</comment>
                            <comment id="243793" author="magum" created="Fri, 18 Jan 2013 19:35:08 +0000"  >&lt;p&gt;Please change &quot;Affects Version/s&quot; to 2.2.2 as well. Because actually it is happens on 2.2.2 NOT on 2.2.0&lt;/p&gt;</comment>
                            <comment id="243603" author="dink" created="Fri, 18 Jan 2013 16:06:07 +0000"  >&lt;p&gt;forgot to mention that we use a version of mongod 2.2.2,&lt;br/&gt;
profiling is not used (and weren&apos;t used before),&lt;br/&gt;
objects in db contain some utf8-encoded strings of 2-4 kb in size...&lt;br/&gt;
all objects in db that should be accessed by this query set accesible and can be read w/o problems - i.e. db stayed consistent...&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="62582">SERVER-8236</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 18 Jan 2013 19:35:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 38 weeks, 1 day 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>false</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>
                            10 years, 38 weeks, 1 day 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>magum</customfieldvalue>
            <customfieldvalue>dink</customfieldvalue>
            <customfieldvalue>james.wahlin@mongodb.com</customfieldvalue>
            <customfieldvalue>kuku</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnb2f:</customfieldvalue>

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

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

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