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

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


#5257: Concurrent posix_time streaming crashes
-----------------------------------------+----------------------------------
  Reporter: Jim Bell <jim@…> | Owner: az_sw_dude
      Type: Bugs | Status: closed
 Milestone: Boost 1.47.0 | Component: date_time
   Version: Boost 1.45.0 | Severity: Problem
Resolution: wontfix | Keywords: posix_time ptime ostream imbue MinGW-32 crash
-----------------------------------------+----------------------------------
Changes (by Jim Bell <jim@…>):

  * status: new => closed
  * resolution: => wontfix

Comment:

 This is most likely caused by
 [https://sourceforge.net/tracker/?func=detail&aid=2843440&group_id=2435&atid=102435
 MinGW Issue 2843440], stemming from a thread safety problem with
 msvcrt.dll and iostream imbue.

 This is still an issue on Windows XP SP3 (as of March, 2011).

 Work-around (empirically): mutex all streaming over the entire life of the
 stream object, including constructor and destructor.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5257#comment:1>
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