[Qgis-user] Qgis failed to startup

Richard Duivenvoorde richard at duif.net
Mon Jun 27 11:59:40 PDT 2016


Hi Christophe,

forwarding to dev list...

But do I see:
libQt5Widgets.so.5 ??

Are you aware that you are using Qt5.
Because building that is still experimental (but could be ok if you know
what you are doing).

Better to remove all the Qt5 stuff, and be sure that all your paths
point to the Qt4 versions of the libraries!
I think you mixup Qt4 and Qt5 versions of libs...

FYI, on Debian I start ccmake .. with the following:

# master
ccmake -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_INSTALL_PREFIX=/home/richard/apps/qgis/master/debug
-DWITH_INTERNAL_QWTPOLAR=ON -DWITH_SERVER=TRUE -DBUILD_TESTING=FALSE ..

Regards,

Richard Duivenvoorde


On 27-06-16 18:05, christoph wrote:
> Hello,
> 
> I tried what you told me,
> 
> this is what I get!
> 
> but I cannot get any good out of it!
> 
> What is A CRC mismatch?
> 
> christoph at excelsior:~/myworld/QGIS/cmake_qgis/output/bin$ source
> /home/christoph/myworld/sharedsourcen/gislibs.sh
> christoph at excelsior:~/myworld/QGIS/cmake_qgis/output/bin$ sudo ldconfig
> [sudo] password for christoph:
> christoph at excelsior:~/myworld/QGIS/cmake_qgis/output/bin$ gdb ./qgis
> GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
> Copyright (C) 2014 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from ./qgis...(no debugging symbols found)...done.
> (gdb) run
> Starting program: /home/christoph/myworld/QGIS/cmake_qgis/output/bin/qgis
> warning: the debug information found in "/lib64/ld-2.19.so" does not
> match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).
> 
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> 
> Program received signal SIGSEGV, Segmentation fault.
> __memcpy_sse2_unaligned () at
> ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:158
> 158    ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Datei oder
> Verzeichnis nicht gefunden.
> (gdb) bt
> #0  __memcpy_sse2_unaligned () at
> ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:158
> #1  0x00007ffff47ab56c in memcpy (__len=8, __src=0x7fffeca60400,
> __dest=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/string3.h:51
> #2  QByteArray::append (this=0x7fffffffcc30, str=0x7fffeca60400
> "QWidget") at tools/qbytearray.cpp:1651
> #3  0x00007fffec71d186 in ?? () from
> /home/christoph/myworld/qt-everywhere-opensource-src-5.6.0/build/lib/libQt5Widgets.so.5
> 
> #4  0x00007ffff7dea9ba in call_init (l=<optimized out>,
> argc=argc at entry=1, argv=argv at entry=0x7fffffffccd8,
> env=env at entry=0x7fffffffcce8) at dl-init.c:78
> #5  0x00007ffff7deaaa3 in call_init (env=0x7fffffffcce8,
> argv=0x7fffffffccd8, argc=1, l=<optimized out>) at dl-init.c:36
> #6  _dl_init (main_map=0x7ffff7ffe1a8, argc=1, argv=0x7fffffffccd8,
> env=0x7fffffffcce8) at dl-init.c:126
> #7  0x00007ffff7ddd1ca in _dl_start_user () from
> /lib64/ld-linux-x86-64.so.2
> #8  0x0000000000000001 in ?? ()
> #9  0x00007fffffffcfb3 in ?? ()
> #10 0x0000000000000000 in ?? ()
> 
> On 2016-06-14 09:32, Richard Duivenvoorde wrote:
>> On 14-06-16 09:23, christoph wrote:
>>> Hi, Richard,
>>> yes I did all what you described,
>>> but still no clue why I get the error!
>>> All that is in my home directory.
>> I sometimes use 'strace' to see what happens when something stops.
>>
>> So: try to build with debug info, that is use: -DCMAKE_BUILD_TYPE=Debug
>> or set it to Debug in ccmake..
>>
>> export de LD_LIBRARY_PATH (as in your script)
>> And then
>> strace <path to qgis>
>> Maybe the segfault on the end reveals more info.
>>
>> And if that fails, install gdb, and learn how to show stacktrace with
>> that....
>> In short:
>> gdb qgis
>> (gdb) run
>> then after crash call backtrace:
>> (gdb) bt
>>
>> Hope this helps
>>
>> Richard
> 
> 




More information about the Qgis-user mailing list