<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:26:01 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-31105] mongo shell crashes if the OS name cannot be determined</title>
                <link>https://jira.mongodb.org/browse/SERVER-31105</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The mongo command will crash if the OS name cannot be determined.&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;   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;&#8594; mongo localhost:57017MongoDB shell version v3.4.4connecting to: localhost:570172017-08-23T09:07:03.105+0100 I -&#160;&#160;&#160;&#160;&#160;&#160;&#160; [thread1] Invariant failure !driverName.empty() &amp;amp;&amp;amp; !driverVersion.empty() &amp;amp;&amp;amp; !osType.empty() &amp;amp;&amp;amp; !osName.empty() &amp;amp;&amp;amp; !osArchitecture.empty() &amp;amp;&amp;amp; !osVersion.empty() src/mongo/rpc/metadata/client_metadata.cpp 3502017-08-23T09:07:03.105+0100 I -&#160;&#160;&#160;&#160;&#160;&#160;&#160; [thread1] ***aborting after invariant() failure2017-08-23T09:07:03.112+0100 F -&#160;&#160;&#160;&#160;&#160;&#160;&#160; [thread1] Got signal: 6 (Aborted).&#160;0xd64e7afa41 0xd64e7aeb59 0xd64e7af03d 0x7f86db6fca80 0x7f86db37f2c4 0x7f86db38072a 0xd64e448c8a 0xd64e6764bd 0xd64e676810 0xd64e4ebdf1 0xd64e4ec6f5 0xd64e4dd86d 0xd64e51c041 0xd64e6c9032 0xd64e6bc003 0xd64ede08ff 0xd64eddc5da 0xd64ede0303 0xd64ede6dff 0xd64ede6f81 0xd64ec8f32a 0xd64ec8f3d0 0xd64e6b7581 0xd64e7180bd 0xd64e6ba458 0xd64e6e69f2 0xd64e69bd0c 0x7f86dbee84a0 0x7f86db6f2454 0x7f86db4347bf----- BEGIN BACKTRACE -----{&quot;backtrace&quot;:[{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;7EDA41&quot;,&quot;s&quot;:&quot;_ZN5mongo15printStackTraceERSo&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;7ECB59&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;7ED03D&quot;},{&quot;b&quot;:&quot;7F86DB6EB000&quot;,&quot;o&quot;:&quot;11A80&quot;},{&quot;b&quot;:&quot;7F86DB34C000&quot;,&quot;o&quot;:&quot;332C4&quot;,&quot;s&quot;:&quot;gsignal&quot;},{&quot;b&quot;:&quot;7F86DB34C000&quot;,&quot;o&quot;:&quot;3472A&quot;,&quot;s&quot;:&quot;abort&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;486C8A&quot;,&quot;s&quot;:&quot;_ZN5mongo17invariantOKFailedEPKcRKNS_6StatusES1_j&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;6B44BD&quot;,&quot;s&quot;:&quot;_ZN5mongo14ClientMetadata16serializePrivateENS_10StringDataES1_S1_S1_S1_S1_S1_PNS_14BSONObjBuilderE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;6B4810&quot;,&quot;s&quot;:&quot;_ZN5mongo14ClientMetadata9serializeENS_10StringDataES1_S1_PNS_14BSONObjBuilderE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;529DF1&quot;,&quot;s&quot;:&quot;_ZN5mongo18DBClientConnection7connectERKNS_11HostAndPortENS_10StringDataE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;52A6F5&quot;,&quot;s&quot;:&quot;_ZN5mongo18DBClientConnection7connectERKNS_11HostAndPortENS_10StringDataERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;51B86D&quot;,&quot;s&quot;:&quot;_ZNK5mongo16ConnectionString7connectENS_10StringDataERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdPKNS_8MongoURIE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;55A041&quot;,&quot;s&quot;:&quot;_ZNK5mongo8MongoURI7connectENS_10StringDataERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5boost8optionalIdEE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;707032&quot;,&quot;s&quot;:&quot;_ZN5mongo5mozjs17MongoExternalInfo9constructEP9JSContextN2JS8CallArgsE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;6FA003&quot;,&quot;s&quot;:&quot;_ZN5mongo5mozjs7smUtils9constructINS0_17MongoExternalInfoEEEbP9JSContextjPN2JS5ValueE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;E1E8FF&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;E1A5DA&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;E1E303&quot;,&quot;s&quot;:&quot;_ZN2js9RunScriptEP9JSContextRNS_8RunStateE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;E24DFF&quot;,&quot;s&quot;:&quot;_ZN2js13ExecuteKernelEP9JSContextN2JS6HandleIP8JSScriptEER8JSObjectRKNS2_5ValueENS_11ExecuteTypeENS_16AbstractFramePtrEPS9_&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;E24F81&quot;,&quot;s&quot;:&quot;_ZN2js7ExecuteEP9JSContextN2JS6HandleIP8JSScriptEER8JSObjectPNS2_5ValueE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;CCD32A&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;CCD3D0&quot;,&quot;s&quot;:&quot;_Z16JS_ExecuteScriptP9JSContextN2JS6HandleIP8JSScriptEENS1_13MutableHandleINS1_5ValueEEE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;6F5581&quot;,&quot;s&quot;:&quot;_ZN5mongo5mozjs14MozJSImplScope4execENS_10StringDataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbbbi&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;7560BD&quot;,&quot;s&quot;:&quot;_ZN5mongo11shell_utils9initScopeERNS_5ScopeE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;6F8458&quot;,&quot;s&quot;:&quot;_ZN5mongo5mozjs14MozJSImplScopeC1EPNS0_17MozJSScriptEngineE&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;7249F2&quot;,&quot;s&quot;:&quot;_ZN5mongo5mozjs15MozJSProxyScope10implThreadEPv&quot;},{&quot;b&quot;:&quot;D64DFC2000&quot;,&quot;o&quot;:&quot;6D9D0C&quot;,&quot;s&quot;:&quot;_ZN4nspr6Thread13ThreadRoutineEPv&quot;},{&quot;b&quot;:&quot;7F86DBE32000&quot;,&quot;o&quot;:&quot;B64A0&quot;},{&quot;b&quot;:&quot;7F86DB6EB000&quot;,&quot;o&quot;:&quot;7454&quot;},{&quot;b&quot;:&quot;7F86DB34C000&quot;,&quot;o&quot;:&quot;E87BF&quot;,&quot;s&quot;:&quot;clone&quot;}],&quot;processInfo&quot;:{ &quot;mongodbVersion&quot; : &quot;3.4.4&quot;, &quot;gitVersion&quot; : &quot;nogitversion&quot;, &quot;compiledModules&quot; : [], &quot;uname&quot; : { &quot;sysname&quot; : &quot;Linux&quot;, &quot;release&quot; : &quot;4.9.44-gnu&quot;, &quot;version&quot; : &quot;#1 SMP 1&quot;, &quot;machine&quot; : &quot;x86_64&quot; }, &quot;somap&quot; : [ { &quot;b&quot; : &quot;D64DFC2000&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;64938EB328B5F2600C09750DAEB910E82DB2DC10&quot; }, { &quot;b&quot; : &quot;7FFD82BCA000&quot;, &quot;path&quot; : &quot;linux-vdso.so.1&quot;, &quot;elfType&quot; : 3, &quot;buildId&quot; : &quot;883DD2FCEED79AD31D8B0B74D24FDBCDFBE6CE33&quot; }, { &quot;b&quot; : &quot;7F86DC3B0000&quot;, &quot;path&quot; : &quot;/gnu/store/rmjlycdgiq8pfy5hfi42qhw3k7p6kdav-glibc-2.25/lib/librt.so.1&quot;, &quot;elfType&quot; : 3 }, { &quot;b&quot; : &quot;7F86DC1AC000&quot;, &quot;path&quot; : &quot;/gnu/store/rmjlycdgiq8pfy5hfi42qhw3k7p6kdav-glibc-2.25/lib/libdl.so.2&quot;, &quot;elfType&quot; : 3 }, { &quot;b&quot; : &quot;7F86DBE32000&quot;, &quot;path&quot; : &quot;/gnu/store/dhc2iy059hi91fk55dcv79z09kp6500y-gcc-5.4.0-lib/lib/libstdc++.so.6&quot;, &quot;elfType&quot; : 3 }, { &quot;b&quot; : &quot;7F86DBB20000&quot;, &quot;path&quot; : &quot;/gnu/store/rmjlycdgiq8pfy5hfi42qhw3k7p6kdav-glibc-2.25/lib/libm.so.6&quot;, &quot;elfType&quot; : 3 }, { &quot;b&quot; : &quot;7F86DB909000&quot;, &quot;path&quot; : &quot;/gnu/store/dhc2iy059hi91fk55dcv79z09kp6500y-gcc-5.4.0-lib/lib/libgcc_s.so.1&quot;, &quot;elfType&quot; : 3 }, { &quot;b&quot; : &quot;7F86DB6EB000&quot;, &quot;path&quot; : &quot;/gnu/store/rmjlycdgiq8pfy5hfi42qhw3k7p6kdav-glibc-2.25/lib/libpthread.so.0&quot;, &quot;elfType&quot; : 3 }, { &quot;b&quot; : &quot;7F86DB34C000&quot;, &quot;path&quot; : &quot;/gnu/store/rmjlycdgiq8pfy5hfi42qhw3k7p6kdav-glibc-2.25/lib/libc.so.6&quot;, &quot;elfType&quot; : 3 }, { &quot;b&quot; : &quot;7F86DC5B8000&quot;, &quot;path&quot; : &quot;/gnu/store/rmjlycdgiq8pfy5hfi42qhw3k7p6kdav-glibc-2.25/lib/ld-linux-x86-64.so.2&quot;, &quot;elfType&quot; : 3 } ] }}&#160;mongo(_ZN5mongo15printStackTraceERSo+0x41) [0xd64e7afa41]&#160;mongo(+0x7ECB59) [0xd64e7aeb59]&#160;mongo(+0x7ED03D) [0xd64e7af03d]&#160;libpthread.so.0(+0x11A80) [0x7f86db6fca80]&#160;libc.so.6(gsignal+0x104) [0x7f86db37f2c4]&#160;libc.so.6(abort+0x16A) [0x7f86db38072a]&#160;mongo(_ZN5mongo17invariantOKFailedEPKcRKNS_6StatusES1_j+0x0) [0xd64e448c8a]&#160;mongo(_ZN5mongo14ClientMetadata16serializePrivateENS_10StringDataES1_S1_S1_S1_S1_S1_PNS_14BSONObjBuilderE+0x22AD) [0xd64e6764bd]&#160;mongo(_ZN5mongo14ClientMetadata9serializeENS_10StringDataES1_S1_PNS_14BSONObjBuilderE+0xA0) [0xd64e676810]&#160;mongo(_ZN5mongo18DBClientConnection7connectERKNS_11HostAndPortENS_10StringDataE+0x2F1) [0xd64e4ebdf1]&#160;mongo(_ZN5mongo18DBClientConnection7connectERKNS_11HostAndPortENS_10StringDataERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x35) [0xd64e4ec6f5]&#160;mongo(_ZNK5mongo16ConnectionString7connectENS_10StringDataERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdPKNS_8MongoURIE+0xBBD) [0xd64e4dd86d]&#160;mongo(_ZNK5mongo8MongoURI7connectENS_10StringDataERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5boost8optionalIdEE+0xC1) [0xd64e51c041]&#160;mongo(_ZN5mongo5mozjs17MongoExternalInfo9constructEP9JSContextN2JS8CallArgsE+0x6A2) [0xd64e6c9032]&#160;mongo(_ZN5mongo5mozjs7smUtils9constructINS0_17MongoExternalInfoEEEbP9JSContextjPN2JS5ValueE+0x33) [0xd64e6bc003]&#160;mongo(+0xE1E8FF) [0xd64ede08ff]&#160;mongo(+0xE1A5DA) [0xd64eddc5da]&#160;mongo(_ZN2js9RunScriptEP9JSContextRNS_8RunStateE+0x113) [0xd64ede0303]&#160;mongo(_ZN2js13ExecuteKernelEP9JSContextN2JS6HandleIP8JSScriptEER8JSObjectRKNS2_5ValueENS_11ExecuteTypeENS_16AbstractFramePtrEPS9_+0xCF) [0xd64ede6dff]&#160;mongo(_ZN2js7ExecuteEP9JSContextN2JS6HandleIP8JSScriptEER8JSObjectPNS2_5ValueE+0xB1) [0xd64ede6f81]&#160;mongo(+0xCCD32A) [0xd64ec8f32a]&#160;mongo(_Z16JS_ExecuteScriptP9JSContextN2JS6HandleIP8JSScriptEENS1_13MutableHandleINS1_5ValueEEE+0x60) [0xd64ec8f3d0]&#160;mongo(_ZN5mongo5mozjs14MozJSImplScope4execENS_10StringDataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbbbi+0x181) [0xd64e6b7581]&#160;mongo(_ZN5mongo11shell_utils9initScopeERNS_5ScopeE+0x4BD) [0xd64e7180bd]&#160;mongo(_ZN5mongo5mozjs14MozJSImplScopeC1EPNS0_17MozJSScriptEngineE+0x1968) [0xd64e6ba458]&#160;mongo(_ZN5mongo5mozjs15MozJSProxyScope10implThreadEPv+0x92) [0xd64e6e69f2]&#160;mongo(_ZN4nspr6Thread13ThreadRoutineEPv+0x1C) [0xd64e69bd0c]&#160;libstdc++.so.6(+0xB64A0) [0x7f86dbee84a0]&#160;libpthread.so.0(+0x7454) [0x7f86db6f2454]&#160;libc.so.6(clone+0x3F) [0x7f86db4347bf]-----&#160; END BACKTRACE&#160; -----Aborted&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;Using strace shows that it attempts to find out the information from the filesystem, but fails:&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;stat(&quot;/etc/lsb-release&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;stat(&quot;/etc/system-release&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;stat(&quot;/etc/redhat-release&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;stat(&quot;/etc/gentoo-release&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;stat(&quot;/etc/novell-release&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;stat(&quot;/etc/gentoo-release&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;stat(&quot;/etc/SuSE-release&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;stat(&quot;/etc/SUSE-release&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;stat(&quot;/etc/sles-release&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;stat(&quot;/etc/debian_release&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;stat(&quot;/etc/slackware-version&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;stat(&quot;/etc/centos-release&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;stat(&quot;/etc/os-release&quot;, 0x7fffa09702d0) = -1 ENOENT (No such file or directory)&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;Using GDB confirms that the osName is empty:&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;   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;MongoDB shell version v3.4.9[New Thread 0x7ffff4b88700 (LWP 19019)][New Thread 0x7ffff4387700 (LWP 19020)]connecting to: mongodb://127.0.0.1:57017/2017-09-15T17:54:41.540+0100 I -&#160;&#160;&#160;&#160;&#160;&#160;&#160; [thread1] Invariant failure !driverName.empty() &amp;amp;&amp;amp; !driverVersion.empty() &amp;amp;&amp;amp; !osType.empty() &amp;amp;&amp;amp; !osName.empty() &amp;amp;&amp;amp; !osArchitecture.empty() &amp;amp;&amp;amp; !osVersion.empty() src/mongo/rpc/metadata/client_metadata.cpp 350Thread 3 &quot;thread1&quot; received signal SIGTRAP, Trace/breakpoint trap.[Switching to Thread 0x7ffff4387700 (LWP 19020)]raise (sig=&amp;lt;optimized out&amp;gt;) at ../sysdeps/unix/sysv/linux/raise.c:5151&#160;&#160; &#160;../sysdeps/unix/sysv/linux/raise.c: No such file or directory.(gdb) bt full 4#0&#160; raise (sig=&amp;lt;optimized out&amp;gt;) at ../sysdeps/unix/sysv/linux/raise.c:51&#160;&#160;&#160;&#160;&#160;&#160;&#160; set = {__val = {0, 0, 0, 0, 0, 0, 0, 0, 0, 268435456, 18355225682008095280, 140737259776256, 0, 0, 140737290713408, 93825017283081}}&#160;&#160;&#160;&#160;&#160;&#160;&#160; pid = &amp;lt;optimized out&amp;gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160; tid = &amp;lt;optimized out&amp;gt;#1&#160; 0x0000555556980386 in mongo::breakpoint () at src/mongo/util/debugger.cpp:68No locals.#2&#160; 0x0000555556973b73 in mongo::invariantFailed (&#160;&#160;&#160; expr=0x55555771ba50 &quot;!driverName.empty() &amp;amp;&amp;amp; !driverVersion.empty() &amp;amp;&amp;amp; !osType.empty() &amp;amp;&amp;amp; !osName.empty() &amp;amp;&amp;amp; !osArchitecture.empty() &amp;amp;&amp;amp; !osVersion.empty()&quot;, &#160;&#160;&#160; file=0x55555771ba20 &quot;src/mongo/rpc/metadata/client_metadata.cpp&quot;, line=350) at src/mongo/util/assert_util.cpp:152No locals.#3&#160; 0x000055555687d47c in mongo::ClientMetadata::serializePrivate (driverName=..., driverVersion=..., osType=..., osName=..., osArchitecture=..., osVersion=..., appName=..., &#160;&#160;&#160; builder=0x7ffff4383f50) at src/mongo/rpc/metadata/client_metadata.cpp:350No locals.(More stack frames follow...)(gdb) info argsdriverName = {_data = 0x5555576f1413 &quot;MongoDB Internal Client&quot;, _size = 23}driverVersion = {_data = 0x5555577d6610 &quot;3.4.9&quot;, _size = 5}osType = {_data = 0x7ffff4fe4b30 &quot;Linux&quot;, _size = 5}osName = {_data = 0x7ffff4fe4b50 &quot;&quot;, _size = 0}osArchitecture = {_data = 0x7ffff4fe4bb0 &quot;x86_64&quot;, _size = 6}osVersion = {_data = 0x7ffff4fe4b70 &quot;&quot;, _size = 0}appName = {_data = 0x7ffff27dd718 &quot;MongoDB Shell&quot;, _size = 13}builder = 0x7ffff4383f50&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="428205">SERVER-31105</key>
            <summary>mongo shell crashes if the OS name cannot be determined</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="mark.agarunov">Mark Agarunov</assignee>
                                    <reporter username="cbaines">Christopher Baines</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Sep 2017 17:16:52 +0000</created>
                <updated>Mon, 29 Jan 2018 18:34:10 +0000</updated>
                            <resolved>Fri, 15 Sep 2017 17:23:59 +0000</resolved>
                                                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1675531" author="ramon.fernandez" created="Mon, 18 Sep 2017 16:19:39 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=cbaines&quot; class=&quot;user-hover&quot; rel=&quot;cbaines&quot;&gt;cbaines&lt;/a&gt;, this issue was reported in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30857&quot; title=&quot;when i try to launch ./mongo instance its crash right away even it show on other hand connection accepted from 127.0.0.1:54008 #1 (1 connection now open)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30857&quot;&gt;&lt;del&gt;SERVER-30857&lt;/del&gt;&lt;/a&gt; so we&apos;ve marked this ticket as a duplicate. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30857&quot; title=&quot;when i try to launch ./mongo instance its crash right away even it show on other hand connection accepted from 127.0.0.1:54008 #1 (1 connection now open)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-30857&quot;&gt;&lt;del&gt;SERVER-30857&lt;/del&gt;&lt;/a&gt; is in the works, so feel free to follow it for updates.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="1674182" author="cbaines" created="Fri, 15 Sep 2017 17:20:54 +0000"  >&lt;p&gt;I forgot to say in the description, I encountered this while using GuixSD, and it&apos;s also a problem when running mongo in a container which doesn&apos;t have access to these /etc files, regardless of the operating system.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="420712">SERVER-30857</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</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>Mon, 18 Sep 2017 16:19:39 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 21 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 21 weeks, 2 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>cbaines</customfieldvalue>
            <customfieldvalue>mark.agarunov</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htexrr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht6s73:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </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 mongo in an environment where none of the files listed in the strace extract above exist.&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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htejv3:</customfieldvalue>

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