[Boost-bugs] [Boost C++ Libraries] #5257: Concurrent posix_time streaming crashes

Subject: [Boost-bugs] [Boost C++ Libraries] #5257: Concurrent posix_time streaming crashes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-03 15:29:43


#5257: Concurrent posix_time streaming crashes
-----------------------------------------------------------+----------------
 Reporter: Jim Bell <jim@…> | Owner: az_sw_dude
     Type: Bugs | Status: new
Milestone: Boost 1.47.0 | Component: date_time
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: posix_time ptime ostream imbue MinGW-32 crash |
-----------------------------------------------------------+----------------
 The attached program crashes under MinGW-32 gcc-4.4, (but works under
 VC8).

 It does concurrent streaming of posix_time::ptime values to independent
 std::ostringstream objects.

 Mutexing the ostringstream from construction to destruction keeps it
 from crashing, but that shouldn't have to be done for independent
 streams. Mutexing just the ptime insertions makes it run longer, but it
 still crashes. And removing concurrency (i.e., running just one thread)
 allows it to run.

 Could this be related to Tickets
 [https://svn.boost.org/trac/boost/ticket/3961 3961],
 [https://svn.boost.org/trac/boost/ticket/3369 3369] or
 [https://svn.boost.org/trac/boost/ticket/4846 4846].

 Build command-lines:
 ----
 MinGW:[[BR]]
 g++ -DBOOST_THREAD_USE_LIB DTConcur.cpp
 -IC:\Software\Open\lib\boost_1_45_0\ -DWIN32 -D_WINDOWS
 -LC:\Software\Open\lib\boost_1_45_0\mgw44\lib -mthreads -g -frtti
 -fexceptions -mthreads -Wall -lstdc++ -lmingw32 -o DTConcur
 -lboost_thread-mgw44-mt-s-1_45


 ----
 VC8:[[BR]]
 cl DTConcur.cpp /IC:\Software\Open\lib\boost_1_45_0\ /MT /D
 BOOST_THREAD_USE_LIB /GR /EHsc /D "WIN32" /D "_WINDOWS" /FeDTConcur.exe
 /link /LIBPATH:C:\Software\Open\lib\boost_1_45_0\msvc8\lib

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5257>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC