Core was generated by `./testthreads'. Program terminated with signal 11, Segmentation fault. Reading symbols from /home/ewyles/log4cxx/log4cxx-0.9.8/build/debug/shared/liblog4cxx.so...done. Loaded symbols for /home/ewyles/log4cxx/lib/liblog4cxx.so Reading symbols from /lib/tls/libpthread.so.0...done. Loaded symbols for /lib/tls/libpthread.so.0 Reading symbols from /usr/lib/libstdc++.so.5...done. Loaded symbols for /usr/lib/libstdc++.so.5 Reading symbols from /lib/tls/libm.so.6...done. Loaded symbols for /lib/tls/libm.so.6 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/tls/libc.so.6...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /usr/lib/libexpat.so.0...done. Loaded symbols for /usr/lib/libexpat.so.0 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 #0 0x0028fb1a in log4cxx::Logger::isEnabledFor (this=0x0, level=@0x343128) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:275 275 if(repository == 0 || repository->isDisabled(level->toInt())) (gdb) bt #0 0x0028fb1a in log4cxx::Logger::isEnabledFor (this=0x0, level=@0x343128) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:275 #1 0x002911d6 in log4cxx::Logger::debug (this=0x0, msg=@0x9fdffa00) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:590 #2 0x080775e5 in LoggerThread::meth_520 () at loggerthread.cpp:4194 #3 0x08050141 in LoggerThread::runStatic (thread=0x0) at loggerthread.cpp:8551 #4 0x00c17dec in start_thread () from /lib/tls/libpthread.so.0 #5 0x00511a2a in clone () from /lib/tls/libc.so.6 (gdb) thread apply all backtrace Thread 6 (process 7377): #0 0x00c18c78 in pthread_join () from /lib/tls/libpthread.so.0 #1 0x080493dc in heavyThreading () at threadtestcase.cpp:86 #2 0x08049406 in main () at threadtestcase.cpp:96 Thread 5 (process 7378): #0 0x003bbb32 in std::__default_alloc_template::allocate () from /usr/lib/libstdc++.so.5 #1 0x003c1b78 in std::string::_Rep::_S_create () from /usr/lib/libstdc++.so.5 #2 0x003c1ca9 in std::string::_Rep::_M_clone () from /usr/lib/libstdc++.so.5 #3 0x003bfa16 in std::string::reserve () from /usr/lib/libstdc++.so.5 #4 0x003bff12 in std::string::append () from /usr/lib/libstdc++.so.5 #5 0x0020f316 in log4cxx::helpers::MbstowcsCharsetDecoder::append (this=0x917d150, out=@0x918bf18, buf=0xaffee410) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/charsetdecoder.cpp:155 #6 0x0020ebf6 in log4cxx::helpers::MbstowcsCharsetDecoder::decode (this=0x917d150, in=@0xaffee850, out=@0x918bf18) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/charsetdecoder.cpp:187 #7 0x001ec81d in log4cxx::helpers::Transcoder::decode (src=0xaffee8b0 "0xaffeebb0", len=10, dst=@0x918bf18) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/transcoder.cpp:59 #8 0x00210722 in log4cxx::helpers::Transcoder::decode (src=0xaffee8b0 "0xaffeebb0", dst=@0x918bf18) at transcoder.h:43 #9 0x0021225b in log4cxx::spi::LoggingEvent::getCurrentThreadName () at /home/ewyles/log4cxx/log4cxx-0.9.8/src/loggingevent.cpp:206 #10 0x00211785 in LoggingEvent (this=0x918bed8, logger=@0xaffee960, level=@0x343128, message=@0xaffee980, locationInfo=@0x3434b8) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/loggingevent.cpp:71 #11 0x0028efc0 in log4cxx::Logger::forcedLog (this=0x9fe103b0, level=@0x343128, message=@0xaffeea00) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:128 #12 0x002911f7 in log4cxx::Logger::debug (this=0x9fe103b0, msg=@0xaffeea00) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:591 #13 0x08076d95 in LoggerThread::meth_513 () at loggerthread.cpp:4138 #14 0x0805011e in LoggerThread::runStatic (thread=0x0) at loggerthread.cpp:8544 #15 0x00c17dec in start_thread () from /lib/tls/libpthread.so.0 #16 0x00511a2a in clone () from /lib/tls/libc.so.6 Thread 4 (process 7379): #0 0x004c86d1 in gettimeofday () from /lib/tls/libc.so.6 #1 0x002ce25e in apr_time_now () at /home/ewyles/log4cxx/log4cxx-0.9.8/lib/apr-1.2.2/time/unix/time.c:77 #2 0x00211758 in LoggingEvent (this=0x9fe103e0, logger=@0xa7fed960, level=@0x343128, message=@0xa7fed980, locationInfo=@0x3434b8) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/loggingevent.cpp:71 #3 0x0028efc0 in log4cxx::Logger::forcedLog (this=0x918b830, level=@0x343128, message=@0xa7feda00) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:128 #4 0x002911f7 in log4cxx::Logger::debug (this=0x918b830, msg=@0xa7feda00) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:591 #5 0x080775e5 in LoggerThread::meth_520 () at loggerthread.cpp:4194 #6 0x08050141 in LoggerThread::runStatic (thread=0x0) at loggerthread.cpp:8551 #7 0x00c17dec in start_thread () from /lib/tls/libpthread.so.0 #8 0x00511a2a in clone () from /lib/tls/libc.so.6 Thread 3 (process 7381): #0 0x00c1c809 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0 #1 0x00c19800 in _L_mutex_lock_78 () from /lib/tls/libpthread.so.0 #2 0x0033e8d8 in __JCR_LIST__ () from /home/ewyles/log4cxx/lib/liblog4cxx.so #3 0x97dfe900 in ?? () #4 0x97dfe808 in ?? () #5 0x002c80e3 in apr_thread_mutex_lock (mutex=0x91786f4) at /home/ewyles/log4cxx/log4cxx-0.9.8/lib/apr-1.2.2/locks/unix/thread_mutex.c:92 #6 0x002c80e3 in apr_thread_mutex_lock (mutex=0x91786f0) at /home/ewyles/log4cxx/log4cxx-0.9.8/lib/apr-1.2.2/locks/unix/thread_mutex.c:92 #7 0x0027ec45 in synchronized (this=0x97dfe900, mutex=@0x917afd0) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/synchronized.cpp:30 #8 0x0028e984 in log4cxx::Logger::callAppenders (this=0x9fe0a710, event=@0x97dfe970, p=@0x97dfe990) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:74 #9 0x0028f04f in log4cxx::Logger::forcedLog (this=0x9fe0a710, level=@0x343128, message=@0x97dfea00) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:129 #10 0x002911f7 in log4cxx::Logger::debug (this=0x9fe0a710, msg=@0x97dfea00) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:591 #11 0x08073955 in LoggerThread::meth_469 () at loggerthread.cpp:3786 #12 0x08050042 in LoggerThread::runStatic (thread=0x0) at loggerthread.cpp:8500 ---Type to continue, or q to quit--- #13 0x00c17dec in start_thread () from /lib/tls/libpthread.so.0 #14 0x00511a2a in clone () from /lib/tls/libc.so.6 Thread 2 (process 7382): #0 0x00c1c809 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0 #1 0x00c19800 in _L_mutex_lock_78 () from /lib/tls/libpthread.so.0 #2 0x0033e8d8 in __JCR_LIST__ () from /home/ewyles/log4cxx/lib/liblog4cxx.so #3 0x8fdfd900 in ?? () #4 0x8fdfd808 in ?? () #5 0x002c80e3 in apr_thread_mutex_lock (mutex=0x91786f4) at /home/ewyles/log4cxx/log4cxx-0.9.8/lib/apr-1.2.2/locks/unix/thread_mutex.c:92 #6 0x002c80e3 in apr_thread_mutex_lock (mutex=0x91786f0) at /home/ewyles/log4cxx/log4cxx-0.9.8/lib/apr-1.2.2/locks/unix/thread_mutex.c:92 #7 0x0027ec45 in synchronized (this=0x8fdfd900, mutex=@0x917afd0) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/synchronized.cpp:30 #8 0x0028e984 in log4cxx::Logger::callAppenders (this=0x9fe077d8, event=@0x8fdfd970, p=@0x8fdfd990) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:74 #9 0x0028f04f in log4cxx::Logger::forcedLog (this=0x9fe077d8, level=@0x343128, message=@0x8fdfda00) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:129 #10 0x002911f7 in log4cxx::Logger::debug (this=0x9fe077d8, msg=@0x8fdfda00) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:591 #11 0x08069b65 in LoggerThread::meth_336 () at loggerthread.cpp:2722 #12 0x0804fda9 in LoggerThread::runStatic (thread=0x0) at loggerthread.cpp:8367 #13 0x00c17dec in start_thread () from /lib/tls/libpthread.so.0 #14 0x00511a2a in clone () from /lib/tls/libc.so.6 Thread 1 (process 7380): #0 0x0028fb1a in log4cxx::Logger::isEnabledFor (this=0x0, level=@0x343128) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:275 #1 0x002911d6 in log4cxx::Logger::debug (this=0x0, msg=@0x9fdffa00) at /home/ewyles/log4cxx/log4cxx-0.9.8/src/logger.cpp:590 #2 0x080775e5 in LoggerThread::meth_520 () at loggerthread.cpp:4194 #3 0x08050141 in LoggerThread::runStatic (thread=0x0) at loggerthread.cpp:8551 #4 0x00c17dec in start_thread () from /lib/tls/libpthread.so.0 #5 0x00511a2a in clone () from /lib/tls/libc.so.6