You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by John Barker <jo...@secerno.com> on 2008/06/23 16:47:03 UTC
SIGABRT on exit (Redhat, log4cxx 0.10.0)
Possibly related to "Segmentation fault log4cxx 0.10.0 on app exit ( RH
Linux)"
I'm seeing a SIGABRT on application exit when closing my application.
Here is a backtrace showing the issue, shortly after I have closed the
program:
Breakpoint 2, 0x00125364 in apr_terminate () from /usr/lib/libapr-1.so.0
(gdb) bt
#0 0x00125364 in apr_terminate () from /usr/lib/libapr-1.so.0
#1 0x00272927 in ~APRInitializer (this=3D0x388f10) at
aprinitializer.cpp:45
#2 0x00272960 in __tcf_0 () at aprinitializer.cpp:50
#3 0x00544859 in exit () from /lib/libc.so.6
#4 0x0052edf4 in __libc_start_main () from /lib/libc.so.6
#5 0x08086031 in _start ()
(gdb) c
Continuing.
Program received signal SIGABRT, Aborted.
0x00a58410 in __kernel_vsyscall ()
(gdb) bt
#0 0x00a58410 in __kernel_vsyscall ()
#1 0x00541ba0 in raise () from /lib/libc.so.6
#2 0x005434b1 in abort () from /lib/libc.so.6
#3 0x0011e20f in apr_atomic_dec32 () from /usr/lib/libapr-1.so.0 <--
trying to call apr routine after apr_terminate
#4 0x002db4d5 in log4cxx::helpers::ObjectImpl::releaseRef
(this=3D0x970e6f8) at objectimpl.cpp:44
#5 0x002c5432 in log4cxx::Logger::releaseRef (this=3D0x970e6c0) at
logger.cpp:62
#6 0x080a0231 in ~ObjectPtrT (this=3D0x971fe28) at
/usr/local/include/log4cxx/helpers/objectptr.h:100
#7 0x080b286d in ~MyConfig (this=3D0x971fd60) at ../src/xxxxxxxx.cpp:99
#8 0x08095132 in boost::checked_delete<MyConfig> (x=3D0x971fd60) at
/usr/include/boost/checked_delete.hpp:34
#9 0x08095147 in ~scoped_ptr (this=3D0x970ea08) at
/usr/include/boost/scoped_ptr.hpp:77
#10 0x08091794 in ~Main (this=3D0x970e754) at ../src/Main.cpp:155
#11 0x080af84f in ~ACE_Singleton (this=3D0x970e750) at
/usr/include/ace/Singleton.h:80
#12 0x08099478 in ACE_Singleton<Arbiter, ACE_Mutex>::cleanup
(this=3D0x970e750) at /usr/include/ace/Singleton.cpp:111
#13 0x00d9fbc8 in ace_cleanup_destroyer () from /usr/lib/libACE.so.5.6.3
#14 0x00d9fdfd in ACE_OS_Exit_Info::call_hooks () from
/usr/lib/libACE.so.5.6.3
#15 0x00dd1ce9 in ACE_Object_Manager::fini () from
/usr/lib/libACE.so.5.6.3
#16 0x00dd1f44 in ACE_Object_Manager::~ACE_Object_Manager$delete () from
/usr/lib/libACE.so.5.6.3
#17 0x00dd2197 in
ACE_Object_Manager_Manager::~ACE_Object_Manager_Manager () from
/usr/lib/libACE.so.5.6.3
#18 0x00dd21d0 in
ACE_Object_Manager_Manager::~ACE_Object_Manager_Manager () from
/usr/lib/libACE.so.5.6.3
#19 0x00544b09 in __cxa_finalize () from /lib/libc.so.6 #20 0x00d5f7e4
in ?? () from /usr/lib/libACE.so.5.6.3
#21 0x00e5817c in ACE_Codeset_Registry::registry_db_ () from
/usr/lib/libACE.so.5.6.3
#22 0x0000002f in ?? ()
#23 0x009a17b4 in ?? ()
#24 0x00d5f7ba in ?? () from /usr/lib/libACE.so.5.6.3
#25 0x00e6061c in ?? () from /usr/lib/libACE.so.5.6.3
#26 0x009a1240 in _rtld_local () from /lib/ld-linux.so.2
#27 0xbff4c898 in ?? ()
#28 0x00e1659c in _fini () from /usr/lib/libACE.so.5.6.3
#29 0x00e1659c in _fini () from /usr/lib/libACE.so.5.6.3 #30 0x009956de
in _dl_fini () from /lib/ld-linux.so.2
#31 0x00544859 in exit () from /lib/libc.so.6
#32 0x0052edf4 in __libc_start_main () from /lib/libc.so.6
#33 0x08086031 in _start ()
Note that my compiler does not exhibit the bugs described in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D24472