Re: [Boost-bugs] [Boost C++ Libraries] #8414: flyweights causes weird library initialization error

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8414: flyweights causes weird library initialization error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-08 16:48:16


#8414: flyweights causes weird library initialization error
-----------------------------------------------------------+----------------
  Reporter: charles quarra <charlls_quarra@…> | Owner: joaquin
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: flyweight
   Version: Boost 1.53.0 | Severity: Showstopper
Resolution: invalid | Keywords:
-----------------------------------------------------------+----------------

Comment (by charles quarra <charlls_quarra@…>):

 I installed the gold plugin and build the plugin with this:

 g++ -I/path/to/boost/includes -fPIC -shared -rdynamic -Wl,--no-gnu-unique
 test_plugin.cpp -o libpluginTest.so -L/path/to/boost/libs -lrt

 $ ld --version
 GNU gold (GNU Binutils for Ubuntu 2.22.90.20120924) 1.11

 running the program produces the expected result: the library is closed
 before dlclose returns:

 load:
 Library constructor: address of static cbContainer is:
 load: library loaded 0x2237030
 Library destructor:
 load: library closed

 so this is indeed a bug or misfeature of ld. I have no idea why this is
 the default behavior.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8414#comment:5>
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:12 UTC