Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.10.0
-
None
-
None
-
log4cxx from svn, gnu gcc 4.1.1, aix 5.2, apr 1.2.8, apr-util 1.2.8
Description
I had several problems on aix with the latest svn checkout of log4cxx.
First, all calls to iconv(, NULL, NULL, ...) would cause segmentation violations.
I removed those calls, but still, the app would SIGABRT at the end in
apr_atomic_casptr when calling CHECK(apr_thread_mutex_unlock(lock));
Here is the stack trace:
(gdb) bt
#0 0xd005b288 in pthread_kill () from /usr/lib/libpthreads.a(shr_xpg5.o)
#1 0xd005ad24 in _p_raise () from /usr/lib/libpthreads.a(shr_xpg5.o)
#2 0xd01f20a4 in raise () from /usr/lib/libc.a(shr.o)
#3 0xd0212758 in abort () from /usr/lib/libc.a(shr.o)
#4 0x200098f0 in apr_atomic_casptr (mem=0x204299a0, with=0x0, cmp=0x204b39c8)
at atomic/unix/apr_atomic.c:376
#5 0x200091d0 in log4cxx::helpers::ObjectPtrBase::exchange (
destination=0x204299a0, newValue=0x0)
at /home/tmstaedt/log4cxx/trunk/src/objectptr.cpp:34
#6 0x2009b378 in log4cxx::helpers::ObjectPtrT<log4cxx::Level>::~ObjectPtrT (
this=0x204299a0)
at /home/tmstaedt/log4cxx/trunk/include/log4cxx/helpers/objectptr.h:74
#7 0x2009cf54 in __static_initialization_and_destruction_0 (
__initialize_p=0, __priority=65535)
at /home/tmstaedt/log4cxx/trunk/src/level.cpp:212
#8 0x2009d020 in global destructors keyed to _ZNK7log4cxx5Level8getClassEv ()
at /home/tmstaedt/log4cxx/trunk/src/level.cpp:216
#9 0x2025c8ec in GLOBAL_FD_liblog4cxx_so ()
from /home/tmstaedt/log4cxx/trunk/build/release/shared/liblog4cxx.a(liblog4cxx.so)
#10 0xd021a83c in mod_fini1 () from /usr/lib/libc.a(shr.o)
#11 0xd021a794 in modfini () from /usr/lib/libc.a(shr.o)
#12 0xd021ad50 in __modfini () from /usr/lib/libc.a(shr.o)
#13 0xd0212b60 in exit () from /usr/lib/libc.a(shr.o)
#14 0x100001f4 in __start ()
(gdb) f 0
#0 0xd005b288 in pthread_kill () from /usr/lib/libpthreads.a(shr_xpg5.o)
(gdb) f 4
#4 0x200098f0 in apr_atomic_casptr (mem=0x204299a0, with=0x0, cmp=0x204b39c8)
at atomic/unix/apr_atomic.c:376
Current language: auto; currently c
(gdb)
Compiling with -pthread did no good.
Since I got all example program to build and run on Windows, Solaris and hp-ux, it would be nice, if I could get this through. A feature like logging could be very useful for us in the future!!
Regards,
thomas
T.Mittelstaedt@cadenas.de