"double free or corruption" type of error
Posted: Wed Sep 03, 2014 10:55 am
Hi All,
We are trying to add new QF data field to the existing QF structure in aerosol outputs. We are running into this interesting error that the aerosol output files including h5 files were generated successfully, but the screen gave out the following error after it said "ProEdrViirsAerosolController processing completed successfully". An examination of the output files looks fine with output datafields.
And I rebuilt ADL successfully after all the code changes.
It appears to be our changes in the VIIRS_AOT_IP_Heap.xml file caused the problem.
Any hints on where we might set things wrong or there are any other files we should make changes to? I used to add a new QF bit successfully in the past without seeing such kind of errors. But has no luck this time, although the outputs seem fine.
Thanks a lot! Any kind feedback or guidance will be sincerely appreciated!
Jingfeng
We are trying to add new QF data field to the existing QF structure in aerosol outputs. We are running into this interesting error that the aerosol output files including h5 files were generated successfully, but the screen gave out the following error after it said "ProEdrViirsAerosolController processing completed successfully". An examination of the output files looks fine with output datafields.
Code: Select all
*** glibc detected *** /data/data003/ADL4.2/ADL/bin/ProEdrViirsAerosolController.exe: double free or corruption (!prev): 0x0000000002ee9e60 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3b7ae75e76]
/lib64/libc.so.6[0x3b7ae789b3]
/data/data003/ADL4.2/ADL/lib/libProEdrViirsAerosol.so(_ZN18ProEdrViirsAerosolD0Ev+0x24)[0x2b206d57e67c]
/data/data003/ADL4.2/ADL/lib/libProCmnIPO.so(_ZN28ProCmnSubAlgorithmOperationsD2Ev+0x18e)[0x2b2064a1ad46]
/data/data003/ADL4.2/ADL/lib/libProCmnIPO.so(_ZN28ProCmnSubAlgorithmOperationsD0Ev+0x18)[0x2b2064a1aef6]
/data/data003/ADL4.2/ADL/lib/libProCmnIPO.so(_ZN25ProCmnControllerAlgorithm25cleanTaskIndependentStateEv+0x49)[0x2b2064a0f3df]
/data/data003/ADL4.2/ADL/lib/libProCmnIPO.so(_ZN25ProCmnControllerAlgorithmD1Ev+0x52)[0x2b2064a0f244]
/data/data003/ADL4.2/ADL/bin/ProEdrViirsAerosolController.exe(_ZN28ProEdrViirsAerosolControllerD1Ev+0x43)[0x427e6b]
/data/data003/ADL4.2/ADL/bin/ProEdrViirsAerosolController.exe(_ZN28ProEdrViirsAerosolControllerD0Ev+0x18)[0x427eac]
/data/data003/ADL4.2/ADL/lib/libAdlScienceAppl.so(_ZN10ProCmnApplD1Ev+0x7d)[0x2b20614ee657]
/data/data003/ADL4.2/ADL/lib/libProCmnViirsAppl.so(_ZN15ProCmnViirsApplD1Ev+0x5e)[0x2b2062593cdc]
/data/data003/ADL4.2/ADL/bin/ProEdrViirsAerosolController.exe(main+0xb3)[0x41911d]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3b7ae1ed5d]
/data/data003/ADL4.2/ADL/bin/ProEdrViirsAerosolController.exe[0x4181f9]
======= Memory map: ========
00400000-00827000 r-xp 00000000 00:1e 111180 /data/data003/ADL4.2/ADL/bin/ProEdrViirsAerosolController.exe
00a26000-00a33000 rw-p 00426000 00:1e 111180 /data/data003/ADL4.2/ADL/bin/ProEdrViirsAerosolController.exe
00a33000-01048000 rw-p 00000000 00:00 0
01793000-04ed4000 rw-p 00000000 00:00 0 [heap]
3b7aa00000-3b7aa20000 r-xp 00000000 08:05 1700747 /lib64/ld-2.12.so
3b7ac1f000-3b7ac20000 r--p 0001f000 08:05 1700747 /lib64/ld-2.12.so
3b7ac20000-3b7ac21000 rw-p 00020000 08:05 1700747 /lib64/ld-2.12.so
3b7ac21000-3b7ac22000 rw-p 00000000 00:00 0
3b7ae00000-3b7af8a000 r-xp 00000000 08:05 1700768 /lib64/libc-2.12.so
3b7af8a000-3b7b18a000 ---p 0018a000 08:05 1700768 /lib64/libc-2.12.so
3b7b18a000-3b7b18e000 r--p 0018a000 08:05 1700768 /lib64/libc-2.12.so
3b7b18e000-3b7b18f000 rw-p 0018e000 08:05 1700768 /lib64/libc-2.12.so
3b7b18f000-3b7b194000 rw-p 00000000 00:00 0
3b7b200000-3b7b283000 r-xp 00000000 08:05 1701591 /lib64/libm-2.12.so
3b7b283000-3b7b482000 ---p 00083000 08:05 1701591 /lib64/libm-2.12.so
3b7b482000-3b7b483000 r--p 00082000 08:05 1701591 /lib64/libm-2.12.so
3b7b483000-3b7b484000 rw-p 00083000 08:05 1701591 /lib64/libm-2.12.so
3b7b600000-3b7b617000 r-xp 00000000 08:05 1701488 /lib64/libpthread-2.12.so
3b7b617000-3b7b817000 ---p 00017000 08:05 1701488 /lib64/libpthread-2.12.so
3b7b817000-3b7b818000 r--p 00017000 08:05 1701488 /lib64/libpthread-2.12.so
3b7b818000-3b7b819000 rw-p 00018000 08:05 1701488 /lib64/libpthread-2.12.so
3b7b819000-3b7b81d000 rw-p 00000000 00:00 0
3b7c200000-3b7c207000 r-xp 00000000 08:05 1701541 /lib64/librt-2.12.so
3b7c207000-3b7c406000 ---p 00007000 08:05 1701541 /lib64/librt-2.12.so
3b7c406000-3b7c407000 r--p 00006000 08:05 1701541 /lib64/librt-2.12.so
3b7c407000-3b7c408000 rw-p 00007000 08:05 1701541 /lib64/librt-2.12.so
3b7ca00000-3b7ca0d000 r-xp 00000000 08:05 679099 /usr/lib64/libgomp.so.1.0.0
3b7ca0d000-3b7cc0c000 ---p 0000d000 08:05 679099 /usr/lib64/libgomp.so.1.0.0
3b7cc0c000-3b7cc0d000 rw-p 0000c000 08:05 679099 /usr/lib64/libgomp.so.1.0.0
3b7ce00000-3b7ce16000 r-xp 00000000 08:05 1701653 /lib64/libresolv-2.12.so
3b7ce16000-3b7d016000 ---p 00016000 08:05 1701653 /lib64/libresolv-2.12.so
3b7d016000-3b7d017000 r--p 00016000 08:05 1701653 /lib64/libresolv-2.12.so
3b7d017000-3b7d018000 rw-p 00017000 08:05 1701653 /lib64/libresolv-2.12.so
3b7d018000-3b7d01a000 rw-p 00000000 00:00 0
3b7d400000-3b7d4f0000 r-xp 00000000 08:05 654992 /usr/lib64/libgfortran.so.3.0.0
3b7d4f0000-3b7d6ef000 ---p 000f0000 08:05 654992 /usr/lib64/libgfortran.so.3.0.0
3b7d6ef000-3b7d6f1000 rw-p 000ef000 08:05 654992 /usr/lib64/libgfortran.so.3.0.0
3b7d6f1000-3b7d6f2000 rw-p 00000000 00:00 0
3b86600000-3b86616000 r-xp 00000000 08:05 1701609 /lib64/libgcc_s-4.4.7-20120601.so.1
3b86616000-3b86815000 ---p 00016000 08:05 1701609 /lib64/libgcc_s-4.4.7-20120601.so.1
3b86815000-3b86816000 rw-p 00015000 08:05 1701609 /lib64/libgcc_s-4.4.7-20120601.so.1
3b87600000-3b876e8000 r-xp 00000000 08:05 656803 /usr/lib64/libstdc++.so.6.0.13
3b876e8000-3b878e8000 ---p 000e8000 08:05 656803 /usr/lib64/libstdc++.so.6.0.13
3b878e8000-3b878ef000 r--p 000e8000 08:05 656803 /usr/lib64/libstdc++.so.6.0.13
3b878ef000-3b878f1000 rw-p 000ef000 08:05 656803 /usr/lib64/libstdc++.so.6.0.13
3b878f1000-3b87906000 rw-p 00000000 00:00 0
2b206105c000-2b206105d000 rw-p 00000000 00:00 0
2b206105d000-2b2061073000 r-xp 00000000 00:1d 13278216 /data/data020/JPSS_AIT/ADL_Versions/Production_ADL/CSPP/common/local/lib/libz.so.1.2.7
2b2061073000-2b2061272000 ---p 00016000 00:1d 13278216 /data/data020/JPSS_AIT/ADL_Versions/Production_ADL/CSPP/common/local/lib/libz.so.1.2.7
2b2061272000-2b2061273000 rw-p 00015000 00:1d 13278216 /data/data020/JPSS_AIT/ADL_Versions/Production_ADL/CSPP/common/local/lib/libz.so.1.2.7
2b2061288000-2b206128a000 rw-p 00000000 00:00 0
2b206128a000-2b20612d9000 r-xp 00000000 00:1d 13276936 /data/data020/JPSS_AIT/ADL_Versions/Production_ADL/CSPP/common/local/lib/liblog4cplus.so.2.0.0
2b20612d9000-2b20614d9000 ---p 0004f000 00:1d 13276936 /data/data020/JPSS_AIT/ADL_Versions/Production_ADL/CSPP/common/local/lib/liblog4cplus.so.2.0.0
2b20614d9000-2b20614dd000 rw-p 0004f000 00:1d 13276936 /data/data020/JPSS_AIT/ADL_Versions/Production_ADL/CSPP/common/local/lib/liblog4cplus.so.2.0.0
It appears to be our changes in the VIIRS_AOT_IP_Heap.xml file caused the problem.
Any hints on where we might set things wrong or there are any other files we should make changes to? I used to add a new QF bit successfully in the past without seeing such kind of errors. But has no luck this time, although the outputs seem fine.
Thanks a lot! Any kind feedback or guidance will be sincerely appreciated!
Jingfeng