> -----Original Message-----
> From: Curt Arnold [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 22, 2006 10:51 AM
> To: Log4CXX User
> Subject: Re: segmentation faults
> 
> 
> 
> Is the application-specific part of the calling stack consistent?  Is
> the method that calls getLogger() (level 6) consistent?  If so, if
> you comment out the method-local logger (which should result in the
> class logger being used), do you still observe the segmentation
> faults?  If so, is there anything peculiar about that method.
> 

Curt, I was able to recreate this consistently using a test application
and I was actually able to observe it through gdb and get a better stack
trace (see below). Does this help?


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1342264400 (LWP 15890)]
0x002046c3 in log4cxx::helpers::ObjectPtrT<log4cxx::Logger>::operator=
(this=0xc, [EMAIL PROTECTED]) at objectptr.h:101
101                     if (this->p != p.p)
(gdb) bt
#0  0x002046c3 in
log4cxx::helpers::ObjectPtrT<log4cxx::Logger>::operator= (this=0xc,
[EMAIL PROTECTED]) at objectptr.h:101
#1  0x002884f9 in log4cxx::Hierarchy::updateParents (this=0x9b1fbd0,
[EMAIL PROTECTED]) at
/home/ewyles/ags1.0code/log4cxx/src/hierarchy.cpp:327
#2  0x00287a09 in log4cxx::Hierarchy::getLogger (this=0x9b1fbd0,
[EMAIL PROTECTED], [EMAIL PROTECTED])
    at /home/ewyles/ags1.0code/log4cxx/src/hierarchy.cpp:190
#3  0x002877ab in log4cxx::Hierarchy::getLogger (this=0x9b1fbd0,
[EMAIL PROTECTED]) at
/home/ewyles/ags1.0code/log4cxx/src/hierarchy.cpp:157
#4  0x001f428a in log4cxx::LogManager::getLogger ([EMAIL PROTECTED]) at
/home/ewyles/ags1.0code/log4cxx/src/logmanager.cpp:99
#5  0x002853b9 in log4cxx::Logger::getLogger (name=0x80c82b8
"log4cxx.LoggerTest.meth_0") at
/home/ewyles/ags1.0code/log4cxx/src/logger.cpp:550
#6  0x0807ce2c in LoggerThread::meth_0 (this=0x9b21cf8) at
loggerthread.cpp:35
#7  0x0807975f in LoggerThread::run (this=0x9b21cf8) at
loggerthread.cpp:8035
#8  0x08079629 in LoggerThread::runStatic (thread=0x9b21cf8) at
loggerthread.cpp:9039
#9  0x00bb1dec in start_thread () from /lib/tls/libpthread.so.0
#10 0x003f1a2a in clone () from /lib/tls/libc.so.6
(gdb)
*************************************************************************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be
legally privileged.

If the reader of this message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank you.
*************************************************************************

Reply via email to