<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:51:38 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-19644] Seg Fault on cloneCollection (specifically gridfs)</title>
                <link>https://jira.mongodb.org/browse/SERVER-19644</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The following error started to occur right after we started deploying with the new v 3.0.5:&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;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;2015-07-29T10:57:50.272+0300 I COMMAND  [conn353] cloneCollection.  db:my_coll collection:my_coll.fs.chunks from: remote_ip:27017 query: { _id: { $in: [ ObjectId(&apos;55b886f90429ea0918c63f8a&apos;) ] } } &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;2015-07-29T10:57:50.275+0300 F -        [conn353] Invalid access at address: 0xd8&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;2015-07-29T10:57:50.761+0300 F -        [conn353] Got signal: 11 (Segmentation fault).&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;&amp;nbsp;&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; 0xf5ba59 0xf5b322 0xf5b67e 0x7f9e352f4340 0x922b9a 0x922cb6 0x911769 0x939bf2 0x85801d 0x934fa8 0x936a92 0x949266 0x9d5f64 0x9d6eed 0x9d7bfb 0xb9c776 0xab2b50 0x80e06d 0xf0e9fb 0x7f9e352ec182 0x7f9e33db500d&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;----- BEGIN BACKTRACE -----&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;{&quot;backtrace&quot;:[{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;B5BA59&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;B5B322&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;B5B67E&quot;},{&quot;b&quot;:&quot;7F9E352E4000&quot;,&quot;o&quot;:&quot;10340&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;522B9A&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;522CB6&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;511769&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;539BF2&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;45801D&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;534FA8&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;536A92&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;549266&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;5D5F64&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;5D6EED&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;5D7BFB&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;79C776&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;6B2B50&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;40E06D&quot;},{&quot;b&quot;:&quot;400000&quot;,&quot;o&quot;:&quot;B0E9FB&quot;},{&quot;b&quot;:&quot;7F9E352E4000&quot;,&quot;o&quot;:&quot;8182&quot;},{&quot;b&quot;:&quot;7F9E33CBA000&quot;,&quot;o&quot;:&quot;FB00D&quot;}],&quot;processInfo&quot;:{ &quot;mongodbVersion&quot; : &quot;3.0.5&quot;, &quot;gitVersion&quot; : &quot;8bc4ae20708dbb493cb09338d9e7be6698e4a3a3&quot;, &quot;uname&quot; : { &quot;sysname&quot; : &quot;Linux&quot;, &quot;release&quot; : &quot;3.13.0-24-generic&quot;, &quot;version&quot; : &quot;#46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014&quot;, &quot;machine&quot; : &quot;x86_64&quot; }, &quot;somap&quot; : [ { &quot;elfType&quot; : 2, &quot;b&quot; : &quot;400000&quot;, &quot;buildId&quot; : &quot;695FC6828398A9DB1F99718671147885B5ED116D&quot; }, { &quot;b&quot; : &quot;7FFFD8AFE000&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;6755FAD2CADACDF1667E5B57FF1EDFC28DD1C976&quot; }, { &quot;b&quot; : &quot;7F9E352E4000&quot;, &quot;path&quot; : &quot;/lib/x86_64-linux-gnu/libpthread.so.0&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;9318E8AF0BFBE444731BB0461202EF57F7C39542&quot; }, { &quot;b&quot; : &quot;7F9E35086000&quot;, &quot;path&quot; : &quot;/lib/x86_64-linux-gnu/libssl.so.1.0.0&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;70F9A7F3734C01FF8D442C21A03B631588C2FECD&quot; }, { &quot;b&quot; : &quot;7F9E34CAC000&quot;, &quot;path&quot; : &quot;/lib/x86_64-linux-gnu/libcrypto.so.1.0.0&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;8D6FFA819931E68666BCEF4424BA6289838309D7&quot; }, { &quot;b&quot; : &quot;7F9E34AA4000&quot;, &quot;path&quot; : &quot;/lib/x86_64-linux-gnu/librt.so.1&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;92FCF41EFE012D6186E31A59AD05BDBB487769AB&quot; }, { &quot;b&quot; : &quot;7F9E348A0000&quot;, &quot;path&quot; : &quot;/lib/x86_64-linux-gnu/libdl.so.2&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;C1AE4CB7195D337A77A3C689051DABAA3980CA0C&quot; }, { &quot;b&quot; : &quot;7F9E3459C000&quot;, &quot;path&quot; : &quot;/usr/lib/x86_64-linux-gnu/libstdc++.so.6&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;19EFDDAB11B3BF5C71570078C59F91CF6592CE9E&quot; }, { &quot;b&quot; : &quot;7F9E34296000&quot;, &quot;path&quot; : &quot;/lib/x86_64-linux-gnu/libm.so.6&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;1D76B71E905CB867B27CEF230FCB20F01A3178F5&quot; }, { &quot;b&quot; : &quot;7F9E34080000&quot;, &quot;path&quot; : &quot;/lib/x86_64-linux-gnu/libgcc_s.so.1&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;CC0D578C2E0D86237CA7B0CE8913261C506A629A&quot; }, { &quot;b&quot; : &quot;7F9E33CBA000&quot;, &quot;path&quot; : &quot;/lib/x86_64-linux-gnu/libc.so.6&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;882AD7AAD54790E2FA6EF64CA2E6188F06BF9207&quot; }, { &quot;b&quot; : &quot;7F9E35502000&quot;, &quot;path&quot; : &quot;/lib64/ld-linux-x86-64.so.2&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;9F00581AB3C73E3AEA35995A0C50D24D59A01D47&quot; } ] }}&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; mongod(_ZN5mongo15printStackTraceERSo+0x29) [0xf5ba59]&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; mongod(+0xB5B322) [0xf5b322]&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; mongod(+0xB5B67E) [0xf5b67e]&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; libpthread.so.0(+0x10340) [0x7f9e352f4340]&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; mongod(_ZN5mongo12IndexCatalog13IndexIteratorC1EPNS_16OperationContextEPKS0_b+0xA) [0x922b9a]&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; mongod(_ZNK5mongo12IndexCatalog11findIdIndexEPNS_16OperationContextE+0x16) [0x922cb6]&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; mongod(_ZN5mongo10Collection14insertDocumentEPNS_16OperationContextERKNS_7BSONObjEb+0x49) [0x911769]&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; mongod(_ZN5mongo6Cloner3FunclERNS_27DBClientCursorBatchIteratorE+0x262) [0x939bf2]&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; mongod(_ZN5mongo18DBClientConnection5queryESt8functionIFvRNS_27DBClientCursorBatchIteratorEEERKSsNS_5QueryEPKNS_7BSONObjEi+0x1AD) [0x85801d]&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; mongod(_ZN5mongo6Cloner4copyEPNS_16OperationContextERKSsRKNS_15NamespaceStringERKNS_7BSONObjES7_bbbbbNS_5QueryE+0x5C8) [0x934fa8]&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; mongod(_ZN5mongo6Cloner14copyCollectionEPNS_16OperationContextERKSsRKNS_7BSONObjERSsbbbb+0x652) [0x936a92]&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; mongod(_ZN5mongo18CmdCloneCollection3runEPNS_16OperationContextERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x546) [0x949266]&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; mongod(_ZN5mongo12_execCommandEPNS_16OperationContextEPNS_7CommandERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x34) [0x9d5f64]&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; mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_iPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0xC1D) [0x9d6eed]&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; mongod(_ZN5mongo12_runCommandsEPNS_16OperationContextEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x28B) [0x9d7bfb]&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; mongod(_ZN5mongo8runQueryEPNS_16OperationContextERNS_7MessageERNS_12QueryMessageERKNS_15NamespaceStringERNS_5CurOpES3_+0x746) [0xb9c776]&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; mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xB10) [0xab2b50]&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; mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xDD) [0x80e06d]&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; mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x34B) [0xf0e9fb]&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; libpthread.so.0(+0x8182) [0x7f9e352ec182]&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; libc.so.6(clone+0x6D) [0x7f9e33db500d]&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;&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;-----  END BACKTRACE  -----&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;It replicates every time ever since. &lt;/p&gt;</description>
                <environment></environment>
        <key id="223178">SERVER-19644</key>
            <summary>Seg Fault on cloneCollection (specifically gridfs)</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="scotthernandez">Scott Hernandez</assignee>
                                    <reporter username="amitlicht">Amit Lichtenberg</reporter>
                        <labels>
                            <label>RF</label>
                    </labels>
                <created>Wed, 29 Jul 2015 08:24:38 +0000</created>
                <updated>Sat, 19 Sep 2015 00:08:26 +0000</updated>
                            <resolved>Tue, 4 Aug 2015 15:19:04 +0000</resolved>
                                    <version>2.4.9</version>
                    <version>3.0.5</version>
                    <version>3.1.6</version>
                                    <fixVersion>3.0.6</fixVersion>
                    <fixVersion>3.1.7</fixVersion>
                                    <component>GridFS</component>
                    <component>Replication</component>
                                        <votes>1</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="999327" author="xgen-internal-githook" created="Fri, 7 Aug 2015 13:50:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;scotthernandez&apos;, u&apos;name&apos;: u&apos;Scott Hernandez&apos;, u&apos;email&apos;: u&apos;scotthernandez@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19644&quot; title=&quot;Seg Fault on cloneCollection (specifically gridfs)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19644&quot;&gt;&lt;del&gt;SERVER-19644&lt;/del&gt;&lt;/a&gt;: change dassert to verify&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c43b0e5105b95904848a5a9b3d5c3d238464fd9d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c43b0e5105b95904848a5a9b3d5c3d238464fd9d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="997414" author="xgen-internal-githook" created="Wed, 5 Aug 2015 18:04:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;scotthernandez&apos;, u&apos;name&apos;: u&apos;Scott Hernandez&apos;, u&apos;email&apos;: u&apos;scotthernandez@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19644&quot; title=&quot;Seg Fault on cloneCollection (specifically gridfs)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19644&quot;&gt;&lt;del&gt;SERVER-19644&lt;/del&gt;&lt;/a&gt;: ensure valid collection creation when there are no collection options&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 66abb09a28b2d9ec6955f454b7ff86824ebc56c1)&lt;br/&gt;
Branch: v3.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/34b733c0ca7d231949bd7317bab4079a24189875&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/34b733c0ca7d231949bd7317bab4079a24189875&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="996181" author="amitlicht" created="Tue, 4 Aug 2015 16:04:23 +0000"  >&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="996086" author="xgen-internal-githook" created="Tue, 4 Aug 2015 15:09:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;scotthernandez&apos;, u&apos;name&apos;: u&apos;Scott Hernandez&apos;, u&apos;email&apos;: u&apos;scotthernandez@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19644&quot; title=&quot;Seg Fault on cloneCollection (specifically gridfs)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19644&quot;&gt;&lt;del&gt;SERVER-19644&lt;/del&gt;&lt;/a&gt;: ensure valid collection creation when there are no collection options&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/66abb09a28b2d9ec6955f454b7ff86824ebc56c1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/66abb09a28b2d9ec6955f454b7ff86824ebc56c1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="993935" author="scotthernandez" created="Fri, 31 Jul 2015 15:38:13 +0000"  >&lt;p&gt;Looks like there were two interactions when using those versions which caused the problem starting in 3.0.5; this was due to the format of the old data versus the new data coming back from the listCollections command &amp;#8211; specifically the new command always returns an &quot;options&quot; field that when missing from pre-2.6 server caused a problem during cloning.&lt;/p&gt;

&lt;p&gt;This is good news for you as once we fix these two things it should let you keep running without upgrading from 2.4.x, for a while more at least.&lt;/p&gt;</comment>
                            <comment id="993180" author="amitlicht" created="Thu, 30 Jul 2015 18:19:50 +0000"  >&lt;p&gt;I see. Indeed it is probably about time we upgrade the older dbs. So far everything worked so we didn&apos;t have a good-enough excuse, but now we do.&lt;/p&gt;

&lt;p&gt;About your suggestion to copy the documents one at a time - the number of documents at each clone might be large (hundreds or more), so iterating &amp;amp; copying them pythonically takes (too much) time. &lt;/p&gt;

&lt;p&gt;Thank you anyway for your attention. I would be glad to here farther updates if and when you have them. &lt;/p&gt;</comment>
                            <comment id="993174" author="scotthernandez" created="Thu, 30 Jul 2015 18:09:57 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=amitlicht&quot; class=&quot;user-hover&quot; rel=&quot;amitlicht&quot;&gt;amitlicht&lt;/a&gt;, unfortunately using a pre-2.6.x server, like 2.4.9, as a remote source is not supported for 3.0.x. This is covered in various places in the release notes, but not called out specifically for cloneCollection, as it is basically the same for replication and sharding: &lt;a href=&quot;http://docs.mongodb.org/manual/release-notes/3.0-upgrade/#upgrade-a-replica-set-to-3-0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/release-notes/3.0-upgrade/#upgrade-a-replica-set-to-3-0&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We will work on finding the root cause of seg fault but it is unlikely that it make it work with 2.4 since that was not a design goal between those versions. I should have more information in the next few days if you are interested in the underlying technical issues.&lt;/p&gt;

&lt;p&gt;If you upgrade to 2.6.x it will work correctly, of course. Also, it might be just as easy for you to use the python client to copy the documents manually, from one server to the other, and not use cloneCollection at all &amp;#8211; that will work on all server versions as longs you use a version of the python driver with support for them (and yes, the drivers have a much larger range of supported server versions).&lt;/p&gt;</comment>
                            <comment id="993107" author="amitlicht" created="Thu, 30 Jul 2015 17:08:44 +0000"  >&lt;p&gt;That&apos;s great! Waiting for updates. &lt;/p&gt;</comment>
                            <comment id="993077" author="ramon.fernandez" created="Thu, 30 Jul 2015 16:34:12 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=amitlicht&quot; class=&quot;user-hover&quot; rel=&quot;amitlicht&quot;&gt;amitlicht&lt;/a&gt;, using 2.4.9 as the source database (and 3.0.5 as the target) I&apos;m able to reproduce the problem. I&apos;m guessing it may have to do with &lt;tt&gt;listIndexes&lt;/tt&gt;, but that&apos;s a first hunch &amp;#8211; we&apos;re investigating.&lt;/p&gt;</comment>
                            <comment id="993064" author="amitlicht" created="Thu, 30 Jul 2015 16:17:44 +0000"  >&lt;p&gt;Got your request about the -vv, I will make sure to use it when trying to replicate it again.&lt;br/&gt;
Having checked again (while trying to explain our flow better), I see now that there was a mistake in one of my previous comments - &lt;b&gt;the source DB version is 2.4.9 and not 2.6&lt;/b&gt;. &lt;/p&gt;

&lt;p&gt;About your request for snippets - I&apos;d rather not share our actual source code. I will try to describe in more details what we try to do, tell me if you need more details and I&apos;ll try to share what I can:&lt;br/&gt;
We basically have two DBs, the remote (source) db, which is installed on one or more lightweight machines, and the local (destination) which is used as a centralized storage server. In the setup on which this crush occured the versions are 3.0.5 for the local\centralized DB, and 2.4.9 for the remote\lightweight DB. &lt;/p&gt;

&lt;p&gt;On both DBs we use gridfs to save small-medium sized files (usually no more then 100Ks). To do this, we have 3 collections:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;db.fs.files, db.fs.chunks - the regular gridfs structure&lt;/li&gt;
	&lt;li&gt;db.file - contains a collection of file metadatas, each containing the id of a gridfs file &amp;amp; additional metadata (i.e. filename, type, etc).&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;We use pymongo to clone, mongoengine has almost nothing to do with it.&lt;/p&gt;

&lt;p&gt;The logic is as follows: we collect 3 lists of object ids \ uuids: files, fs_chunks &amp;amp; fs_files. The files list will contain all the (uuids) of file metadatas which should be cloned. The fs_files will contain all the object ids of the gridfs files which are associated with the files metadatas whose ids are in the files list. The fs_chunks will contain all the object ids of the gridfs chunks which are associated with those same files. Next, we use pymongo for the following clone command:&lt;br/&gt;
```&lt;br/&gt;
for collection_name in copied_collections:&lt;br/&gt;
            destination_pymongo_db.command(&apos;cloneCollection&apos;, &apos;%s.%s&apos; % (my_db, collection_name),&lt;br/&gt;
                                           **{&apos;from&apos;: fromhost,&lt;br/&gt;
                                              &apos;query&apos;: {&apos;_id&apos;: {&apos;$in&apos;: copied_ids&lt;span class=&quot;error&quot;&gt;&amp;#91;collection_name&amp;#93;&lt;/span&gt;}},&lt;br/&gt;
                                              &apos;to&apos;: &apos;%s.%s&apos; % (destination_pymongo_db.name, collection_name)})&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;At the end of all three clones, we delete the documents in all three lists from the source db using a similar iteration logic.&lt;/p&gt;

&lt;p&gt;If I had to point out a single thing about our usecase which might sound unusual is the way we clone the gridfs files by accessing the fs.files &amp;amp; fs.chunks collections directly (i.e. our clone operates directly on db.fs.files &amp;amp; db.fs.chunks). This sounds like a hack-ish way to do it, but it has been working so far.&lt;/p&gt;

&lt;p&gt;Please update me if this helps in any way or if you need more data. As I said, I hope I&apos;ll manage to replicate this on Sunday in code &amp;amp; dbs I can share. &lt;/p&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Amit&lt;/p&gt;</comment>
                            <comment id="993004" author="ramon.fernandez" created="Thu, 30 Jul 2015 15:40:57 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=amitlicht&quot; class=&quot;user-hover&quot; rel=&quot;amitlicht&quot;&gt;amitlicht&lt;/a&gt;. I tried again to reproduce using pymongo, unsuccessfully. I very much doubt it&apos;s an issue in mongoengine, but I&apos;m not familiar with it so that hasn&apos;t been part of my testing. If you can share the relevant snippets on how collections are being cloned from your application I&apos;ll try those steps on my end.&lt;/p&gt;

&lt;p&gt;We&apos;ll wait for your attempts on Sunday. Dan&apos;s request above (using the &lt;tt&gt;-vv&lt;/tt&gt; switch) will yield more verbose logs, which hopefully will give us some useful hints.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="992957" author="dan@10gen.com" created="Thu, 30 Jul 2015 15:05:37 +0000"  >&lt;p&gt;Hi Amit.  If you are able to run the experiment again on Sunday, can you start the mongod server with verbose logging, i.e., &lt;tt&gt;mongod -vv&lt;/tt&gt;&lt;/p&gt;</comment>
                            <comment id="992939" author="amitlicht" created="Thu, 30 Jul 2015 14:54:00 +0000"  >&lt;p&gt;Hi again.&lt;br/&gt;
Uploading the original data is unfortunately not an option. I will try to think of a way to reproduce it outside of our application. This will probably be only on Sunday (I&apos;m working in Israel time, weekend is almost here). Will update then. &lt;/p&gt;

&lt;p&gt;Thanks again for your help,&lt;br/&gt;
Amit&lt;/p&gt;</comment>
                            <comment id="992268" author="ramon.fernandez" created="Wed, 29 Jul 2015 20:18:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=amitlicht&quot; class=&quot;user-hover&quot; rel=&quot;amitlicht&quot;&gt;amitlicht&lt;/a&gt;, thanks for all your help so far. Unfortunately we haven&apos;t been able to reproduce this issue on our end, so here are some options going forward:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Would you consider sharing your &lt;tt&gt;fs.chunks&lt;/tt&gt; collection with us? If the answer is &quot;yes&quot; I&apos;ll create an upload portal so you can send this data securely and privately&lt;/li&gt;
	&lt;li&gt;If uploading this data is not an option, would you be able to set up a test machine with 3.0.5 and see if the problem reproduces again? If it does we could send you a modified &lt;tt&gt;mongod&lt;/tt&gt; binary that would collect additional information to track down the source of the problem&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Would you be able to accommodate either option?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="991945" author="amitlicht" created="Wed, 29 Jul 2015 15:25:48 +0000"  >&lt;p&gt;Yes, the machine on which the error happened was downgraded to v3.0.4 (by replacing only the mongodb-org-server package). After that point the error did not happen again. The database was not dropped in between - a simple downgrade + starting the server again seem to have solved it. &lt;/p&gt;</comment>
                            <comment id="991921" author="rassi@10gen.com" created="Wed, 29 Jul 2015 15:09:24 +0000"  >&lt;p&gt;Thanks.  When you said &quot;had to downgrade it to an older mongo version to keep working&quot;, can you confirm that you downgraded the newly-deployed instance to 3.0.4, and that that resolved the issue?  To help isolate the problem, I&apos;m particularly interested in whether this issue is reproducible with all 3.0.x versions, or just 3.0.5.&lt;/p&gt;</comment>
                            <comment id="991914" author="amitlicht" created="Wed, 29 Jul 2015 15:05:08 +0000"  >&lt;ul&gt;
	&lt;li&gt;this happened on a newly deployed machine which only ever had v3.0.5. We&apos;ve been using 3.0.4 on other deployments (in which exactly the same logic has been working in the last year or so).&lt;/li&gt;
	&lt;li&gt;yes, it is automatically created on application start&lt;/li&gt;
	&lt;li&gt;did not drop the db between the two crushes. We did have clone commands on other (non-gridfs) collections in the same DB which worked perfectly before and in-between the crushes. We don&apos;t have any code which drops this db.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="991907" author="rassi@10gen.com" created="Wed, 29 Jul 2015 15:00:40 +0000"  >&lt;p&gt;Thanks for the information.  Please do let us know when you&apos;re able to reproduce this again.&lt;/p&gt;

&lt;p&gt;In the meantime, I have a few more follow-up questions:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;What version of the server were you previously running, before you upgraded this instance to 3.0.5 (and what version did you downgrade to, to avoid the issue)?&lt;/li&gt;
	&lt;li&gt;Did the database &quot;mydb&quot; exist on the local instance at the time of clone?&lt;/li&gt;
	&lt;li&gt;After the first crash, did you drop the database or collection before retrying?  And, do you have any application code that would have dropped this database or collection while it was running?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Thanks again.&lt;/p&gt;</comment>
                            <comment id="991887" author="amitlicht" created="Wed, 29 Jul 2015 14:47:25 +0000"  >&lt;p&gt;As per your other question - the clone commands is executed from our application. We use mongoengine over pymongo, if you think it has anything to do with. Specifically the error occurred while trying to replicate data from a remote DB to our main storage, we do it by running cloneCollection selectively on the gridfs content (chunks &amp;amp; files) according to self-implemented availability criteria. &lt;/p&gt;</comment>
                            <comment id="991882" author="amitlicht" created="Wed, 29 Jul 2015 14:44:52 +0000"  >&lt;p&gt;Reproducing will require some time as I no longer have that setup on which the command failed (had to downgrade it to an older mongo version to keep working). I&apos;ll see if we can redeploy and reproduce it. The following output was generated on the same remote db, but after running some other tests on it so it&apos;s not guaranteed to represent the status at the time of error. &lt;br/&gt;
Meanwhile:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;db.fs.chunks.exists(): right now the output is 
{ &quot;name&quot; : &quot;my_db.fs.chunks&quot; }
&lt;p&gt;. At the moment of the failure that db &amp;amp; collection definitely existed.&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;db.fs.chunks.stats(): again this is output from now, not from the time of error:&lt;br/&gt;
```&lt;br/&gt;
{&lt;br/&gt;
        &quot;ns&quot; : &quot;my_db.fs.chunks&quot;,&lt;br/&gt;
        &quot;count&quot; : 9,&lt;br/&gt;
        &quot;size&quot; : 468768,&lt;br/&gt;
        &quot;avgObjSize&quot; : 52085.333333333336,&lt;br/&gt;
        &quot;storageSize&quot; : 2252800,&lt;br/&gt;
        &quot;numExtents&quot; : 3,&lt;br/&gt;
        &quot;nindexes&quot; : 2,&lt;br/&gt;
        &quot;lastExtentSize&quot; : 2023424,&lt;br/&gt;
        &quot;paddingFactor&quot; : 1,&lt;br/&gt;
        &quot;systemFlags&quot; : 1,&lt;br/&gt;
        &quot;userFlags&quot; : 0,&lt;br/&gt;
        &quot;totalIndexSize&quot; : 16352,&lt;br/&gt;
        &quot;indexSizes&quot; : 
{
                &quot;_id_&quot; : 8176,
                &quot;files_id_1_n_1&quot; : 8176
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
```&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The other commands are no longer relevant on current DB data. &lt;/p&gt;</comment>
                            <comment id="991872" author="rassi@10gen.com" created="Wed, 29 Jul 2015 14:38:26 +0000"  >&lt;p&gt;I&apos;d like to ask for additional information to further diagnose the issue:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;What version of the server were you previously running, before you upgraded this instance to 3.0.5?&lt;/li&gt;
	&lt;li&gt;Could you please provide output from &lt;tt&gt;db.fs.chunks.exists()&lt;/tt&gt; on the remote collection, in addition to &lt;tt&gt;db.fs.chunks.stats()&lt;/tt&gt;?&lt;/li&gt;
	&lt;li&gt;Could you please provide output from running the following query on the remote collection:
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;&lt;tt&gt;db.fs.chunks.find({ _id: { $in: [ ObjectId(&apos;55b87e0f0429ea379c610524&apos;), ObjectId(&apos;55b886f90429ea0918c63f8a&apos;) ] } })&lt;/tt&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;Would you please attempt to reproduce this issue, and then run the following commands immediately after restarting the crashed mongod process, on the local collection:
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;&lt;tt&gt;db.fs.chunks.getIndexes()&lt;/tt&gt;&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;db.fs.chunks.stats()&lt;/tt&gt;&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;db.fs.chunks.exists()&lt;/tt&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="991868" author="dan@10gen.com" created="Wed, 29 Jul 2015 14:37:06 +0000"  >&lt;p&gt;Also, the log output shows the command is passing a query to cloneCollection in both instances (but different query).  Is this from your application or from the shell?&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;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;2015-07-29T10:13:44.018+0300 I COMMAND  [conn3655] cloneCollection.  db:my_db collection:my_db.fs.chunks from: 172.16.100.101:27017 query: { _id: { $in: [ ObjectId(&apos;55b87e0f0429ea379c610524&apos;) ] } } &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;....&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;....&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;&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;2015-07-29T10:57:50.272+0300 I COMMAND  [conn353] cloneCollection.  db:my_db collection:my_db.fs.chunks from: 172.16.100.101:27017 query: { _id: { $in: [ ObjectId(&apos;55b886f90429ea0918c63f8a&apos;) ] } } &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="991858" author="dan@10gen.com" created="Wed, 29 Jul 2015 14:27:44 +0000"  >&lt;p&gt;Can you paste the output from &lt;tt&gt;db.fs.chunks.stats()&lt;/tt&gt; in the mongo shell on the remote collection please&lt;/p&gt;</comment>
                            <comment id="991798" author="amitlicht" created="Wed, 29 Jul 2015 13:44:36 +0000"  >&lt;p&gt;I cannot add the full load due to company privacy issues. I added partial data including boot info &amp;amp; crush data from two different crushes we had on the same instance in a short time. &lt;/p&gt;</comment>
                            <comment id="991739" author="ramon.fernandez" created="Wed, 29 Jul 2015 12:09:46 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=amitlicht&quot; class=&quot;user-hover&quot; rel=&quot;amitlicht&quot;&gt;amitlicht&lt;/a&gt;, can you please upload full logs for this node since the last restart? I&apos;m looking specifically for startup options and binary information that appear under the &lt;tt&gt;[initandlisten]&lt;/tt&gt; thread at the beginning of the log.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="991692" author="amitlicht" created="Wed, 29 Jul 2015 09:08:29 +0000"  >&lt;p&gt;Additional info: local DB version (the one running the clone) is 3.0.5. Remote DB version is 2.6. Another clone which operated on a regular (non-gridfs) collection worked fine. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="83803" name="mongod_partial.log" size="31084" author="amitlicht" created="Wed, 29 Jul 2015 13:44:36 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>26.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="15589">3.0.6</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 29 Jul 2015 12:09:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 27 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>
                            8 years, 27 weeks, 5 days ago
                        </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>amitlicht</customfieldvalue>
            <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>rassi</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkz6f:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="593">RPL 7 08/10/15</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Run cloneCollection from a remote gridfs chunks collection&lt;/p&gt;</customfieldvalue>

                        </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|hs5c9b:</customfieldvalue>

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