Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux g++ 4.1

      Description

      On the exit of my test program I get the following backtrace.

      #0 0x08003064 in ?? ()
      #1 0xb7e7b726 in log4cxx::helpers::Transcoder::encode (src=@0xbfc9da54, dst=@0xbfc9da10) at transcoder.cpp:78
      #2 0xb7e7175e in log4cxx::helpers::SystemOutWriter::write (this=0x804b040, str=@0xbfc9da54) at systemoutwriter.cpp:56
      #3 0xb7e7e617 in log4cxx::WriterAppender::subAppend (this=0x805a318, event=@0xbfc9db6c, p=@0xbfc9db64) at writerappender.cpp:211
      #4 0xb7e7d5ac in log4cxx::WriterAppender::append (this=0x805a318, event=@0xbfc9db6c, pool1=@0xbfc9db64) at writerappender.cpp:88
      #5 0xb7dd7ce5 in log4cxx::AppenderSkeleton::doAppend (this=0x805a318, event=@0xbfc9db6c, pool1=@0xbfc9db64) at appenderskeleton.cpp:132
      #6 0xb7dd5441 in log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders (this=0x805a1f8, event=@0xbfc9db6c, p=@0xbfc9db64) at appenderattachableimpl.cpp:62
      #7 0xb7e259a7 in log4cxx::Logger::callAppenders (this=0x80576e0, event=@0xbfc9db6c, p=@0xbfc9db64) at logger.cpp:86
      #8 0xb7e27945 in log4cxx::Logger::forcedLog (this=0x80576e0, level1=@0xb7edd468, message=@0xbfc9dbb4, location=@0xbfc9dbc0) at logger.cpp:117
      #9 0x080490b2 in __tcf_2 () at ../../../../../head/ACC/src/core/server/device/test/log4cxxtest.cpp:18
      #10 0xb7af6594 in exit () from /lib/tls/i686/cmov/libc.so.6
      #11 0xb7adf058 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
      #12 0x08048be1 in _start ()

      I will attach the source file after I commited the bug report.

      In the test file I also have a workaround for the problem so that it can be avoided until there is a solution

      1. log4cxxtest.cpp
        0.7 kB
        Thorsten Zachmann

        Activity

        Hide
        Thorsten Zachmann added a comment -

        Test file to reproduce the segmentation fault.

        Show
        Thorsten Zachmann added a comment - Test file to reproduce the segmentation fault.
        Hide
        Arvind Jayaprakash added a comment -

        Tried the sample "as-is" against HEAD and I don't seem to have any issues:

        $ gcc -v
        Using built-in specs.
        Target: i686-pc-linux-gnu
        Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure -prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g+-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c+,objc,fortran --enable-shared --enable-threads=posix --enable__cxa_atexit --enable-clocale=gnu
        Thread model: posix
        gcc version 4.1.2 (Gentoo 4.1.2)

        Show
        Arvind Jayaprakash added a comment - Tried the sample "as-is" against HEAD and I don't seem to have any issues: $ gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure - prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g+ -v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c +,objc,fortran --enable-shared --enable-threads=posix --enable __cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.1.2 (Gentoo 4.1.2)
        Hide
        Thorsten Zachmann added a comment -

        Works now as it should.

        Thanks for fixing the problem

        Show
        Thorsten Zachmann added a comment - Works now as it should. Thanks for fixing the problem

          People

          • Assignee:
            Curt Arnold
            Reporter:
            Thorsten Zachmann
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development