Hi,
  I am getting segmentation fault from log4cxx when running on 64 bit
platform (linux). Though its working fine on 32 bit machine.
  Can you please help me out?

gdb back trace output:---

#0  apr_pool_create_ex (newpool=0x8b1940, parent=0x8b8418, abort_fn=0,
allocator=0x8b4300) at memory/unix/apr_pools.c:249
#1  0x00000000005a5e20 in Pool (this=0x8b1940) at pool.cpp:34
#2  0x00000000005bda4d in
log4cxx::helpers::CharsetEncoder::createDefaultEncoder () at
charsetencoder.cpp:370
#3  0x00000000005be0f3 in
log4cxx::helpers::CharsetEncoder::getDefaultEncoder () at
charsetencoder.cpp:436
#4  0x00000000005b5772 in log4cxx::helpers::Transcoder::encode
(s...@0x7fbffff300, d...@0x7fbffff2c0) at transcoder.cpp:288
#5  0x00000000005aee83 in log4cxx::helpers::SystemErrWriter::write
(s...@0x7fbffff300) at systemerrwriter.cpp:67
#6  0x00000000005b661f in log4cxx::WriterAppender::writeFooter
(this=0x8c2330, p...@0x8c2398) at writerappender.cpp:227
#7  0x00000000005b6842 in log4cxx::WriterAppender::closeWriter
(this=0x8c2330) at writerappender.cpp:157
#8  0x00000000005b69ff in log4cxx::WriterAppender::close (this=0x8c2330) at
writerappender.cpp:143
#9  0x000000000058815d in ~ConsoleAppender (this=0x0) at
consoleappender.cpp:57
#10 0x00000000004e9601 in ~ObjectPtrT (this=0x8c22e0) at
../../../src/main/include/log4cxx/helpers/objectptr.h:100
#11 0x00000000005b9aad in ~AppenderAttachableImpl (this=0x8c2940)
#12 0x0000000000590905 in ~Logger (this=0x8bc4c0, __vtt_parm=<value
optimized out>) at ../../../src/main/include/log4cxx/helpers/objectptr.h:100
#13 0x00000000005fa9ca in ~RootLogger (this=0x0) at
../../../src/main/include/log4cxx/spi/rootlogger.h:37
#14 0x00000000004e75ba in ~CdxMsgrC (this=0x88fc00) at
/usr/releng/external/log4cxx-0.10.0/include/log4cxx/helpers/objectptr.h:100
#15 0x00000000004e805a in __static_initialization_and_destruction_0
(__initialize_p=<value optimized out>, __priority=21)
#16 0x00000000004d724d in __do_global_dtors_aux ()
#17 0x0000007fbffff618 in ?? ()
#18 0x00000000006ba1bd in _fini ()
#19 0x0000007fbffff618 in ?? ()
#20 0x0000002a95c6ec85 in exit () from /lib64/tls/libc.so.6
#21 0x00000000004dac28 in main (argc=<value optimized out>,
argv=0x7fbffff618)

Reply via email to