LOG4CXX crashes

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

LOG4CXX crashes

Rai, Ashish

 

Hi,

 

We are getting crashes from log4cxx implementation in our application. Our application is running on Linux 2.6.32-358.el6.x86_64. It C++ based application using orbix to interact with Java based GUI.

 

Please find below stack trace  for core dump :

 

#0  0x0077a430 in __kernel_vsyscall ()

#1  0x013b9b11 in raise () from /lib/libc.so.6

#2  0x013bb3ea in abort () from /lib/libc.so.6

#3  0x013f99d5 in __libc_message () from /lib/libc.so.6

#4  0x013ffe31 in malloc_printerr () from /lib/libc.so.6

#5  0x014033ff in _int_malloc () from /lib/libc.so.6

#6  0x0140400e in malloc () from /lib/libc.so.6

#7  0x03c9a09a in operator new(unsigned int) () from /usr/lib/libstdc++.so.6

#8  0x03c76ed6 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> const&) () from /usr/lib/libstdc++.so.6

#9  0x03c78029 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_clone(std::allocator<char> const&, unsigned int) ()

   from /usr/lib/libstdc++.so.6

#10 0x03c78578 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned int) () from /usr/lib/libstdc++.so.6

#11 0x03c78a5b in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib/libstdc++.so.6

#12 0x07653c0f in log4cxx::pattern::LiteralPatternConverter::format(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, log4cxx::helpers::Pool&) const () from /log4cxx/lib/liblog4cxx.so.10

#13 0x076778e5 in log4cxx::PatternLayout::format(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) const () from /log4cxx/lib/liblog4cxx.so.10

#14 0x076b6636 in log4cxx::WriterAppender::subAppend(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) ()

   from /log4cxx/lib/liblog4cxx.so.10

#15 0x0768aca4 in log4cxx::rolling::RollingFileAppenderSkeleton::subAppend(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) () from /log4cxx/lib/liblog4cxx.so.10

#16 0x076b5da7 in log4cxx::WriterAppender::append(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) ()

   from /log4cxx/lib/liblog4cxx.so.10

#17 0x07604aa0 in log4cxx::AppenderSkeleton::doAppend(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) ()

   from /log4cxx/lib/liblog4cxx.so.10

#18 0x07601065 in log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) () from /log4cxx/lib/liblog4cxx.so.10

#19 0x0765973d in log4cxx::Logger::callAppenders(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) const ()

   from /log4cxx/lib/liblog4cxx.so.10

#20 0x076599dd in log4cxx::Logger::forcedLog(log4cxx::helpers::ObjectPtrT<log4cxx::Level> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, log4cxx::spi::LocationInfo const&) const () from /log4cxx/lib/liblog4cxx.so.10

#21 0x080b07cd in AppServer::getSomething (this=0x8a54cb8, env=...) at AppServer.cpp:406

#22 0x080bae04 in AppModule_AppServerIntfcAppServer::getSomething (this=0x8a561d8, IT_env=...) at AppServer.h:243

#23 0x0829bedb in AppModule::AppServerIntfc_dispatch::dispatch (this=0x8a41298, IT_r=..., IT_isTarget=1 '\001', IT_pp=0x8a561d8)

    at AppModuleS.cc:229

#24 0x019fbdfe in ContextClassS::continueDispatch(RequestS&, CORBA::Filter*, CORBA::PPTR*) () from /orbix/lib/liborbixmt.3.3.gcc411.so.1

#25 0x019fc109 in ContextClassS::continueThreadDispatch(RequestS&) () from /orbix/lib/liborbixmt.3.3.gcc411.so.1

#26 0x01a06681 in IT_BOAImpl::continueThreadDispatch(CORBA::Request&) () from /orbix/lib/liborbixmt.3.3.gcc411.so.1

#27 0x01a06139 in CORBA::BOA::continueThreadDispatch(CORBA::Request&) () from /orbix/lib/liborbixmt.3.3.gcc411.so.1

#28 0x0064b911 in ThreadFilter::threadPool() () from /apps/app/lib/libapp.so

#29 0x0064b8bb in ThreadFilter::runThreadPool(void*) () from apps/app/lib/libapp.so

#30 0x00967a49 in start_thread () from /lib/libpthread.so.0

#31 0x01471aee in clone () from /lib/libc.so.6

 

This is code snippet for function :

 

CORBA::Long AppServer::getSomething (CORBA::Environment& env) throw (CORBA::SystemException)

{

  LOG4CXX_DEBUG (logger,"AppServer::getSomething called!" );

  something++;

  return something;

}

 

Let me know if you need more detail.

 

Thanks & Regards,

Ashish Rai

M: 404-988-8983

 

Reply | Threaded
Open this post in threaded view
|

Re: LOG4CXX crashes

Robert Middleton
Ashish,

A few questions for you:

  1. What version of log4cxx are you running?
  2. Are you running log4cxx in a multi-threaded application?  If yes, the current versions of log4cxx do have problems with multithreaded applications, and that could cause a problem.
  3. Does this happen all the time?  If it's not happening all of the time it sounds like it could be memory corruption of some kind.
-Robert Middleton

On Mon, Apr 3, 2017 at 1:14 PM, Rai, Ashish <[hidden email]> wrote:

 

Hi,

 

We are getting crashes from log4cxx implementation in our application. Our application is running on Linux 2.6.32-358.el6.x86_64. It C++ based application using orbix to interact with Java based GUI.

 

Please find below stack trace  for core dump :

 

#0  0x0077a430 in __kernel_vsyscall ()

#1  0x013b9b11 in raise () from /lib/libc.so.6

#2  0x013bb3ea in abort () from /lib/libc.so.6

#3  0x013f99d5 in __libc_message () from /lib/libc.so.6

#4  0x013ffe31 in malloc_printerr () from /lib/libc.so.6

#5  0x014033ff in _int_malloc () from /lib/libc.so.6

#6  0x0140400e in malloc () from /lib/libc.so.6

#7  0x03c9a09a in operator new(unsigned int) () from /usr/lib/libstdc++.so.6

#8  0x03c76ed6 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> const&) () from /usr/lib/libstdc++.so.6

#9  0x03c78029 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_clone(std::allocator<char> const&, unsigned int) ()

   from /usr/lib/libstdc++.so.6

#10 0x03c78578 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned int) () from /usr/lib/libstdc++.so.6

#11 0x03c78a5b in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib/libstdc++.so.6

#12 0x07653c0f in log4cxx::pattern::LiteralPatternConverter::format(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, log4cxx::helpers::Pool&) const () from /log4cxx/lib/liblog4cxx.so.10

#13 0x076778e5 in log4cxx::PatternLayout::format(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) const () from /log4cxx/lib/liblog4cxx.so.10

#14 0x076b6636 in log4cxx::WriterAppender::subAppend(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) ()

   from /log4cxx/lib/liblog4cxx.so.10

#15 0x0768aca4 in log4cxx::rolling::RollingFileAppenderSkeleton::subAppend(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) () from /log4cxx/lib/liblog4cxx.so.10

#16 0x076b5da7 in log4cxx::WriterAppender::append(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) ()

   from /log4cxx/lib/liblog4cxx.so.10

#17 0x07604aa0 in log4cxx::AppenderSkeleton::doAppend(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) ()

   from /log4cxx/lib/liblog4cxx.so.10

#18 0x07601065 in log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) () from /log4cxx/lib/liblog4cxx.so.10

#19 0x0765973d in log4cxx::Logger::callAppenders(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) const ()

   from /log4cxx/lib/liblog4cxx.so.10

#20 0x076599dd in log4cxx::Logger::forcedLog(log4cxx::helpers::ObjectPtrT<log4cxx::Level> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, log4cxx::spi::LocationInfo const&) const () from /log4cxx/lib/liblog4cxx.so.10

#21 0x080b07cd in AppServer::getSomething (this=0x8a54cb8, env=...) at AppServer.cpp:406

#22 0x080bae04 in AppModule_AppServerIntfcAppServer::getSomething (this=0x8a561d8, IT_env=...) at AppServer.h:243

#23 0x0829bedb in AppModule::AppServerIntfc_dispatch::dispatch (this=0x8a41298, IT_r=..., IT_isTarget=1 '\001', IT_pp=0x8a561d8)

    at AppModuleS.cc:229

#24 0x019fbdfe in ContextClassS::continueDispatch(RequestS&, CORBA::Filter*, CORBA::PPTR*) () from /orbix/lib/liborbixmt.3.3.gcc411.so.1

#25 0x019fc109 in ContextClassS::continueThreadDispatch(RequestS&) () from /orbix/lib/liborbixmt.3.3.gcc411.so.1

#26 0x01a06681 in IT_BOAImpl::continueThreadDispatch(CORBA::Request&) () from /orbix/lib/liborbixmt.3.3.gcc411.so.1

#27 0x01a06139 in CORBA::BOA::continueThreadDispatch(CORBA::Request&) () from /orbix/lib/liborbixmt.3.3.gcc411.so.1

#28 0x0064b911 in ThreadFilter::threadPool() () from /apps/app/lib/libapp.so

#29 0x0064b8bb in ThreadFilter::runThreadPool(void*) () from apps/app/lib/libapp.so

#30 0x00967a49 in start_thread () from /lib/libpthread.so.0

#31 0x01471aee in clone () from /lib/libc.so.6

 

This is code snippet for function :

 

CORBA::Long AppServer::getSomething (CORBA::Environment& env) throw (CORBA::SystemException)

{

  LOG4CXX_DEBUG (logger,"AppServer::getSomething called!" );

  something++;

  return something;

}

 

Let me know if you need more detail.

 

Thanks & Regards,

Ashish Rai

M: <a href="tel:(404)%20988-8983" value="+14049888983" target="_blank">404-988-8983

 


Reply | Threaded
Open this post in threaded view
|

RE: LOG4CXX crashes

Rai, Ashish

Log4cxx version : Version: 0.10.0 (installed in 32-bit because our application is in 32-bit)

 

Our application is not a multithreaded application.

 

This crash has happened few time. Most of the time this functions work fine.

 

 

Thanks & Regards,

Ashish Rai

O: 404-714-8121

M: 404-988-8983

 

From: Robert Middleton [mailto:[hidden email]]
Sent: Monday, April 03, 2017 8:03 PM
To: Log4CXX User <[hidden email]>
Subject: Re: LOG4CXX crashes

 

Ashish,

 

A few questions for you:

 

  1. What version of log4cxx are you running?
  2. Are you running log4cxx in a multi-threaded application?  If yes, the current versions of log4cxx do have problems with multithreaded applications, and that could cause a problem.
  3. Does this happen all the time?  If it's not happening all of the time it sounds like it could be memory corruption of some kind.

-Robert Middleton

 

On Mon, Apr 3, 2017 at 1:14 PM, Rai, Ashish <[hidden email]> wrote:

 

Hi,

 

We are getting crashes from log4cxx implementation in our application. Our application is running on Linux 2.6.32-358.el6.x86_64. It C++ based application using orbix to interact with Java based GUI.

 

Please find below stack trace  for core dump :

 

#0  0x0077a430 in __kernel_vsyscall ()

#1  0x013b9b11 in raise () from /lib/libc.so.6

#2  0x013bb3ea in abort () from /lib/libc.so.6

#3  0x013f99d5 in __libc_message () from /lib/libc.so.6

#4  0x013ffe31 in malloc_printerr () from /lib/libc.so.6

#5  0x014033ff in _int_malloc () from /lib/libc.so.6

#6  0x0140400e in malloc () from /lib/libc.so.6

#7  0x03c9a09a in operator new(unsigned int) () from /usr/lib/libstdc++.so.6

#8  0x03c76ed6 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> const&) () from /usr/lib/libstdc++.so.6

#9  0x03c78029 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_clone(std::allocator<char> const&, unsigned int) ()

   from /usr/lib/libstdc++.so.6

#10 0x03c78578 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned int) () from /usr/lib/libstdc++.so.6

#11 0x03c78a5b in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib/libstdc++.so.6

#12 0x07653c0f in log4cxx::pattern::LiteralPatternConverter::format(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, log4cxx::helpers::Pool&) const () from /log4cxx/lib/liblog4cxx.so.10

#13 0x076778e5 in log4cxx::PatternLayout::format(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) const () from /log4cxx/lib/liblog4cxx.so.10

#14 0x076b6636 in log4cxx::WriterAppender::subAppend(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) ()

   from /log4cxx/lib/liblog4cxx.so.10

#15 0x0768aca4 in log4cxx::rolling::RollingFileAppenderSkeleton::subAppend(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) () from /log4cxx/lib/liblog4cxx.so.10

#16 0x076b5da7 in log4cxx::WriterAppender::append(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) ()

   from /log4cxx/lib/liblog4cxx.so.10

#17 0x07604aa0 in log4cxx::AppenderSkeleton::doAppend(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) ()

   from /log4cxx/lib/liblog4cxx.so.10

#18 0x07601065 in log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) () from /log4cxx/lib/liblog4cxx.so.10

#19 0x0765973d in log4cxx::Logger::callAppenders(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&) const ()

   from /log4cxx/lib/liblog4cxx.so.10

#20 0x076599dd in log4cxx::Logger::forcedLog(log4cxx::helpers::ObjectPtrT<log4cxx::Level> const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, log4cxx::spi::LocationInfo const&) const () from /log4cxx/lib/liblog4cxx.so.10

#21 0x080b07cd in AppServer::getSomething (this=0x8a54cb8, env=...) at AppServer.cpp:406

#22 0x080bae04 in AppModule_AppServerIntfcAppServer::getSomething (this=0x8a561d8, IT_env=...) at AppServer.h:243

#23 0x0829bedb in AppModule::AppServerIntfc_dispatch::dispatch (this=0x8a41298, IT_r=..., IT_isTarget=1 '\001', IT_pp=0x8a561d8)

    at AppModuleS.cc:229

#24 0x019fbdfe in ContextClassS::continueDispatch(RequestS&, CORBA::Filter*, CORBA::PPTR*) () from /orbix/lib/liborbixmt.3.3.gcc411.so.1

#25 0x019fc109 in ContextClassS::continueThreadDispatch(RequestS&) () from /orbix/lib/liborbixmt.3.3.gcc411.so.1

#26 0x01a06681 in IT_BOAImpl::continueThreadDispatch(CORBA::Request&) () from /orbix/lib/liborbixmt.3.3.gcc411.so.1

#27 0x01a06139 in CORBA::BOA::continueThreadDispatch(CORBA::Request&) () from /orbix/lib/liborbixmt.3.3.gcc411.so.1

#28 0x0064b911 in ThreadFilter::threadPool() () from /apps/app/lib/libapp.so

#29 0x0064b8bb in ThreadFilter::runThreadPool(void*) () from apps/app/lib/libapp.so

#30 0x00967a49 in start_thread () from /lib/libpthread.so.0

#31 0x01471aee in clone () from /lib/libc.so.6

 

This is code snippet for function :

 

CORBA::Long AppServer::getSomething (CORBA::Environment& env) throw (CORBA::SystemException)

{

  LOG4CXX_DEBUG (logger,"AppServer::getSomething called!" );

  something++;

  return something;

}

 

Let me know if you need more detail.

 

Thanks & Regards,

Ashish Rai

M: <a href="tel:(404)%20988-8983" target="_blank">404-988-8983