Boost C++ Libraries: Ticket #8328: chrono crashes visual studio 2012 regression tests https://svn.boost.org/trac10/ticket/8328 <p> The following tests crash causing a popup debug window (which causes problems on the machine running regression tests) when running the visual studio regression tests on windows: </p> <ul><li>io_ex1_d </li><li>io_ex1_h </li><li>v1_io_ex1_h </li></ul><p> I will attach the stack traces and windows minidump files. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8328 Trac 1.4.3 Thomas Kent <teeks99@…> Sat, 23 Mar 2013 15:33:04 GMT attachment set https://svn.boost.org/trac10/ticket/8328 https://svn.boost.org/trac10/ticket/8328 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">io_ex1_d-callstack.txt</span> </li> </ul> <p> io_ex1_d callstack </p> Ticket Thomas Kent <teeks99@…> Sat, 23 Mar 2013 15:33:23 GMT attachment set https://svn.boost.org/trac10/ticket/8328 https://svn.boost.org/trac10/ticket/8328 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">io_ex1_h-callstack.txt</span> </li> </ul> <p> io)ex1_h callstack </p> Ticket Thomas Kent <teeks99@…> Sat, 23 Mar 2013 15:33:50 GMT attachment set https://svn.boost.org/trac10/ticket/8328 https://svn.boost.org/trac10/ticket/8328 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">v1_io_ex1_h-callstack.txt</span> </li> </ul> <p> v1_io_ex1_h callstack </p> Ticket Thomas Kent <teeks99@…> Sat, 23 Mar 2013 15:34:54 GMT <link>https://svn.boost.org/trac10/ticket/8328#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8328#comment:1</guid> <description> <p> I also have the minidump files (about 11MB each) </p> <ul><li><a class="ext-link" href="http://boost.teeks99.com/misc/chrono_crash/io_ex1_d.dmp"><span class="icon">​</span>http://boost.teeks99.com/misc/chrono_crash/io_ex1_d.dmp</a> </li><li><a class="ext-link" href="http://boost.teeks99.com/misc/chrono_crash/io_ex1_h.dmp"><span class="icon">​</span>http://boost.teeks99.com/misc/chrono_crash/io_ex1_h.dmp</a> </li><li><a class="ext-link" href="http://boost.teeks99.com/misc/chrono_crash/v1_io_ex1_h.dmp"><span class="icon">​</span>http://boost.teeks99.com/misc/chrono_crash/v1_io_ex1_h.dmp</a> </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 23 Mar 2013 16:26:28 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8328#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8328#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8328#comment:1" title="Comment 1">Thomas Kent &lt;teeks99@…&gt;</a>: </p> <blockquote class="citation"> <p> I also have the minidump files (about 11MB each) </p> <ul><li><a class="ext-link" href="http://boost.teeks99.com/misc/chrono_crash/io_ex1_d.dmp"><span class="icon">​</span>http://boost.teeks99.com/misc/chrono_crash/io_ex1_d.dmp</a> </li><li><a class="ext-link" href="http://boost.teeks99.com/misc/chrono_crash/io_ex1_h.dmp"><span class="icon">​</span>http://boost.teeks99.com/misc/chrono_crash/io_ex1_h.dmp</a> </li><li><a class="ext-link" href="http://boost.teeks99.com/misc/chrono_crash/v1_io_ex1_h.dmp"><span class="icon">​</span>http://boost.teeks99.com/misc/chrono_crash/v1_io_ex1_h.dmp</a> </li></ul></blockquote> <p> Sorry I don't use visual studio and I don't know how to make use of these files. Thanks anyway. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 23 Mar 2013 16:44:42 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8328#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8328#comment:3</guid> <description> <p> From the regression test I see that there is error for MSVC 11, but it works for MSVC 10. Unfortunately I have not installed MSVC 11. </p> <p> Anyway as the trace show there is an error on the test Jamfile as even if the test is named v1_ it is using version 2. See the patch below. </p> <pre class="wiki">Index: Jamfile.v2 =================================================================== --- Jamfile.v2 (revision 83520) +++ Jamfile.v2 (working copy) @@ -110,7 +110,7 @@ : &lt;define&gt;BOOST_CHRONO_HEADER_ONLY &lt;define&gt;BOOST_ERROR_CODE_HEADER_ONLY #&lt;define&gt;BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING - &lt;define&gt;BOOST_CHRONO_VERSION=2 + #&lt;define&gt;BOOST_CHRONO_VERSION=1 : v1_$(sources[1]:B)_h ] ; } </pre><p> Could you try this test forcing the version 2 </p> <pre class="wiki">Index: boost/chrono/config.hpp =================================================================== --- boost/chrono/config.hpp (revision 83520) +++ boost/chrono/config.hpp (working copy) @@ -14,7 +14,7 @@ #include &lt;boost/config.hpp&gt; #if !defined BOOST_CHRONO_VERSION -#define BOOST_CHRONO_VERSION 1 +#define BOOST_CHRONO_VERSION 2 #else #if BOOST_CHRONO_VERSION!=1 &amp;&amp; BOOST_CHRONO_VERSION!=2 #error "BOOST_CHRONO_VERSION must be 1 or 2" </pre><p> to see if there is something that makes io V2 incompatible with V1. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 23 Mar 2013 16:45:57 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/8328#comment:4 https://svn.boost.org/trac10/ticket/8328#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Thomas Kent <teeks99@…> Sun, 24 Mar 2013 19:02:29 GMT <link>https://svn.boost.org/trac10/ticket/8328#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8328#comment:5</guid> <description> <p> Those changes didn't seem to affect anything....assuming my bjam skills are correct. After making the changes (in boost-trunk\libs\chrono\test) I ran "b2 toolset=msvc-11.0 -a". Is that what I should have done? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 24 Mar 2013 20:15:28 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8328#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8328#comment:6</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8328#comment:5" title="Comment 5">Thomas Kent &lt;teeks99@…&gt;</a>: </p> <blockquote class="citation"> <p> Those changes didn't seem to affect anything....assuming my bjam skills are correct. After making the changes (in boost-trunk\libs\chrono\test) I ran "b2 toolset=msvc-11.0 -a". Is that what I should have done? </p> </blockquote> <p> Have you applied the change to boost/chrono/config.hpp? </p> </description> <category>Ticket</category> </item> <item> <author>Thomas Kent <teeks99@…></author> <pubDate>Sun, 24 Mar 2013 22:55:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8328#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8328#comment:7</guid> <description> <p> Yes, before running the above bjam command I applied the change to config.hpp and to Jamfile.v2. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 10 Apr 2013 17:05:46 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8328#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8328#comment:8</guid> <description> <p> This seems a regression with the I/O library of msvc-11.0. Do you know if there are some bugs associated to msvc-11.0 that could be related? </p> <p> For the time being I'm unable to debug it. I will appreciate if you could you try to do a deeper analysis and post it here. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 09 Jun 2013 19:52:03 GMT</pubDate> <title>severity changed https://svn.boost.org/trac10/ticket/8328#comment:9 https://svn.boost.org/trac10/ticket/8328#comment:9 <ul> <li><strong>severity</strong> <span class="trac-field-old">Regression</span> → <span class="trac-field-new">Problem</span> </li> </ul> <p> This is not a regression as Boost.Chrono can not anticipate the behavior of new compilers. </p> Ticket viboes Fri, 14 Jun 2013 05:33:55 GMT summary changed https://svn.boost.org/trac10/ticket/8328#comment:10 https://svn.boost.org/trac10/ticket/8328#comment:10 <ul> <li><strong>summary</strong> <span class="trac-field-old">chrono crashes visual studio regression tests</span> → <span class="trac-field-new">chrono crashes visual studio 2012 regression tests</span> </li> </ul> Ticket viboes Tue, 10 Sep 2013 20:09:30 GMT <link>https://svn.boost.org/trac10/ticket/8328#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8328#comment:11</guid> <description> <p> Have you reported the issue to Microsoft? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 20 Oct 2013 18:36:15 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8328#comment:12 https://svn.boost.org/trac10/ticket/8328#comment:12 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> The test are passing with msvn 9, 10 and 12. I will not try to fix it. </p> Ticket Thomas Kent <teeks99@…> Mon, 21 Oct 2013 14:02:40 GMT <link>https://svn.boost.org/trac10/ticket/8328#comment:13 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8328#comment:13</guid> <description> <p> If we're not going to fix this for msvc-11.0, can we just BOOST_FAIL() the tests for that compiler version, so that it doesn't keep crashing the whole regression test? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 21 Oct 2013 17:06:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8328#comment:14 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8328#comment:14</guid> <description> <p> Ok. I will do. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 21 Oct 2013 22:00:01 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8328#comment:15 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8328#comment:15</guid> <description> <p> Does this patch avoids the crach </p> <pre class="wiki">svn diff libs/chrono/example/io_ex1.cpp Index: libs/chrono/example/io_ex1.cpp =================================================================== --- libs/chrono/example/io_ex1.cpp (revision 86380) +++ libs/chrono/example/io_ex1.cpp (working copy) @@ -53,10 +53,13 @@ &lt;&lt; ClockTick(3) + nanoseconds(10) &lt;&lt; '\n'; cout &lt;&lt; "\nsystem_clock::now() = " &lt;&lt; system_clock::now() &lt;&lt; '\n'; +#if defined _MSC_VER &amp;&amp; _MSC_VER == 1700 +#else #if BOOST_CHRONO_VERSION==2 cout &lt;&lt; "\nsystem_clock::now() = " &lt;&lt; time_fmt(chrono::timezone::local) &lt;&lt; system_clock::now() &lt;&lt; '\n'; cout &lt;&lt; "\nsystem_clock::now() = " &lt;&lt; time_fmt(chrono::timezone::local,"%Y/%m/%d") &lt;&lt; system_clock::now() &lt;&lt; '\n'; #endif +#endif #ifdef BOOST_CHRONO_HAS_CLOCK_STEADY cout &lt;&lt; "steady_clock::now() = " &lt;&lt; steady_clock::now() &lt;&lt; '\n'; </pre><p> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/86384" title="Chrono: try to avoid the crash with msvc 11 on chrono_io.">[86384]</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>