<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:03:50 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-23588] mongod with WiredTiger won&apos;t start on Windows when built with --dbg=on --opt=off</title>
                <link>https://jira.mongodb.org/browse/SERVER-23588</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The WT bootstrap code double-opens the .turtle file, which causes validation exception and process termination in Windows debug builds. The second open happens at &lt;a href=&quot;https://github.com/mongodb/mongo/blob/de6f136d83b20f8a58ba6fe4ba02be229b6c9159/src/third_party/wiredtiger/src/os_win/os_fs.c#L631&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this line&lt;/a&gt; and the file has previously been opened &lt;a href=&quot;https://github.com/mongodb/mongo/blob/de6f136d83b20f8a58ba6fe4ba02be229b6c9159/src/third_party/wiredtiger/src/os_win/os_fs.c#L577&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;With this problem debug builds on Windows are unusable and evergreen does not catch it because we build with &lt;tt&gt;--dbg=on --opt=off&lt;/tt&gt;, which includes the release runtime.&lt;/p&gt;

&lt;p&gt;This is the call stack:&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;&amp;gt;	msvcr120.dll!_invoke_watson(const wchar_t * pszExpression=0x000001d20000000b, const wchar_t * pszFunction=0x00007ffcb1d67adf, const wchar_t * pszFile=0x0000001d00000000, unsigned int nLine=1722168464, unsigned __int64 pReserved=0) Line 132	C++&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; 	msvcr120.dll!_invalid_parameter(const wchar_t * pszExpression=0x0000000000000000, const wchar_t * pszFunction=0x0000000000000000, const wchar_t * pszFile=0x0000000000000000, unsigned int nLine=0, unsigned __int64 pReserved=0) Line 85	C++&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; 	msvcr120.dll!_invalid_parameter_noinfo() Line 97	C++&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; 	msvcr120.dll!_fdopen(int filedes, const char * mode) Line 55	C&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.exe!__win_handle_open(__wt_session_impl * session=0x000001d2f3760000, __wt_fh * fh=0x000001d2f333f100, const char * name=0x000001d2f333d270, unsigned int file_type=16, unsigned int flags=72) Line 634	C&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.exe!__wt_open(__wt_session_impl * session=0x000001d2f3760000, const char * name=0x00007ff755c0edb8, unsigned int file_type=16, unsigned int flags=72, __wt_fh * * fhp=0x0000001d9373c9b8) Line 204	C&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.exe!__wt_turtle_read(__wt_session_impl * session=0x000001d2f3760000, const char * key=0x000001d2f33411c0, char * * valuep=0x0000001d9373cbc8) Line 261	C&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.exe!__wt_metadata_search(__wt_session_impl * session=0x000001d2f3760000, const char * key=0x000001d2f33411c0, char * * valuep=0x0000001d9373cbc8) Line 275	C&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.exe!__conn_btree_config_set(__wt_session_impl * session=0x000001d2f3760000) Line 250	C&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.exe!__wt_conn_btree_open(__wt_session_impl * session=0x000001d2f3760000, const char * * cfg=0x0000001d9373cfc8, unsigned int flags=0) Line 318	C&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.exe!__wt_session_get_btree(__wt_session_impl * session=0x000001d2f3760000, const char * uri=0x00007ff755c0aba0, const char * checkpoint=0x0000000000000000, const char * * cfg=0x0000001d9373cfc8, unsigned int flags=0) Line 529	C&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.exe!__wt_session_get_btree(__wt_session_impl * session=0x000001d2f3760000, const char * uri=0x00007ff755c0aba0, const char * checkpoint=0x0000000000000000, const char * * cfg=0x0000001d9373cfc8, unsigned int flags=0) Line 522	C&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.exe!__wt_session_get_btree_ckpt(__wt_session_impl * session=0x000001d2f3760000, const char * uri=0x00007ff755c0aba0, const char * * cfg=0x0000001d9373cfc8, unsigned int flags=0) Line 339	C&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.exe!__wt_curfile_open(__wt_session_impl * session=0x000001d2f3760000, const char * uri=0x00007ff755c0aba0, __wt_cursor * owner=0x0000000000000000, const char * * cfg=0x0000001d9373cfc8, __wt_cursor * * cursorp=0x0000001d9373d048) Line 553	C&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.exe!__session_open_cursor_int(__wt_session_impl * session=0x000001d2f3760000, const char * uri=0x00007ff755c0aba0, __wt_cursor * owner=0x0000000000000000, __wt_cursor * other=0x0000000000000000, const char * * cfg=0x0000001d9373cfc8, __wt_cursor * * cursorp=0x0000001d9373d048) Line 329	C&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.exe!__wt_open_cursor(__wt_session_impl * session=0x000001d2f3760000, const char * uri=0x00007ff755c0aba0, __wt_cursor * owner=0x0000000000000000, const char * * cfg=0x0000001d9373cfc8, __wt_cursor * * cursorp=0x0000001d9373d048) Line 383	C&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.exe!__wt_metadata_cursor_open(__wt_session_impl * session=0x000001d2f3760000, const char * config=0x0000000000000000, __wt_cursor * * cursorp=0x0000001d9373d048) Line 59	C&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.exe!__wt_metadata_cursor(__wt_session_impl * session=0x000001d2f3760000, __wt_cursor * * cursorp=0x0000000000000000) Line 103	C&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.exe!wiredtiger_open(const char * home=0x00007ff755d4b158, __wt_event_handler * event_handler=0x000001d2f26ad260, const char * config=0x000001d2f2518740, __wt_connection * * wt_connp=0x000001d2f26ad258) Line 2238	C&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.exe!mongo::WiredTigerKVEngine::WiredTigerKVEngine(const std::basic_string&amp;lt;char,std::char_traits&amp;lt;char&amp;gt;,std::allocator&amp;lt;char&amp;gt; &amp;gt; &amp;amp; canonicalName={...}, const std::basic_string&amp;lt;char,std::char_traits&amp;lt;char&amp;gt;,std::allocator&amp;lt;char&amp;gt; &amp;gt; &amp;amp; path={...}, const std::basic_string&amp;lt;char,std::char_traits&amp;lt;char&amp;gt;,std::allocator&amp;lt;char&amp;gt; &amp;gt; &amp;amp; extraOpenOptions={...}, unsigned __int64 cacheSizeGB=18, bool durable=true, bool ephemeral=false, bool repair=false, bool readOnly=false) Line 248	C++&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.exe!mongo::`anonymous namespace&apos;::WiredTigerFactory::create(const mongo::StorageGlobalParams &amp;amp; params={...}, const mongo::StorageEngineLockFile * lockFile=0x000001d2f26b3070) Line 86	C++&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.exe!mongo::ServiceContextMongoD::initializeGlobalStorageEngine() Line 187	C++&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.exe!mongo::_initAndListen(int listenPort=27017) Line 568	C++&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.exe!mongo::initAndListen(int listenPort=27017) Line 757	C++&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.exe!mongoDbMain(int argc=3, char * * argv=0x000001d2f2501840, char * * envp=0x000001d2f2505e10) Line 1061	C++&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; 	mongod.exe!wmain(int argc=3, wchar_t * * argvW=0x000001d2f0abe7a0, wchar_t * * envpW=0x000001d2f0ad78c0) Line 795	C++&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;This is the error:&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;Unhandled exception at 0x00007FFC66AADD27 (msvcr120.dll) in mongod.exe: An invalid parameter was passed to a function that considers invalid parameters fatal.&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="278032">SERVER-23588</key>
            <summary>mongod with WiredTiger won&apos;t start on Windows when built with --dbg=on --opt=off</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="alexander.gorrod@mongodb.com">Alexander Gorrod</assignee>
                                    <reporter username="kaloian.manassiev@mongodb.com">Kaloian Manassiev</reporter>
                        <labels>
                            <label>code-only</label>
                    </labels>
                <created>Wed, 6 Apr 2016 21:33:20 +0000</created>
                <updated>Tue, 22 Nov 2016 16:59:08 +0000</updated>
                            <resolved>Fri, 8 Apr 2016 06:51:28 +0000</resolved>
                                    <version>3.3.5</version>
                                    <fixVersion>3.2.6</fixVersion>
                    <fixVersion>3.3.5</fixVersion>
                                    <component>WiredTiger</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1235825" author="xgen-internal-githook" created="Thu, 14 Apr 2016 14:29:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Ramon Fernandez&apos;, u&apos;email&apos;: u&apos;ramon@mongodb.com&apos;}
&lt;p&gt;Message: Import wiredtiger-wiredtiger-2.8.0-201-g7ea2631.tar.gz from wiredtiger branch mongodb-3.2&lt;/p&gt;

&lt;p&gt;ref: 43e885a..7ea2631&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23504&quot; title=&quot;Coverity analysis defect 98177: Resource leak&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23504&quot;&gt;&lt;del&gt;SERVER-23504&lt;/del&gt;&lt;/a&gt;  Coverity analysis defect 98177: Resource leak&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23526&quot; title=&quot;Replication relies on storage engines reporting a non-zero size for correctness&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23526&quot;&gt;&lt;del&gt;SERVER-23526&lt;/del&gt;&lt;/a&gt;  Replication relies on storage engines reporting a non-zero size for correctness&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23588&quot; title=&quot;mongod with WiredTiger won&amp;#39;t start on Windows when built with --dbg=on --opt=off&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23588&quot;&gt;&lt;del&gt;SERVER-23588&lt;/del&gt;&lt;/a&gt;  mongod with WiredTiger won&apos;t start on Windows when built with --dbg=on --opt=off&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23682&quot; title=&quot;WiredTiger changes for MongoDB 3.2.6&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23682&quot;&gt;&lt;del&gt;SERVER-23682&lt;/del&gt;&lt;/a&gt;  WiredTiger changes for MongoDB 3.2.6&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2330&quot; title=&quot;in-memory configurations should not create on-disk collection files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2330&quot;&gt;&lt;del&gt;WT-2330&lt;/del&gt;&lt;/a&gt;       in-memory configurations should not create on-disk collection files&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2507&quot; title=&quot;Add upgrading documentation in preparation for 2.8 release.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2507&quot;&gt;&lt;del&gt;WT-2507&lt;/del&gt;&lt;/a&gt;       Add upgrading documentation in preparation for 2.8 release.&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2512&quot; title=&quot;wtperf: MSVC complains about float conversion in throttle code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2512&quot;&gt;&lt;del&gt;WT-2512&lt;/del&gt;&lt;/a&gt;       wtperf: MSVC complains about float conversion in throttle code&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2513&quot; title=&quot;conversion from &amp;#39;int64_t&amp;#39; to &amp;#39;uint32_t&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2513&quot;&gt;&lt;del&gt;WT-2513&lt;/del&gt;&lt;/a&gt;       conversion from &apos;int64_t&apos; to &apos;uint32_t&apos;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2517&quot; title=&quot;wtperf uses setvbuf in a way that isn&amp;#39;t supported on Windows&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2517&quot;&gt;&lt;del&gt;WT-2517&lt;/del&gt;&lt;/a&gt;       wtperf uses setvbuf in a way that isn&apos;t supported on Windows&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2522&quot; title=&quot;Incorrect format code in message&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2522&quot;&gt;&lt;del&gt;WT-2522&lt;/del&gt;&lt;/a&gt;       Incorrect format code in message&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2525&quot; title=&quot;in-memory configurations: miscellaneous cleanups&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2525&quot;&gt;&lt;del&gt;WT-2525&lt;/del&gt;&lt;/a&gt;       in-memory configurations: miscellaneous cleanups&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2527&quot; title=&quot;OS X compile error, missing POSIX_FADV_WILLNEED #define&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2527&quot;&gt;&lt;del&gt;WT-2527&lt;/del&gt;&lt;/a&gt;       OS X compile error, missing POSIX_FADV_WILLNEED #define&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2528&quot; title=&quot;style error in WiredTiger build&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2528&quot;&gt;&lt;del&gt;WT-2528&lt;/del&gt;&lt;/a&gt;       style error in WiredTiger build&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2529&quot; title=&quot;The readonly test case is crashing with a stack overflow&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2529&quot;&gt;&lt;del&gt;WT-2529&lt;/del&gt;&lt;/a&gt;       The readonly test case is crashing with a stack overflow&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2531&quot; title=&quot;in-memory tables are allocating unnecessary memory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2531&quot;&gt;&lt;del&gt;WT-2531&lt;/del&gt;&lt;/a&gt;       in-memory tables are allocating unnecessary memory&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2532&quot; title=&quot;WT_STREAM_APPEND and WT_STREAM_LINE_BUFFER flag overlap&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2532&quot;&gt;&lt;del&gt;WT-2532&lt;/del&gt;&lt;/a&gt;       WT_STREAM_APPEND and WT_STREAM_LINE_BUFFER flag overlap&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2533&quot; title=&quot;Ensure that in-memory tables don&amp;#39;t report a zero size&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2533&quot;&gt;&lt;del&gt;WT-2533&lt;/del&gt;&lt;/a&gt;       Ensure that in-memory tables don&apos;t report a zero size&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/WT-2534&quot; title=&quot;Invalid transaction snapshots on PowerPC&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-2534&quot;&gt;&lt;del&gt;WT-2534&lt;/del&gt;&lt;/a&gt;       Invalid transaction snapshots on PowerPC&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7ee4e4e493c3785fea489ee3508ca18526709c16&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7ee4e4e493c3785fea489ee3508ca18526709c16&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1229932" author="xgen-internal-githook" created="Fri, 8 Apr 2016 06:49:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;michaelcahill&apos;, u&apos;name&apos;: u&apos;Michael Cahill&apos;, u&apos;email&apos;: u&apos;michael.cahill@mongodb.com&apos;}
&lt;p&gt;Message: Merge pull request #2638 from wiredtiger/server-23588-win-fopen&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23588&quot; title=&quot;mongod with WiredTiger won&amp;#39;t start on Windows when built with --dbg=on --opt=off&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23588&quot;&gt;&lt;del&gt;SERVER-23588&lt;/del&gt;&lt;/a&gt; Stop using _open_osfhandle on Windows.&lt;br/&gt;
Branch: mongodb-3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/wiredtiger/wiredtiger/commit/5206656dfbb725a031be35203fc05f3f3beedc6f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/wiredtiger/wiredtiger/commit/5206656dfbb725a031be35203fc05f3f3beedc6f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1229931" author="xgen-internal-githook" created="Fri, 8 Apr 2016 06:49:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;agorrod&apos;, u&apos;name&apos;: u&apos;Alex Gorrod&apos;, u&apos;email&apos;: u&apos;alexg@wiredtiger.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23588&quot; title=&quot;mongod with WiredTiger won&amp;#39;t start on Windows when built with --dbg=on --opt=off&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23588&quot;&gt;&lt;del&gt;SERVER-23588&lt;/del&gt;&lt;/a&gt; Stop using _open_osfhandle on Windows.&lt;/p&gt;

&lt;p&gt;It introduced some odd failures on debug MongoDB builds. Switch&lt;br/&gt;
to using fopen instead.&lt;br/&gt;
Branch: mongodb-3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/wiredtiger/wiredtiger/commit/e0fc972c47872ad517cd44c9c517eba01242bf8e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/wiredtiger/wiredtiger/commit/e0fc972c47872ad517cd44c9c517eba01242bf8e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1229926" author="xgen-internal-githook" created="Fri, 8 Apr 2016 06:46:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;agorrod&apos;, u&apos;name&apos;: u&apos;Alex Gorrod&apos;, u&apos;email&apos;: u&apos;alexg@wiredtiger.com&apos;}
&lt;p&gt;Message: Import wiredtiger-wiredtiger-2.8.0-140-g7bcf6fc.tar.gz from wiredtiger branch mongodb-3.4&lt;/p&gt;

&lt;p&gt;ref: 94c171d..7bcf6fc&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23588&quot; title=&quot;mongod with WiredTiger won&amp;#39;t start on Windows when built with --dbg=on --opt=off&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23588&quot;&gt;&lt;del&gt;SERVER-23588&lt;/del&gt;&lt;/a&gt;  mongod with WiredTiger won&apos;t start on Windows when built with --dbg=on --opt=off&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23517&quot; title=&quot;WiredTiger changes for MongoDB 3.3.5&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23517&quot;&gt;&lt;del&gt;SERVER-23517&lt;/del&gt;&lt;/a&gt;  WiredTiger changes for MongoDB 3.3.5&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/58fe2bfb350939a4b8c6e8ddd9735a49dc8d2db3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/58fe2bfb350939a4b8c6e8ddd9735a49dc8d2db3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1229922" author="xgen-internal-githook" created="Fri, 8 Apr 2016 06:41:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;michaelcahill&apos;, u&apos;name&apos;: u&apos;Michael Cahill&apos;, u&apos;email&apos;: u&apos;michael.cahill@mongodb.com&apos;}
&lt;p&gt;Message: Merge pull request #2638 from wiredtiger/server-23588-win-fopen&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23588&quot; title=&quot;mongod with WiredTiger won&amp;#39;t start on Windows when built with --dbg=on --opt=off&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23588&quot;&gt;&lt;del&gt;SERVER-23588&lt;/del&gt;&lt;/a&gt; Stop using _open_osfhandle on Windows.&lt;br/&gt;
Branch: mongodb-3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/wiredtiger/wiredtiger/commit/5206656dfbb725a031be35203fc05f3f3beedc6f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/wiredtiger/wiredtiger/commit/5206656dfbb725a031be35203fc05f3f3beedc6f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1229921" author="xgen-internal-githook" created="Fri, 8 Apr 2016 06:41:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;agorrod&apos;, u&apos;name&apos;: u&apos;Alex Gorrod&apos;, u&apos;email&apos;: u&apos;alexg@wiredtiger.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23588&quot; title=&quot;mongod with WiredTiger won&amp;#39;t start on Windows when built with --dbg=on --opt=off&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23588&quot;&gt;&lt;del&gt;SERVER-23588&lt;/del&gt;&lt;/a&gt; Stop using _open_osfhandle on Windows.&lt;/p&gt;

&lt;p&gt;It introduced some odd failures on debug MongoDB builds. Switch&lt;br/&gt;
to using fopen instead.&lt;br/&gt;
Branch: mongodb-3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/wiredtiger/wiredtiger/commit/e0fc972c47872ad517cd44c9c517eba01242bf8e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/wiredtiger/wiredtiger/commit/e0fc972c47872ad517cd44c9c517eba01242bf8e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1229878" author="xgen-internal-githook" created="Fri, 8 Apr 2016 05:02:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;michaelcahill&apos;, u&apos;name&apos;: u&apos;Michael Cahill&apos;, u&apos;email&apos;: u&apos;michael.cahill@mongodb.com&apos;}
&lt;p&gt;Message: Merge pull request #2638 from wiredtiger/server-23588-win-fopen&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23588&quot; title=&quot;mongod with WiredTiger won&amp;#39;t start on Windows when built with --dbg=on --opt=off&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23588&quot;&gt;&lt;del&gt;SERVER-23588&lt;/del&gt;&lt;/a&gt; Stop using _open_osfhandle on Windows.&lt;br/&gt;
Branch: develop&lt;br/&gt;
&lt;a href=&quot;https://github.com/wiredtiger/wiredtiger/commit/5206656dfbb725a031be35203fc05f3f3beedc6f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/wiredtiger/wiredtiger/commit/5206656dfbb725a031be35203fc05f3f3beedc6f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1229877" author="xgen-internal-githook" created="Fri, 8 Apr 2016 05:02:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;agorrod&apos;, u&apos;name&apos;: u&apos;Alex Gorrod&apos;, u&apos;email&apos;: u&apos;alexg@wiredtiger.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23588&quot; title=&quot;mongod with WiredTiger won&amp;#39;t start on Windows when built with --dbg=on --opt=off&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23588&quot;&gt;&lt;del&gt;SERVER-23588&lt;/del&gt;&lt;/a&gt; Stop using _open_osfhandle on Windows.&lt;/p&gt;

&lt;p&gt;It introduced some odd failures on debug MongoDB builds. Switch&lt;br/&gt;
to using fopen instead.&lt;br/&gt;
Branch: develop&lt;br/&gt;
&lt;a href=&quot;https://github.com/wiredtiger/wiredtiger/commit/e0fc972c47872ad517cd44c9c517eba01242bf8e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/wiredtiger/wiredtiger/commit/e0fc972c47872ad517cd44c9c517eba01242bf8e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1229872" author="alexander.gorrod" created="Fri, 8 Apr 2016 04:34:01 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaloian.manassiev&quot; class=&quot;user-hover&quot; rel=&quot;kaloian.manassiev&quot;&gt;kaloian.manassiev&lt;/a&gt; I was able to reproduce when I included the enterprise modules. I didn&apos;t have much luck figuring out where we were going wrong with the API usage exactly, but I ended up switching out our usage of &lt;tt&gt;_os_openfhandle&lt;/tt&gt; and &lt;tt&gt;fdopen&lt;/tt&gt; to using &lt;tt&gt;fopen&lt;/tt&gt; instead. With that change, our code became simpler and the problem was resolved.&lt;/p&gt;

&lt;p&gt;I&apos;ve pushed that change into a pull request (&lt;a href=&quot;https://github.com/wiredtiger/wiredtiger/pull/2638&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/wiredtiger/wiredtiger/pull/2638&lt;/a&gt;).&lt;/p&gt;</comment>
                            <comment id="1229465" author="kaloian.manassiev" created="Thu, 7 Apr 2016 18:14:45 +0000"  >&lt;p&gt;Thanks, Alex. I looked into this a little bit more and I noticed that it only happens when enterprise mongod.exe is built with &lt;tt&gt;--dbg=on --opt=off&lt;/tt&gt;, but does not happen when only building the free version. This is the command line I used, which should apply for &lt;tt&gt;spawnhost&lt;/tt&gt;:&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;scons -j 2 --dbg=on --opt=off --ssl --dynamic-windows --win-version-min=ws08r2 CPPPATH=&quot;c:/openssl/include c:/sasl/include c:/snmp/include&quot; LIBPATH=&quot;c:/openssl/lib c:/sasl/lib c:/snmp/lib&quot; --mute mongod.exe&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;As far as msvcr120.dll is involved, I am not sure why this gets linked when using these parameters. &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mark.benvenuto&quot; class=&quot;user-hover&quot; rel=&quot;mark.benvenuto&quot;&gt;mark.benvenuto&lt;/a&gt;, do you have any idea?&lt;/p&gt;</comment>
                            <comment id="1228809" author="alexander.gorrod" created="Thu, 7 Apr 2016 07:36:53 +0000"  >&lt;p&gt;Another thing I noticed is that the stack trace you posted is using &lt;tt&gt;msvcr120.dll&lt;/tt&gt;, but you mention building against the debug version which would be &lt;tt&gt;msvcr120d.dll&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="1228521" author="alexander.gorrod" created="Thu, 7 Apr 2016 02:25:47 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaloian.manassiev&quot; class=&quot;user-hover&quot; rel=&quot;kaloian.manassiev&quot;&gt;kaloian.manassiev&lt;/a&gt; I&apos;ve attempted to reproduce the failure you mention without success.&lt;/p&gt;

&lt;p&gt;I&apos;ve also reviewed the code, and it appears reasonable to me. It follows the pattern outlined on StackOverflow here: &lt;a href=&quot;http://stackoverflow.com/questions/7369445/is-there-a-windows-equivalent-to-fdopen-for-handles&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/7369445/is-there-a-windows-equivalent-to-fdopen-for-handles&lt;/a&gt;, which appears to comply with the Windows documentation for the functionality.&lt;/p&gt;

&lt;p&gt;Could you provide some additional information about the failure? I&apos;m using an Evergreen Windows VS 2013 spawn host. I created a build as per your instructions in the ticket description. I started mongod from both a clean dbpath and a dbpath with an existing database (with and without content).&lt;/p&gt;

&lt;p&gt;I notice that you use &lt;tt&gt;&amp;#45;&amp;#45;dbg=on --opt=off&lt;/tt&gt; in both the build steps, and the reason why Evergreen doesn&apos;t encounter the problem. Do I need to do something else to link against debug runtime libraries on Windows?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="278446">WT-2540</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>12.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="16812">3.2.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>Thu, 7 Apr 2016 02:25:47 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 43 weeks, 6 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 43 weeks, 6 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>alexander.gorrod@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkb5r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsk6ev:</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;Build mongod.exe with the following command line:&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;scons -j 12 --dbg=on --opt=off --dynamic-windows --win-version-min=ws08r2 mongod.exe&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&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|hrl11r:</customfieldvalue>

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