[ace-bugs] [Inconsistency detected by ld.so: dl-close.c: 758: _dl_close: Assertion `map->l_init_called' failed!] by ACE.6.1.0

Yaowei (D) yw.yao at huawei.com
Fri Sep 28 03:41:47 CDT 2018


Hi all,
I faced one strange issue on Suse11sp3 with gcc 4.8.5 now.

I am using gmock for unit test,
Using ACE_DLL to load/unload the generated dynamic linked shared so files.
And if I add any test case in unit test,
there is no exception but additional
Inconsistency detected by ld.so: dl-close.c: 758: _dl_close: Assertion `map->l_init_called' failed!
displayed on terminal.

But if there is no test case but only setup() teardown() method on unit test,
the
Inconsistency detected by ld.so: dl-close.c: 758: _dl_close: Assertion `map->l_init_called' failed!
message is missing.

Any reply is appreciated:)
the stack trace with gdb debug is like this:
Breakpoint 1, 0x00007ffff7df0cc0 in _dl_close () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0  0x00007ffff7df0cc0 in _dl_close () from /lib64/ld-linux-x86-64.so.2
#1  0x00007ffff7deaef6 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#2  0x00007ffff5fe933c in _dlerror_run () from /lib64/libdl.so.2
#3  0x00007ffff5fe904f in dlclose () from /lib64/libdl.so.2
#4  0x00007ffff78e90ec in ACE_OS::dlclose (handle=0x627f10)
    at /export/home/xxx/ACE_wrappers/ace/OS_NS_dlfcn.inl:43
#5  0x00007ffff78e7a0e in ACE_DLL_Handle::close (this=0x766260, unload=1) at DLL_Manager.cpp:286
#6  0x00007ffff78e9002 in ACE_DLL_Manager::unload_dll (this=0x764200, dll_handle=0x766260, force_unload=1)
    at DLL_Manager.cpp:753
#7  0x00007ffff78e8e28 in ACE_DLL_Manager::close (this=0x764200) at DLL_Manager.cpp:682
#8  0x00007ffff78e8801 in ACE_DLL_Manager::~ACE_DLL_Manager (this=0x764200, __in_chrg=<optimized out>) at DLL_Manager.cpp:542
#9  0x00007ffff78e8698 in ACE_DLL_Manager::close_singleton () at DLL_Manager.cpp:520
#10 0x00007ffff7914f29 in ACE_Object_Manager::fini (this=0x620360) at Object_Manager.cpp:749
#11 0x00007ffff791433b in ACE_Object_Manager::~ACE_Object_Manager (this=0x620360, __in_chrg=<optimized out>)
    at Object_Manager.cpp:414
#12 0x00007ffff79143bc in ACE_Object_Manager::~ACE_Object_Manager (this=0x620360, __in_chrg=<optimized out>)
    at Object_Manager.cpp:415
#13 0x00007ffff7915291 in ACE_Object_Manager_Manager::~ACE_Object_Manager_Manager (
    this=0x7ffff7bd6100 <ACE_Object_Manager_Manager_instance>, __in_chrg=<optimized out>) at Object_Manager.cpp:879
#14 0x00007ffff64389f5 in __cxa_finalize () from /lib64/libc.so.6
#15 0x00007ffff788fa76 in __do_global_dtors_aux () from /export/home/xxx/lib/libACE.so.6.1.0
#16 0x0000000000000000 in ?? ()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.isis.vanderbilt.edu/pipermail/ace-bugs/attachments/20180928/072a46d5/attachment-0001.html>


More information about the ace-bugs mailing list