Program crashes before main.cpp



  • Hello!

    I have a piece of software written by a third party and I am trying to compile it on my machine.
    When I run in either Debug or Release mode, I get the error "The program has unexpectedly finished."
    When I enter the debugger and start debugging, it SIGSEGV faults in the Disassembler. The Disassembler code is as follows, with the offending line set off by asteriks:

    0x7fffec164590                   b3 00                 mov    $0x0,%bl
    0x7fffec164592                   00 00                 add    %al,(%rax)
    0x7fffec164594                   00 00                 add    %al,(%rax)
    0x7fffec164596                   c6 05 93 ef b3 00 00  movb   $0x0,0xb3ef93(%rip)        # 0x7fffecca3530
    0x7fffec16459d                   48 89 05 94 ef b3 00  mov    %rax,0xb3ef94(%rip)        # 0x7fffecca3538
    *****0x7fffec1645a4                   f0 ff 00              lock incl (%rax)*****
    0x7fffec1645a7                   0f 95 c2              setne  %dl
    0x7fffec1645aa                   f0 ff 0f              lock decl (%rdi)
    0x7fffec1645ad                   0f 95 c0              setne  %al
    0x7fffec1645b0                   84 c0                 test   %al,%al
    0x7fffec1645b2                   74 1e                 je     0x7fffec1645d2
    0x7fffec1645b4                   48 8d 15 c5 99 b3 00  lea    0xb399c5(%rip),%rdx        # 0x7fffecc9df80
    0x7fffec1645bb                   48 8d 35 5e ef b3 00  lea    0xb3ef5e(%rip),%rsi        # 0x7fffecca3520
    0x7fffec1645c2                   48 8d 3d a7 19 1b 00  lea    0x1b19a7(%rip),%rdi        # 0x7fffec315f70
    0x7fffec1645c9                   48 83 c4 08           add    $0x8,%rsp
    0x7fffec1645cd                   e9 8e db ff ff        jmpq   0x7fffec162160 <__cxa_atexit@plt>
    0x7fffec1645d2                   e8 a9 ed ff ff        callq  0x7fffec163380 <_ZN7QString4freeEPNS_4DataE@plt>
    0x7fffec1645d7                   eb db                 jmp    0x7fffec1645b4
    0x7fffec1645d9                   0f 1f 80 00 00 00 00  nopl   0x0(%rax)
    0x7fffec1645e0                   48 83 ec 08           sub    $0x8,%rsp
    0x7fffec1645e4                   8b 05 82 ef b3 00     mov    0xb3ef82(%rip),%eax        # 0x7fffecca356c
    0x7fffec1645ea                   85 c0                 test   %eax,%eax
    0x7fffec1645ec                   75 16                 jne    0x7fffec164604
    0x7fffec1645ee                   48 8d 3d e9 6a 6d 00  lea    0x6d6ae9(%rip),%rdi        # 0x7fffec83b0de
    0x7fffec1645f5                   48 83 ce ff           or     $0xffffffffffffffff,%rsi
    0x7fffec1645f9                   e8 a2 f7 1d 00        callq  0x7fffec343da0
    0x7fffec1645fe                   89 05 68 ef b3 00     mov    %eax,0xb3ef68(%rip)        # 0x7fffecca356c
    0x7fffec164604                   48 8d 3d d3 6a 6d 00  lea    0x6d6ad3(%rip),%rdi        # 0x7fffec83b0de
    
    

    Any help getting this to run would be most gratefully accepted. Running Ubuntu 16.04, Qt 5.7

    mar0029


  • Lifetime Qt Champion

    Hi,

    Since you have a debug build, can you use that one to generate a stack trace ?



  • I can get a stack trace. Picture is here http://imgur.com/31AV4r0
    tried using the embed image button but I couldn't get it to work.



  • I did an objdump of my executable and searched the output for the offending line and could not find it. I found one similar but that doesn't mean anything.



  • from here found some pertinent information. I am not running on Arch however.
    Did a ldd of the exe and found both qt4 and qt5 libraries being used. Not sure if this helps.


  • Lifetime Qt Champion

    It sure helps, you have found your problem: two different versions of Qt being loaded at the same time.

    What part of Qt 4 is getting loaded ?



  • If all qt5 libraries look like libQt5XXX.so.... and all others are qt4 libraries, then it looks like i'm pulling the Svg, OpenGL, Gui, and Core qt libraries. below is the ldd of the executable:

            linux-vdso.so.1 =>  (0x00007fff56378000)
            libqwt.so.6 => /usr/local/qwt-6.1.2/lib/libqwt.so.6 (0x00007f9b9684c000)
            libopencv_core.so.3.1 => /usr/local/lib/libopencv_core.so.3.1 (0x00007f9b95b0a000)
            libopencv_imgproc.so.3.1 => /usr/local/lib/libopencv_imgproc.so.3.1 (0x00007f9b940bb000)
            libopencv_videoio.so.3.1 => /usr/local/lib/libopencv_videoio.so.3.1 (0x00007f9b93e86000)
            libopencv_imgcodecs.so.3.1 => /usr/local/lib/libopencv_imgcodecs.so.3.1 (0x00007f9b93c44000)
            libcyusb.so => /usr/local/lib/libcyusb.so (0x00007f9b93a3d000)
            libQt5Widgets.so.5 => /home/sslt/Qt/5.7/gcc_64/lib/libQt5Widgets.so.5 (0x00007f9b931ed000)
            libQt5Gui.so.5 => /home/sslt/Qt/5.7/gcc_64/lib/libQt5Gui.so.5 (0x00007f9b92a45000)
            libQt5Core.so.5 => /home/sslt/Qt/5.7/gcc_64/lib/libQt5Core.so.5 (0x00007f9b9232a000)
            libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9b91fd7000)
            libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9b91cd1000)
            libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9b91aba000)
            libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9b916f4000)
            libQtSvg.so.4 => /usr/lib/x86_64-linux-gnu/libQtSvg.so.4 (0x00007f9b9149d000)
            libQtOpenGL.so.4 => /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4 (0x00007f9b9119f000)
            libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (0x00007f9b904eb000)
            libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (0x00007f9b90006000)
            libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f9b8fded000)
            libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9b8fbe8000)
            libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9b8f9ca000)
            librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9b8f7c2000)
            libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f9b8f55b000)
            libtbb.so.2 => /usr/lib64/libtbb.so.2 (0x00007f9b8f327000)
            libdc1394.so.22 => /usr/lib/x86_64-linux-gnu/libdc1394.so.22 (0x00007f9b8f0b3000)
            libxine.so.2 => /usr/lib64/libxine.so.2 (0x00007f9b8ee45000)
            libv4l1.so.0 => /usr/lib/x86_64-linux-gnu/libv4l1.so.0 (0x00007f9b8ec3f000)
            libv4l2.so.0 => /usr/lib/x86_64-linux-gnu/libv4l2.so.0 (0x00007f9b8ea31000)
            libavcodec.so.54 => /usr/lib/x86_64-linux-gnu/libavcodec.so.54 (0x00007f9b8dcdb000)
            libavformat.so.54 => /usr/lib/x86_64-linux-gnu/libavformat.so.54 (0x00007f9b8d9b9000)
            libavutil.so.52 => /usr/lib/x86_64-linux-gnu/libavutil.so.52 (0x00007f9b8d794000)
            libswscale.so.2 => /usr/lib/x86_64-linux-gnu/libswscale.so.2 (0x00007f9b8d54c000)
            libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f9b8d2f7000)
            libwebp.so.5 => /usr/lib/x86_64-linux-gnu/libwebp.so.5 (0x00007f9b8d09f000)
            libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f9b8ce78000)
            libtiff.so.5 => /usr/lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f9b8cc06000)
            libjasper.so.1 => /usr/lib/x86_64-linux-gnu/libjasper.so.1 (0x00007f9b8c9af000)
            libIlmImf.so.6 => /usr/lib/x86_64-linux-gnu/libIlmImf.so.6 (0x00007f9b8c6ff000)
            libHalf.so.6 => /usr/lib/x86_64-linux-gnu/libHalf.so.6 (0x00007f9b8c4bc000)
            libgdal.so.1 => /usr/lib64/libgdal.so.1 (0x00007f9b8b765000)
            libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007f9b8b54d000)
            libicui18n.so.56 => /home/sslt/Qt/5.7/gcc_64/lib/libicui18n.so.56 (0x00007f9b8b0b3000)
            libicuuc.so.56 => /home/sslt/Qt/5.7/gcc_64/lib/libicuuc.so.56 (0x00007f9b8acfa000)
            libicudata.so.56 => /home/sslt/Qt/5.7/gcc_64/lib/libicudata.so.56 (0x00007f9b89317000)
            libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f9b89115000)
            libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f9b88e0c000)
            /lib64/ld-linux-x86-64.so.2 (0x0000556914717000)
            libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f9b88b69000)
            libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f9b8895e000)
            libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f9b88629000)
            libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f9b883ed000)
            libaudio.so.2 => /usr/lib/x86_64-linux-gnu/libaudio.so.2 (0x00007f9b881d4000)
            libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f9b87f83000)
            libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f9b87d7b000)
            libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f9b87b5e000)
            libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f9b8794e000)
            libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f9b8773c000)
            libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f9b87514000)
            libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f9b87311000)
            libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f9b8710a000)
            libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f9b86f08000)
            libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f9b86cf1000)
            libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f9b86aeb000)
            libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f9b868e8000)
            libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f9b866e5000)
            libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f9b864de000)
            libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f9b862bf000)
            libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f9b860bd000)
            libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f9b85eb6000)
            libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f9b85ca8000)
            libraw1394.so.11 => /usr/lib/x86_64-linux-gnu/libraw1394.so.11 (0x00007f9b85a99000)
            libv4lconvert.so.0 => /usr/lib/x86_64-linux-gnu/libv4lconvert.so.0 (0x00007f9b85820000)
            libxvidcore.so.4 => /usr/lib/x86_64-linux-gnu/libxvidcore.so.4 (0x00007f9b854e1000)
            libx264.so.142 => /usr/lib/x86_64-linux-gnu/libx264.so.142 (0x00007f9b8514b000)
            libvpx.so.1 => /usr/lib/x86_64-linux-gnu/libvpx.so.1 (0x00007f9b84d6c000)
            libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f9b8489c000)
            libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f9b8466f000)
            libtheoraenc.so.1 => /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1 (0x00007f9b8442f000)
            libtheoradec.so.1 => /usr/lib/x86_64-linux-gnu/libtheoradec.so.1 (0x00007f9b84215000)
            libspeex.so.1 => /usr/lib/x86_64-linux-gnu/libspeex.so.1 (0x00007f9b83ffc000)
            libschroedinger-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libschroedinger-1.0.so.0 (0x00007f9b83d38000)
            libopus.so.0 => /usr/lib/x86_64-linux-gnu/libopus.so.0 (0x00007f9b83aef000)
            libopenjpeg.so.2 => /usr/lib/x86_64-linux-gnu/libopenjpeg.so.2 (0x00007f9b838cd000)
            libmp3lame.so.0 => /usr/lib/x86_64-linux-gnu/libmp3lame.so.0 (0x00007f9b83640000)
            libgsm.so.1 => /usr/lib/x86_64-linux-gnu/libgsm.so.1 (0x00007f9b83431000)
            libva.so.1 => /usr/lib/x86_64-linux-gnu/libva.so.1 (0x00007f9b8321b000)
            librtmp.so.0 => /usr/lib/x86_64-linux-gnu/librtmp.so.0 (0x00007f9b83001000)
            libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007f9b82d42000)
            libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f9b82b32000)
            liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f9b8290f000)
            libjbig.so.0 => /usr/lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f9b82701000)
            libIex.so.6 => /usr/lib/x86_64-linux-gnu/libIex.so.6 (0x00007f9b824e3000)
            libIlmThread.so.6 => /usr/lib/x86_64-linux-gnu/libIlmThread.so.6 (0x00007f9b822dc000)
            libarmadillo.so.4 => /usr/lib64/libarmadillo.so.4 (0x00007f9b820d5000)
            libproj.so.0 => /usr/lib64/libproj.so.0 (0x00007f9b81e83000)
            libpoppler.so.44 => /usr/lib/x86_64-linux-gnu/libpoppler.so.44 (0x00007f9b81a26000)
            libfreexl.so.1 => /usr/lib/x86_64-linux-gnu/libfreexl.so.1 (0x00007f9b8181c000)
            libgeos_c.so.1 => /usr/lib64/libgeos_c.so.1 (0x00007f9b815f8000)
            libepsilon.so.1 => /usr/lib/x86_64-linux-gnu/libepsilon.so.1 (0x00007f9b813df000)
            libodbc.so.1 => /usr/lib/x86_64-linux-gnu/libodbc.so.1 (0x00007f9b81178000)
            libodbcinst.so.1 => /usr/lib/x86_64-linux-gnu/libodbcinst.so.1 (0x00007f9b80f66000)
            libkmldom.so.0 => /usr/lib/x86_64-linux-gnu/libkmldom.so.0 (0x00007f9b80cbc000)
            libkmlbase.so.0 => /usr/lib/x86_64-linux-gnu/libkmlbase.so.0 (0x00007f9b80aa6000)
            libkmlengine.so.0 => /usr/lib/x86_64-linux-gnu/libkmlengine.so.0 (0x00007f9b80872000)
            libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f9b80647000)
            libxerces-c-3.1.so => /usr/lib/x86_64-linux-gnu/libxerces-c-3.1.so (0x00007f9b800bf000)
            libnetcdf.so.7 => /usr/lib64/libnetcdf.so.7 (0x00007f9b7fd82000)
            libhdf5.so.7 => /usr/lib/x86_64-linux-gnu/libhdf5.so.7 (0x00007f9b7f8e5000)
            libmfhdfalt.so.0 => /usr/lib64/libmfhdfalt.so.0 (0x00007f9b7f6b4000)
            libdfalt.so.0 => /usr/lib64/libdfalt.so.0 (0x00007f9b7f3ce000)
            libogdi.so.3.2 => /usr/lib64/libogdi.so.3.2 (0x00007f9b7f1ac000)
            libgif.so.4 => /usr/lib/x86_64-linux-gnu/libgif.so.4 (0x00007f9b7efa3000)
            libpq.so.5 => /usr/lib64/libpq.so.5 (0x00007f9b7ed74000)
            libdapclient.so.3 => /usr/lib/x86_64-linux-gnu/libdapclient.so.3 (0x00007f9b7eb3c000)
            libdap.so.11 => /usr/lib/x86_64-linux-gnu/libdap.so.11 (0x00007f9b7e856000)
            libspatialite.so.5 => /usr/lib/x86_64-linux-gnu/libspatialite.so.5 (0x00007f9b7e25a000)
            libcurl-gnutls.so.4 => /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 (0x00007f9b7dff7000)
            libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f9b7dc90000)
            libmysqlclient.so.18 => /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 (0x00007f9b7d757000)
            libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f9b7d545000)
            libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f9b7d307000)
            libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007f9b7d0a0000)
            libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f9b7ce9c000)
            libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f9b7cc94000)
            libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f9b7ca8e000)
            libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f9b7c888000)
            libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007f9b7c67e000)
            liborc-0.4.so.0 => /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0 (0x00007f9b7c3fc000)
            libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007f9b7c17b000)
            libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f9b7bf67000)
            libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f9b7bd25000)
            libblas.so.3 => /usr/lib64/libblas.so.3 (0x00007f9b7baa7000)
            liblapack.so.3 => /usr/lib64/liblapack.so.3 (0x00007f9b7b30b000)
            libarpack.so.2 => /usr/lib64/libarpack.so.2 (0x00007f9b7b0bd000)
            liblcms2.so.2 => /usr/lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007f9b7ae67000)
            libgeos-3.4.2.so => /usr/lib64/libgeos-3.4.2.so (0x00007f9b7aae3000)
            libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f9b7a8d8000)
            liburiparser.so.1 => /usr/lib64/liburiparser.so.1 (0x00007f9b7a6be000)
            libminizip.so.0 => /usr/lib/x86_64-linux-gnu/libminizip.so.0 (0x00007f9b7a4b6000)
            libhdf5_hl.so.7 => /usr/lib/x86_64-linux-gnu/libhdf5_hl.so.7 (0x00007f9b7a285000)
            libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f9b7a026000)
            libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f9b79c49000)
            libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f9b7997e000)
            libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f9b7977a000)
            libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f9b79532000)
            libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f9b792e1000)
            libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f9b79027000)
            libidn.so.11 => /usr/lib/x86_64-linux-gnu/libidn.so.11 (0x00007f9b78df4000)
            liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f9b78be5000)
            libcgmanager.so.0 => /lib/x86_64-linux-gnu/libcgmanager.so.0 (0x00007f9b789c9000)
            libnih.so.1 => /lib/x86_64-linux-gnu/libnih.so.1 (0x00007f9b787b1000)
            libnih-dbus.so.1 => /lib/x86_64-linux-gnu/libnih-dbus.so.1 (0x00007f9b785a6000)
            libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f9b78361000)
            libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f9b7815b000)
            libgfortran.so.3 => /usr/lib/x86_64-linux-gnu/libgfortran.so.3 (0x00007f9b77e34000)
            libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f9b77c04000)
            libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f9b779f9000)
            libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f9b777f5000)
            libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f9b775d9000)
            libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f9b773be000)
            libgssapi.so.3 => /usr/lib/x86_64-linux-gnu/libgssapi.so.3 (0x00007f9b77180000)
            libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007f9b76f40000)
            libheimntlm.so.0 => /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 (0x00007f9b76d37000)
            libkrb5.so.26 => /usr/lib/x86_64-linux-gnu/libkrb5.so.26 (0x00007f9b76aae000)
            libasn1.so.8 => /usr/lib/x86_64-linux-gnu/libasn1.so.8 (0x00007f9b7680d000)
            libhcrypto.so.4 => /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 (0x00007f9b765da000)
            libroken.so.18 => /usr/lib/x86_64-linux-gnu/libroken.so.18 (0x00007f9b763c4000)
            libwind.so.0 => /usr/lib/x86_64-linux-gnu/libwind.so.0 (0x00007f9b7619b000)
            libheimbase.so.1 => /usr/lib/x86_64-linux-gnu/libheimbase.so.1 (0x00007f9b75f8d000)
            libhx509.so.5 => /usr/lib/x86_64-linux-gnu/libhx509.so.5 (0x00007f9b75d43000)
            libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f9b75b0a000)
    
    


  • I am using some third party libraries that may or may not have been built with qt4. Should these be rebuilt?


  • Qt Champions 2016

    @mar0029 said in Program crashes before main.cpp:

    I am using some third party libraries that may or may not have been built with qt4. Should these be rebuilt?

    If your main app uses this libs. then most likely yes :) Unless there is good match between the Qt version used to create the app and the
    version used to build the libs. Qt5 and Qt4 would be no good. Too huge version diff.



  • @mrjj
    I am using qwt libraries. Did a ldd and the same qt4 libraries along with other similar libraries as the app appeared.
    Looked in Makefile for qwt under ../qwt-6.1.3/src and found linker options to all qt4 libraries. Also with qt4's qmake.



  • Trying solution to build qwt with Qt5 located here



  • That was it!

    Thank you @mrjj and @SGaist for your help, also to @Wieland for your post on building qwt for qt5


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.