Crash of new otbApplications
Mantis Issue 457, reported by smay, assigned to jmalik, created: 2012-01-05
The launch of applications causes the following crash. In Qt Applications, Qt window is created. Crash occures after click on Quit button. Occures on all wrapped applications.
$ otbcli_Convert
ERROR: Waiting for at least one parameter...
====================== HELP CONTEXT ====================== NAME: Convert DESCRIPTION: Convert an image to a different format, eventually rescaling the data and/or changing the pixel type. EXAMPLE OF USE: otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uchar -type linear
DOCUMENTATION: http://www.orfeo-toolbox.org/Applications/Convert.html
======================= PARAMETERS =======================
-progress Report progress
MISSING -in Input image
-type Rescale type [none/linear/log2]
MISSING -out [pixel] Output Image [pixel=uint8/int8/uint16/int16/uint32/int32/float/double]
-ram Available RAM
*** glibc detected *** /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_BIN/bin/otbApplicationLauncherCommandLine: double free or corruption (!prev): 0x000000000125d650 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7f85238d15b6]
/lib/libc.so.6(cfree+0x73)[0x7f85238d7e83]
/usr/lib/nvidia-current/tls/libnvidia-tls.so.1(+0xa6b)[0x7f852f86ca6b]
======= Memory map: ========
00400000-00403000 r-xp 00000000 08:07 1681803451 /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_BIN/bin/otbApplicationLauncherCommandLine
00602000-00603000 r--p 00002000 08:07 1681803451 /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_BIN/bin/otbApplicationLauncherCommandLine
00603000-00604000 rw-p 00003000 08:07 1681803451 /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_BIN/bin/otbApplicationLauncherCommandLine
011b0000-0139b000 rw-p 00000000 00:00 0 [heap]
33fc800000-33fc820000 r-xp 00000000 08:07 1628467937 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libpq.so.4
33fc820000-33fca20000 ---p 00020000 08:07 1628467937 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libpq.so.4
33fca20000-33fca22000 rw-p 00020000 08:07 1628467937 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libpq.so.4
33ff800000-33ff820000 r-xp 00000000 08:07 1628467916 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libexpat.so.0
33ff820000-33ffa1f000 ---p 00020000 08:07 1628467916 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libexpat.so.0
33ffa1f000-33ffa22000 rw-p 0001f000 08:07 1628467916 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libexpat.so.0
3407200000-3407325000 r-xp 00000000 08:07 1631776104 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libcrypto.so.6
3407325000-3407524000 ---p 00125000 08:07 1631776104 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libcrypto.so.6
3407524000-3407543000 rw-p 00124000 08:07 1631776104 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libcrypto.so.6
3407543000-3407547000 rw-p 00000000 00:00 0
3408e00000-3408e43000 r-xp 00000000 08:07 1631776105 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libssl.so.6
3408e43000-3409043000 ---p 00043000 08:07 1631776105 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libssl.so.6
3409043000-3409049000 rw-p 00043000 08:07 1631776105 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libssl.so.6
3413600000-341360d000 r-xp 00000000 08:07 1956155948 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/liblber-2.3.so.0
341360d000-341380d000 ---p 0000d000 08:07 1956155948 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/liblber-2.3.so.0
341380d000-341380e000 rw-p 0000d000 08:07 1956155948 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/liblber-2.3.so.0
3414e00000-3414e38000 r-xp 00000000 08:07 1952484724 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libldap-2.3.so.0
3414e38000-3415038000 ---p 00038000 08:07 1952484724 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libldap-2.3.so.0
3415038000-341503a000 rw-p 00038000 08:07 1952484724 /home2/steph/PROGR/program1/outils_communs_64/BIBEXT/LIBEXTRA/x86_64_64/libldap-2.3.so.0
7f84fc000000-7f84fc021000 rw-p 00000000 00:00 0
7f84fc021000-7f8500000000 ---p 00000000 00:00 0
7f850119b000-7f85011ff000 r-xp 00000000 08:07 49316223 /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_CMK/bin/libOTBWrapperQtWidget.so.3.11.0
7f85011ff000-7f85013ff000 ---p 00064000 08:07 49316223 /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_CMK/bin/libOTBWrapperQtWidget.so.3.11.0
7f85013ff000-7f8501405000 r--p 00064000 08:07 49316223 /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_CMK/bin/libOTBWrapperQtWidget.so.3.11.0
7f8501405000-7f8501406000 rw-p 0006a000 08:07 49316223 /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_CMK/bin/libOTBWrapperQtWidget.so.3.11.0
7f8501406000-7f8501409000 rw-p 00000000 00:00 0
7f8507adf000-7f8507b4f000 r-xp 00000000 08:07 47643457 /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_CMK/bin/libotbApplicationJava.so
7f8507b4f000-7f8507d4f000 ---p 00070000 08:07 47643457 /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_CMK/bin/libotbApplicationJava.so
7f8507d4f000-7f8507d50000 r--p 00070000 08:07 47643457 /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_CMK/bin/libotbApplicationJava.so
7f8507d50000-7f8507d51000 rw-p 00071000 08:07 47643457 /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_CMK/bin/libotbApplicationJava.so
7f8507d51000-7f8507d69000 r-xp 00000000 08:07 47643449 /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_CMK/bin/libOTBWrapperCommandLine.so.3.11.0/home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_BIN/bin/otbcli: line 35: 23938 Abandon OTB_CLI_LAUNCHER "
@"
Happened on development version OTB 19/12/2011.
1325761464 - julienmI can reproduce it with an installation tree. Running from the build tree does not show the problem.
1325761581 - julienmStéphane, this is strange that libotbApplicationJava.so appears in the output. I don't see any reason for it.
1325762993 - stephaneTo help, ldd on the launcher. No link with Java shared lib. I will check. ldd otbApplicationLauncherCommandLine
linux-vdso.so.1 => (0x00007fff3edf9000)
libOTBWrapperCommandLine.so.3.11 => /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_BIN/lib/otb/libOTBWrapperCommandLine.so.3.11 (0x00007f76524d4000)
libOTBApplicationEngine.so.3.11 => /home2/steph/PROGR/prog_home2/OTB_dev_home2bis/OTB_BIN/lib/otb/libOTBApplicationEngine.so.3.11 (0x00007f76518b7000)
libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x00007f7650bf8000)
libpng12.so.0 => /lib/libpng12.so.0 (0x00007f76509d0000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f76507c7000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f76505ac000)
libXrender.so.1 => /usr/lib/li