Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-449

crash on program exit when no logging output is produced

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.10.0
    • None
    • None
    • None

    Description

      Fedora 20 system.

      Using log4cxx and exiting the program without performing any logging results in a crash.

      Calling log4cxx::LogManager::shutdown(); appears to solve this but that isn't documented as a requirement anywhere on the log4cxx site.

      $ ./log4cxx-test

          • Error in `./log4cxx-test': free(): corrupted unsorted chunks: 0x0000000001efd4e0 ***
            ======= Backtrace: =========
            /lib64/libc.so.6(+0x75a4f)[0x7f88dad17a4f]
            /lib64/libc.so.6(+0x7cd78)[0x7f88dad1ed78]
            /lib64/libc.so.6(+0x39110)[0x7f88dacdb110]
            /lib64/libc.so.6(+0x39135)[0x7f88dacdb135]
            /lib64/libc.so.6(__libc_start_main+0xfc)[0x7f88dacc3d6c]
            ./log4cxx-test[0x4021c9]
            ======= Memory map: ========
            00400000-00404000 r-xp 00000000 fd:00 2657668 /home/cmorgan/projects/test/log4cxx_crash/build/log4cxx-test
            00603000-00604000 r--p 00003000 fd:00 2657668 /home/cmorgan/projects/test/log4cxx_crash/build/log4cxx-test
            00604000-00605000 rw-p 00004000 fd:00 2657668 /home/cmorgan/projects/test/log4cxx_crash/build/log4cxx-test
            01efa000-01f1b000 rw-p 00000000 00:00 0 [heap]
            3071a00000-3071a15000 r-xp 00000000 fd:00 1054976 /usr/lib64/libz.so.1.2.8
            3071a15000-3071c14000 ---p 00015000 fd:00 1054976 /usr/lib64/libz.so.1.2.8
            3071c14000-3071c15000 r--p 00014000 fd:00 1054976 /usr/lib64/libz.so.1.2.8
            3071c15000-3071c16000 rw-p 00015000 fd:00 1054976 /usr/lib64/libz.so.1.2.8
            3077200000-3077227000 r-xp 00000000 fd:00 1056493 /usr/lib64/libexpat.so.1.6.0
            3077227000-3077427000 ---p 00027000 fd:00 1056493 /usr/lib64/libexpat.so.1.6.0
            3077427000-3077429000 r--p 00027000 fd:00 1056493 /usr/lib64/libexpat.so.1.6.0
            3077429000-307742a000 rw-p 00029000 fd:00 1056493 /usr/lib64/libexpat.so.1.6.0
            3079e00000-3079fb5000 r-xp 00000000 fd:00 1063356 /usr/lib64/libdb-5.3.so
            3079fb5000-307a1b5000 ---p 001b5000 fd:00 1063356 /usr/lib64/libdb-5.3.so
            307a1b5000-307a1bc000 r--p 001b5000 fd:00 1063356 /usr/lib64/libdb-5.3.so
            307a1bc000-307a1bf000 rw-p 001bc000 fd:00 1063356 /usr/lib64/libdb-5.3.so
            3082e00000-3082e04000 r-xp 00000000 fd:00 1063622 /usr/lib64/libplc4.so
            3082e04000-3083003000 ---p 00004000 fd:00 1063622 /usr/lib64/libplc4.so
            3083003000-3083004000 r--p 00003000 fd:00 1063622 /usr/lib64/libplc4.so
            3083004000-3083005000 rw-p 00004000 fd:00 1063622 /usr/lib64/libplc4.so
            3084400000-308443a000 r-xp 00000000 fd:00 1049768 /usr/lib64/libnspr4.so
            308443a000-3084639000 ---p 0003a000 fd:00 1049768 /usr/lib64/libnspr4.so
            3084639000-308463a000 r--p 00039000 fd:00 1049768 /usr/lib64/libnspr4.so
            308463a000-308463c000 rw-p 0003a000 fd:00 1049768 /usr/lib64/libnspr4.so
            308463c000-308463e000 rw-p 00000000 00:00 0
            3084800000-3084803000 r-xp 00000000 fd:00 1053966 /usr/lib64/libplds4.so
            3084803000-3084a02000 ---p 00003000 fd:00 1053966 /usr/lib64/libplds4.so
            3084a02000-3084a03000 r--p 00002000 fd:00 1053966 /usr/lib64/libplds4.so
            3084a03000-3084a04000 rw-p 00003000 fd:00 1053966 /usr/lib64/libplds4.so
            3090800000-309081c000 r-xp 00000000 fd:00 1063777 /usr/lib64/libsasl2.so.3.0.0
            309081c000-3090a1b000 ---p 0001c000 fd:00 1063777 /usr/lib64/libsasl2.so.3.0.0
            3090a1b000-3090a1c000 r--p 0001b000 fd:00 1063777 /usr/lib64/libsasl2.so.3.0.0
            3090a1c000-3090a1d000 rw-p 0001c000 fd:00 1063777 /usr/lib64/libsasl2.so.3.0.0
            3091000000-309100e000 r-xp 00000000 fd:00 1063352 /usr/lib64/liblber-2.4.so.2.10.2
            309100e000-309120d000 ---p 0000e000 fd:00 1063352 /usr/lib64/liblber-2.4.so.2.10.2
            309120d000-309120e000 r--p 0000d000 fd:00 1063352 /usr/lib64/liblber-2.4.so.2.10.2
            309120e000-309120f000 rw-p 0000e000 fd:00 1063352 /usr/lib64/liblber-2.4.so.2.10.2
            3f7c800000-3f7c815000 r-xp 00000000 fd:00 1067135 /usr/lib64/libgcc_s-4.8.3-20140911.so.1
            3f7c815000-3f7ca14000 ---p 00015000 fd:00 1067135 /usr/lib64/libgcc_s-4.8.3-20140911.so.1
            3f7ca14000-3f7ca15000 r--p 00014000 fd:00 1067135 /usr/lib64/libgcc_s-4.8.3-20140911.so.1
            3f7ca15000-3f7ca16000 rw-p 00015000 fd:00 1067135 /usr/lib64/libgcc_s-4.8.3-20140911.so.1
            3f7cc00000-3f7cce9000 r-xp 00000000 fd:00 1067136 /usr/lib64/libstdc++.so.6.0.19
            3f7cce9000-3f7cee9000 ---p 000e9000 fd:00 1067136 /usr/lib64/libstdc++.so.6.0.19
            3f7cee9000-3f7cef1000 r--p 000e9000 fd:00 1067136 /usr/lib64/libstdc++.so.6.0.19
            3f7cef1000-3f7cef3000 rw-p 000f1000 fd:00 1067136 /usr/lib64/libstdc++.so.6.0.19
            3f7cef3000-3f7cf08000 rw-p 00000000 00:00 0
            7f88d8d36000-7f88d8d3d000 r-xp 00000000 fd:00 1063472 /usr/lib64/librt-2.18.so
            7f88d8d3d000-7f88d8f3c000 ---p 00007000 fd:00 1063472 /usr/lib64/librt-2.18.so
            7f88d8f3c000-7f88d8f3d000 r--p 00006000 fd:00 1063472 /usr/lib64/librt-2.18.so
            7f88d8f3d000-7f88d8f3e000 rw-p 00007000 fd:00 1063472 /usr/lib64/librt-2.18.so
            7f88d8f3e000-7f88d8fb5000 r-xp 00000000 fd:00 1060088 /usr/lib64/libfreebl3.so
            7f88d8fb5000-7f88d91b4000 ---p 00077000 fd:00 1060088 /usr/lib64/libfreebl3.so
            7f88d91b4000-7f88d91b6000 r--p 00076000 fd:00 1060088 /usr/lib64/libfreebl3.so
            7f88d91b6000-7f88d91b7000 rw-p 00078000 fd:00 1060088 /usr/lib64/libfreebl3.so
            7f88d91b7000-7f88d91bb000 rw-p 00000000 00:00 0
            7f88d91bb000-7f88d91e0000 r-xp 00000000 fd:00 1052079 /usr/lib64/libnssutil3.so
            7f88d91e0000-7f88d93e0000 ---p 00025000 fd:00 1052079 /usr/lib64/libnssutil3.so
            7f88d93e0000-7f88d93e6000 r--p 00025000 fd:00 1052079 /usr/lib64/libnssutil3.so
            7f88d93e6000-7f88d93e7000 rw-p 0002b000 fd:00 1052079 /usr/lib64/libnssutil3.so
            7f88d93e7000-7f88d9505000 r-xp 00000000 fd:00 1094739 /usr/lib64/libnss3.so
            7f88d9505000-7f88d9705000 ---p 0011e000 fd:00 1094739 /usr/lib64/libnss3.so
            7f88d9705000-7f88d970a000 r--p 0011e000 fd:00 1094739 /usr/lib64/libnss3.so
            7f88d970a000-7f88d970c000 rw-p 00123000 fd:00 1094739 /usr/lib64/libnss3.so
            7f88d970c000-7f88d970e000 rw-p 00000000 00:00 0
            7f88d970e000-7f88d9732000 r-xp 00000000 fd:00 1094741 /usr/lib64/libsmime3.so
            7f88d9732000-7f88d9931000 ---p 00024000 fd:00 1094741 /usr/lib64/libsmime3.so
            7f88d9931000-7f88d9934000 r--p 00023000 fd:00 1094741 /usr/lib64/libsmime3.so
            7f88d9934000-7f88d9935000 rw-p 00026000 fd:00 1094741 /usr/lib64/libsmime3.so
            7f88d9935000-7f88d996f000 r-xp 00000000 fd:00 1094742 /usr/lib64/libssl3.so
            7f88d996f000-7f88d9b6f000 ---p 0003a000 fd:00 1094742 /usr/lib64/libssl3.so
            7f88d9b6f000-7f88d9b72000 r--p 0003a000 fd:00 1094742 /usr/lib64/libssl3.so
            7f88d9b72000-7f88d9b73000 rw-p 0003d000 fd:00 1094742 /usr/lib64/libssl3.so
            7f88d9b73000-7f88d9b74000 rw-p 00000000 00:00 0
            7f88d9b74000-7f88d9b8a000 r-xp 00000000 fd:00 1063471 /usr/lib64/libresolv-2.18.so
            7f88d9b8a000-7f88d9d8a000 ---p 00016000 fd:00 1063471 /usr/lib64/libresolv-2.18.so
            7f88d9d8a000-7f88d9d8b000 r--p 00016000 fd:00 1063471 /usr/lib64/libresolv-2.18.so
            7f88d9d8b000-7f88d9d8c000 rw-p 00017000 fd:00 1063471 /usr/lib64/libresolv-2.18.so
            7f88d9d8c000-7f88d9d8e000 rw-p 00000000 00:00 0
            7f88d9d8e000-7f88d9d96000 r-xp 00000000 fd:00 1050032 /usr/lib64/libcrypt-2.18.so
            7f88d9d96000-7f88d9f95000 ---p 00008000 fd:00 1050032 /usr/lib64/libcrypt-2.18.so
            7f88d9f95000-7f88d9f96000 r--p 00007000 fd:00 1050032 /usr/lib64/libcrypt-2.18.so
            7f88d9f96000-7f88d9f97000 rw-p 00008000 fd:00 1050032 /usr/lib64/libcrypt-2.18.so
            7f88d9f97000-7f88d9fc5000 rw-p 00000000 00:00 0
            7f88d9fc5000-7f88d9fc9000 r-xp 00000000 fd:00 1052414 /usr/lib64/libuuid.so.1.3.0
            7f88d9fc9000-7f88da1c8000 ---p 00004000 fd:00 1052414 /usr/lib64/libuuid.so.1.3.0
            7f88da1c8000-7f88da1c9000 r--p 00003000 fd:00 1052414 /usr/lib64/libuuid.so.1.3.0
            7f88da1c9000-7f88da1ca000 rw-p 00004000 fd:00 1052414 /usr/lib64/libuuid.so.1.3.0
            7f88da1ca000-7f88da1cd000 r-xp 00000000 fd:00 1063465 /usr/lib64/libdl-2.18.so
            7f88da1cd000-7f88da3cc000 ---p 00003000 fd:00 1063465 /usr/lib64/libdl-2.18.so
            7f88da3cc000-7f88da3cd000 r--p 00002000 fd:00 1063465 /usr/lib64/libdl-2.18.so
            7f88da3cd000-7f88da3ce000 rw-p 00003000 fd:00 1063465 /usr/lib64/libdl-2.18.so
            7f88da3ce000-7f88da400000 r-xp 00000000 fd:00 1059242 /usr/lib64/libapr-1.so.0.5.1
            7f88da400000-7f88da600000 ---p 00032000 fd:00 1059242 /usr/lib64/libapr-1.so.0.5.1
            7f88da600000-7f88da601000 r--p 00032000 fd:00 1059242 /usr/lib64/libapr-1.so.0.5.1
            7f88da601000-7f88da602000 rw-p 00033000 fd:00 1059242 /usr/lib64/libapr-1.so.0.5.1
            7f88da602000-7f88da657000 r-xp 00000000 fd:00 1055100 /usr/lib64/libldap_r-2.4.so.2.10.2
            7f88da657000-7f88da856000 ---p 00055000 fd:00 1055100 /usr/lib64/libldap_r-2.4.so.2.10.2
            7f88da856000-7f88da858000 r--p 00054000 fd:00 1055100 /usr/lib64/libldap_r-2.4.so.2.10.2
            7f88da858000-7f88da85a000 rw-p 00056000 fd:00 1055100 /usr/lib64/libldap_r-2.4.so.2.10.2
            7f88da85a000-7f88da85c000 rw-p 00000000 00:00 0
            7f88da85c000-7f88da884000 r-xp 00000000 fd:00 1060418 /usr/lib64/libaprutil-1.so.0.5.3
            7f88da884000-7f88daa83000 ---p 00028000 fd:00 1060418 /usr/lib64/libaprutil-1.so.0.5.3
            7f88daa83000-7f88daa84000 r--p 00027000 fd:00 1060418 /usr/lib64/libaprutil-1.so.0.5.3
            7f88daa84000-7f88daa85000 rw-p 00028000 fd:00 1060418 /usr/lib64/libaprutil-1.so.0.5.3
            7f88daa85000-7f88daa9d000 r-xp 00000000 fd:00 1053633 /usr/lib64/libpthread-2.18.so
            7f88daa9d000-7f88dac9c000 ---p 00018000 fd:00 1053633 /usr/lib64/libpthread-2.18.so
            7f88dac9c000-7f88dac9d000 r--p 00017000 fd:00 1053633 /usr/lib64/libpthread-2.18.so
            7f88dac9d000-7f88dac9e000 rw-p 00018000 fd:00 1053633 /usr/lib64/libpthread-2.18.so
            7f88dac9e000-7f88daca2000 rw-p 00000000 00:00 0
            7f88daca2000-7f88dae56000 r-xp 00000000 fd:00 1049621 /usr/lib64/libc-2.18.so
            7f88dae56000-7f88db055000 ---p 001b4000 fd:00 1049621 /usr/lib64/libc-2.18.so
            7f88db055000-7f88db059000 r--p 001b3000 fd:00 1049621 /usr/lib64/libc-2.18.so
            7f88db059000-7f88db05b000 rw-p 001b7000 fd:00 1049621 /usr/lib64/libc-2.18.so
            7f88db05b000-7f88db060000 rw-p 00000000 00:00 0
            7f88db060000-7f88db165000 r-xp 00000000 fd:00 1063466 /usr/lib64/libm-2.18.so
            7f88db165000-7f88db365000 ---p 00105000 fd:00 1063466 /usr/lib64/libm-2.18.so
            7f88db365000-7f88db366000 r--p 00105000 fd:00 1063466 /usr/lib64/libm-2.18.so
            7f88db366000-7f88db367000 rw-p 00106000 fd:00 1063466 /usr/lib64/libm-2.18.so
            7f88db367000-7f88db528000 r-xp 00000000 fd:00 1065633 /usr/lib64/liblog4cxx.so.10.0.0
            7f88db528000-7f88db728000 ---p 001c1000 fd:00 1065633 /usr/lib64/liblog4cxx.so.10.0.0
            7f88db728000-7f88db752000 r--p 001c1000 fd:00 1065633 /usr/lib64/liblog4cxx.so.10.0.0
            7f88db752000-7f88db755000 rw-p 001eb000 fd:00 1065633 /usr/lib64/liblog4cxx.so.10.0.0
            7f88db755000-7f88db757000 rw-p 00000000 00:00 0
            7f88db757000-7f88db777000 r-xp 00000000 fd:00 1052083 /usr/lib64/ld-2.18.so
            7f88db93d000-7f88db94d000 rw-p 00000000 00:00 0
            7f88db974000-7f88db976000 rw-p 00000000 00:00 0
            7f88db976000-7f88db977000 r--p 0001f000 fd:00 1052083 /usr/lib64/ld-2.18.so
            7f88db977000-7f88db978000 rw-p 00020000 fd:00 1052083 /usr/lib64/ld-2.18.so
            7f88db978000-7f88db979000 rw-p 00000000 00:00 0
            7ffffb954000-7ffffb975000 rw-p 00000000 00:00 0 [stack]
            7ffffb9fc000-7ffffb9fe000 r-xp 00000000 00:00 0 [vdso]
            7ffffb9fe000-7ffffba00000 r--p 00000000 00:00 0 [vvar]
            ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
            Aborted

      Attachments

        1. CMakeLists.txt
          0.4 kB
          Chris Morgan
        2. log4cxx-test.cpp
          1 kB
          Chris Morgan

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chmorgan Chris Morgan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: