Boost C++ Libraries: Ticket #1588: [program_options] crashes if value part missing in external configuration file https://svn.boost.org/trac10/ticket/1588 <p> NOTE: boost::program_options has a serious bug, so it'll crash if the value part of a setting is missing. E.g. the below snippet at the end of my settings.ini file crashes if I uncomment the last line. </p> <hr /> <p> log_fname_info = info.log log_fname_problems = problems.log log_fname_status = status.log #log_fname_verbose = </p> <hr /> <p> I want to use a blank setting to mean "no verbose log file" in the above code. I've flagged it "showstopper" for this reason. </p> <p> It crashes on windows XP, in both debug and release versions, and normal and static link builds. Not tested on linux yet. </p> <p> Specifically, it seems to be happening in po.store(), and (on windows at least) it is caught as a std::exception (not a boost::program_options::invalid_option_value). e.what() just outputs "!". The exception is arising in kernel32.dll apparently. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1588 Trac 1.4.3 darren@… Tue, 22 Jan 2008 02:36:05 GMT <link>https://svn.boost.org/trac10/ticket/1588#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1588#comment:1</guid> <description> <p> Sorry, here is that config file snippet with wiki formatting: </p> <p> log_fname_info = info.log<br /> log_fname_problems = problems.log<br /> log_fname_status = status.log<br /> #log_fname_verbose =<br /> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Sat, 17 May 2008 05:20:22 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1588#comment:2 https://svn.boost.org/trac10/ticket/1588#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Dup of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1587" title="#1587: Bugs: [program_options] crashes if value part missing in external ... (closed: fixed)">#1587</a> </p> Ticket