Boost C++ Libraries: Ticket #11420: program_options crash on run() on specific machine only in release mode https://svn.boost.org/trac10/ticket/11420 <p> It's a very strange error that occured. I have deployed the program on a machine where no Visual Studio is available. </p> <p> Upon start it crashes instantly so I have created a dump with the task manager and analysed it in Visual Studio 2013. </p> <pre class="wiki">&gt; test.exe!boost::program_options::basic_command_line_parser&lt;char&gt;::run() Line 107 C++ </pre><p> which resolves to </p> <pre class="wiki">template&lt;class charT&gt; basic_parsed_options&lt;charT&gt; basic_command_line_parser&lt;charT&gt;::run() { // save the canonical prefixes which were used by this cmdline parser // eventually inside the parsed results // This will be handy to format recognisable options // for diagnostic messages if everything blows up much later on parsed_options result(m_desc, detail::cmdline::get_canonical_option_prefix()); result.options = detail::cmdline::run(); // Presense of parsed_options -&gt; wparsed_options conversion // does the trick. return basic_parsed_options&lt;charT&gt;(result); } </pre><p> in my program the crash occurs in the following line </p> <pre class="wiki">po::store(po::command_line_parser(argc, argv).options(description).allow_unregistered().run(), vm); </pre><p> The very strange thing is that argc is 0 and argv is 0x0000000000000000 </p> <p> It only happens in release mode and i cannot catch any exception </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11420 Trac 1.4.3 Vladimir Prus Thu, 25 Jun 2015 13:00:15 GMT <link>https://svn.boost.org/trac10/ticket/11420#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11420#comment:1</guid> <description> <p> Could it be that you're linking to debug version of the library? Windows is picky about much mismatches. Or your build is not 100% clean. Other than that, it's hard to guess that could be wrong. </p> </description> <category>Ticket</category> </item> <item> <author>Stephan Bertl <stephan@…></author> <pubDate>Thu, 25 Jun 2015 13:05:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11420#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11420#comment:2</guid> <description> <p> i have even removed the -gd libs from the stage folder, so there should be no mismatch... </p> </description> <category>Ticket</category> </item> </channel> </rss>