Boost C++ Libraries: Ticket #13555: Crash when statically linked to the dynamic library when use dlopen. https://svn.boost.org/trac10/ticket/13555 <p> Hi! </p> <p> I have shared library under Linux that is statically linked to boost_serialization. I load my library twice durind my application wors by the use dlopen/dlclose. At the second dlopen I have: </p> <p> <a class="missing ticket">#0</a> boost::serialization::typeid_system::extended_type_info_typeid_0::is_less_than (rhs=..., this=0x1003730) at libs/serialization/src/extended_type_info_typeid.cpp:59 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1" title="#1: Bugs: boost.build causes ftjam to segfault (closed: Wont Fix)">#1</a> boost::serialization::typeid_system::type_compare::operator() (this=0x863360, rhs=0xf838f0, lhs=0x1003730) at libs/serialization/src/extended_type_info_typeid.cpp:41 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2" title="#2: Bugs: list::size should be const (closed: fixed)">#2</a> std::_Rb_tree&lt;boost::serialization::typeid_system::extended_type_info_typeid_0 const*, boost::serialization::typeid_system::extended_type_info_typeid_0 const*, std::_Identity&lt;boost::serialization::typeid_system::extended_type_info_typeid_0 const*&gt;, boost::serialization::typeid_system::type_compare, std::allocator&lt;boost::serialization::typeid_system::extended_type_info_typeid_0 const*&gt; &gt;::_M_get_insert_equal_pos (<span class="underline">k=&lt;optimized out&gt;, this=0x863360) </span></p> <blockquote> <p> at /usr/include/c++/7/bits/stl_tree.h:2069 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3" title="#3: Bugs: automatic conversion and overload proble (closed: fixed)">#3</a> std::_Rb_tree&lt;boost::serialization::typeid_system::extended_type_info_typeid_0 const*, boost::serialization::typeid_system::extended_type_info_typeid_0 const*, std::_Identity&lt;boost::serialization::typeid_system::extended_type_info_typeid_0 const*&gt;, boost::serialization::typeid_system::type_compare, std::allocator&lt;boost::serialization::typeid_system::extended_type_info_typeid_0 const*&gt; &gt;::_M_insert_equal&lt;boost::serialization::typeid_system::extended_type_info_typeid_0 const*&gt; ( </p> <blockquote> <p> <span class="underline">v=&lt;optimized out&gt;, this=0x863360) at /usr/include/c++/7/bits/stl_tree.h:2117 </span></p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4" title="#4: Bugs: any_ptr in any library documentation? (closed: Fixed)">#4</a> std::multiset&lt;boost::serialization::typeid_system::extended_type_info_typeid_0 const*, boost::serialization::typeid_system::type_compare, std::allocator&lt;boost::serialization::typeid_system::extended_type_info_typeid_0 const*&gt; &gt;::insert ( </p> <blockquote> <p> <span class="underline">x=&lt;optimized out&gt;, this=&lt;optimized out&gt;) at /usr/include/c++/7/bits/stl_multiset.h:498 </span></p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5" title="#5: Bugs: shared_ptr and self-owning objects (closed: Fixed)">#5</a> boost::serialization::typeid_system::extended_type_info_typeid_0::type_register (this=0x1003730, ti=...) at libs/serialization/src/extended_type_info_typeid.cpp:91 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6" title="#6: Bugs: tie in utility.hpp and tuple.hpp clash. (closed: Duplicate)">#6</a> 0x00007fffd6023819 in boost::serialization::extended_type_info_typeid&lt;QFont&gt;::extended_type_info_typeid (this=0x1003730) at /opt/boost/include/boost/serialization/extended_type_info_typeid.hpp:91 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7" title="#7: Bugs: g++ 2.96 requires NO_STRINGSTREAM (closed: Fixed)">#7</a> 0x00007fffd60231a0 in boost::serialization::singleton&lt;boost::serialization::extended_type_info_typeid&lt;QFont&gt; &gt;::get_instance()::singleton_wrapper::singleton_wrapper() (this=0x1003730) </p> <blockquote> <p> at /opt/boost/include/boost/serialization/singleton.hpp:121 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8" title="#8: Bugs: prop in undirected graph + out_edges (closed: Works For Me)">#8</a> 0x00007fffd6023213 in boost::serialization::singleton&lt;boost::serialization::extended_type_info_typeid&lt;QFont&gt; &gt;::get_instance () at /opt/boost/include/boost/serialization/singleton.hpp:142 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9" title="#9: Bugs: config_info ambiguity error (closed: Invalid)">#9</a> 0x00007fffd6022e83 in boost::serialization::singleton&lt;boost::serialization::extended_type_info_typeid&lt;QFont&gt; &gt;::get_const_instance () at /opt/boost/include/boost/serialization/singleton.hpp:156 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/10" title="#10: Bugs: allyourbase.jam file is bad. (closed: Out of Date)">#10</a> 0x00007fffd6022aca in boost::archive::detail::oserializer&lt;boost::archive::binary_oarchive, QFont&gt;::oserializer (this=0x1003710) at /opt/boost/include/boost/archive/detail/oserializer.hpp:116 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11" title="#11: Bugs: why not using mt19937? (closed: Fixed)">#11</a> 0x00007fffd6022744 in boost::serialization::singleton&lt;boost::archive::detail::oserializer&lt;boost::archive::binary_oarchive, QFont&gt; &gt;::get_instance()::singleton_wrapper::singleton_wrapper() (this=0x1003710) </p> <blockquote> <p> at /opt/boost/include/boost/serialization/singleton.hpp:121 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/12" title="#12: Bugs: Can't specify VertexPredicate (closed: Fixed)">#12</a> 0x00007fffd60227b7 in boost::serialization::singleton&lt;boost::archive::detail::oserializer&lt;boost::archive::binary_oarchive, QFont&gt; &gt;::get_instance () at /opt/boost/include/boost/serialization/singleton.hpp:142 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/13" title="#13: Bugs: iterator_adapter and abstract classes (closed: Out of Date)">#13</a> 0x00007fffd60166e9 in <span class="underline">static_initialization_and_destruction_0 (</span>initialize_p=1, <span class="underline">priority=65535) at /opt/boost/include/boost/serialization/singleton.hpp:173 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/14" title="#14: Feature Requests: Support for static data members (closed: Out of Date)">#14</a> 0x00007fffd60167ba in _GLOBAL</span>sub_I_archivebuilder.cpp(void) () at /home/misha/Documents/devel/svn/soac/trunk/diagnostic/dcsplugins/development/gui/qt/archivebuilder.cpp:233 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/15" title="#15: Feature Requests: thread class needs join() with timeout (closed: None)">#15</a> 0x00007ffff7de640a in call_init.part () from /lib64/ld-linux-x86-64.so.2 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/16" title="#16: Feature Requests: way to defer thread creation needed (closed: None)">#16</a> 0x00007ffff7de6516 in _dl_init () from /lib64/ld-linux-x86-64.so.2 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/17" title="#17: Feature Requests: Socket wrapper class (closed: fixed)">#17</a> 0x00007ffff7dea67f in dl_open_worker () from /lib64/ld-linux-x86-64.so.2 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/18" title="#18: Bugs: lexical_cast fails in some cases (closed: Fixed)">#18</a> 0x00007ffff4d59e5f in _dl_catch_exception () from /lib64/libc.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/19" title="#19: Bugs: Problems building on NT &amp; Linux (closed: Out of Date)">#19</a> 0x00007ffff7de9f1a in _dl_open () from /lib64/ld-linux-x86-64.so.2 <a class="deleted ticket" href="https://svn.boost.org/trac10/ticket/20" title="#20: Support Requests: passwords in c++ programming (deleted)">#20</a> 0x00007ffff2c8af96 in dlopen_doit () from /lib64/libdl.so.2 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/21" title="#21: Bugs: Can't compile transitive closure example (closed: Out of Date)">#21</a> 0x00007ffff4d59e5f in _dl_catch_exception () from /lib64/libc.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/22" title="#22: Support Requests: compilation failure on Linux RH 7.1 (closed: Wont Fix)">#22</a> 0x00007ffff4d59eef in _dl_catch_error () from /lib64/libc.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/23" title="#23: Bugs: Trivial doc error (closed: Fixed)">#23</a> 0x00007ffff2c8b685 in _dlerror_run () from /lib64/libdl.so.2 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/24" title="#24: Bugs: smart_ptr.hpp warnings on vacpp (closed: Wont Fix)">#24</a> 0x00007ffff2c8b051 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2 </p> <p> Qt libraries are linked dynamically to all parts of my application. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13555 Trac 1.4.3