Re: [Boost-bugs] [Boost C++ Libraries] #12441: Crash in Boost.Test 1.61

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12441: Crash in Boost.Test 1.61
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-06 22:31:49


#12441: Crash in Boost.Test 1.61
-------------------------------------------+-------------------------
  Reporter: Andy Salnikov <a_salnikov@…> | Owner:
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: None
   Version: Boost 1.61.0 | Severity: Showstopper
Resolution: | Keywords:
-------------------------------------------+-------------------------

Comment (by Andy Salnikov <a_salnikov@…>):

 I did some debugging and I think this is caused by double-delete of some
 global objects, in particular global strings defined in
 `unit_test_parameters.ipp` file such as
 `boost::unit_test::runtime_config::HELP`. That file is included in other
 places and it is compiled into `libboost_unit_test_framework.so` and also
 into application object file. This causes constructor of thaose global
 object being called twice, once from `libboost_unit_test_framework.so`
 globals initialization, and once from application globals initialization.
 This also causes destructor of these objects called twice during global
 destruction.

 I'm not sure whether this is issue specific to g++ version or glibc
 version, I'm not sure why this issue was not discovered by anybody yet.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12441#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:20 UTC