Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13283: boost log crash during thread termination
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-03-22 17:55:45
#13283: boost log crash during thread termination
------------------------------------------------+--------------------------
Reporter: Marco Strohner <marco.strohner@â¦> | Owner: Andrey
| Semashev
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: log
Version: Boost 1.66.0 | Severity: Problem
Resolution: invalid | Keywords:
------------------------------------------------+--------------------------
Changes (by Andrey Semashev):
* status: new => closed
* resolution: => invalid
Comment:
So the problem seems to be that the code attempts to write a log record
after the thread-local data has been destroyed, am I correct? If so, I'm
sorry, but this use case is not going to be supported. Like with global
destructors on program termination, there's generally no way to make sure
that a thread-local object is still alive while the thread terminates and
attempting to log at this point will always be unreliable. My advice is to
avoid this practice and finish logging before the thread terminates.
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13283#comment:3> 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 : 2018-03-22 18:00:32 UTC