monteverdi crashes
Mantis Issue 1461, reported by sdinot, assigned to gpasero, created: 2017-10-10
I've compiled OTB 6.2.0-rc1 from source with qt 4.8.7 and qwt 6.1.3
Every time I launch monteverdi it crashes with an invalid pointer: e.g. *** Error in `monteverdi': realloc(): invalid pointer: 0x00007fcf243980e0 ***
So I've created a debug build (CMake summary: https://pastebin.com/yKbxdRUH), but I couldn't trace anything with gdb. But systemd recorded the coredump:
Process 24370 (monteverdi) of user 1000 dumped core.
Stack trace of thread 24370: #0 0x00007eff702268a0 raise (libc.so.6) #1 (closed) 0x00007eff70227f09 abort (libc.so.6) #2 (closed) 0x00007eff70269517 __libc_message (libc.so.6) #3 (closed) 0x00007eff7026fc84 malloc_printerr (libc.so.6) #4 (closed) 0x00007eff70275331 realloc (libc.so.6) #5 (closed) 0x00007eff666689e3 _ZN9QListData12realloc_growEi (libQt5Core.so.5) #6 (closed) 0x00007eff66668a80 _ZN9QListData6appendEi (libQt5Core.so.5) #7 (closed) 0x00007eff667398e9 n/a (libQt5Core.so.5) #8 (closed) 0x00007eff667350b6 Z21qRegisterResourceDataiPKhS0_S0 (libQt5Core.so.5) #9 (closed) 0x00007eff665e65b4 n/a (libQt5Core.so.5) #10 (closed) 0x00007eff725e957a n/a (n/a)
So does it mean, that Monteverdi is linked to Qt5, despite being compiled with Qt4?
The otbgui_ and otbcli_ modules run without any problems.
1507706452 - rashadkm> The otbgui_ and otbcli_ modules run without any problems.
So look at qwt. /usr/lib/libqwt.so. I guess this is linked with qt5 and hence the crash.
you can try to get a qwt package that link with qt4 or build own qwt6 again system qt4.
1507711074 - gpaseroAs Rashad said, it seems that your Qwt6 library links to Qt5. When compiling Qwt6 you have to use the right 'qmake' executable (4.8.7).
Otherwise, you may also use binary packages available (https://www.orfeo-toolbox.org/packages/nightly/latest/OTB-6.2.0-Linux64.run).
1508311490 - gpaseroAny clue when looking at your QWT build ?
1516011707 - gpaseroNo feedback, closing the issue. Explanation found is likely the right one.