Summary: | sci-geosciences/qgis-2.18.7: QGIS died on signal 11 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ervin Peters <ervin.peters> |
Component: | Current packages | Assignee: | Sci-geo Project <sci-geosciences> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | tb |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
strace outbput
LOG: export LD_PRELOAD=/usr/lib64/qt4/libQtCore.so.4; qgis |
Description
Ervin Peters
2017-04-25 20:00:10 UTC
I get the same segfaulting with 2.18.7 (and 2.18.6): https://bugs.gentoo.org/show_bug.cgi?id=612070 2.18.3-r1 (stable) and 2.18.4-r1 (not available anymore in tree) worked for me. Did you remove/rename the ~/.qgis/ folder and the ~/.config/QGIS folder ? Same after deleting ~/.qgis2 and ~/.config/QGIS. ervin Thanks. I had never removed ~/.config/QGIS and thought it may be referencing something but the crash seems too early for that anyways. starting qgis in gdb gives: (gdb) run Starting program: /usr/bin/qgis [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7fffd6d96700 (LWP 2205)] [New Thread 0x7fffcd9a1700 (LWP 2206)] [New Thread 0x7fffcd1a0700 (LWP 2207)] Warning: loading of qt translation failed [/usr/share/qt5/translations/qt_de_DE] [New Thread 0x7fffc695f700 (LWP 2208)] [New Thread 0x7fffc5f53700 (LWP 2210)] [New Thread 0x7fffc48ce700 (LWP 2211)] Warning: QCss::Parser - Failed to load file "/style.qss" Warning: inotify_add_watch("/home/peters/.qgis2//project_templates") failed: "No such file or directory" [New Thread 0x7fffb37a4700 (LWP 2213)] [New Thread 0x7fff72e9f700 (LWP 2214)] [New Thread 0x7fff7269e700 (LWP 2215)] [New Thread 0x7fff71e9d700 (LWP 2216)] [New Thread 0x7fff7169c700 (LWP 2217)] Warning: QLayout: Attempting to add QLayout "" to QgsPanelWidgetStack "mWidgetStack", which already has a layout [New Thread 0x7fff709dd700 (LWP 2218)] [New Thread 0x7fff5bfff700 (LWP 2219)] Program received signal SIGSEGV, Segmentation fault. 0x00007fff4face992 in ?? () from /usr/lib64/python2.7/site-packages/PyQt4/QtCore.so It seems to me that something's wrong with python and QT. Yes, we have the same problem with qtcore. In gdb, after the segfault, could you please type "bt" (backtrace) and paste the result ? This is just for a more complete record. (In reply to Andreas Plesch from comment #6) > Yes, we have the same problem with qtcore. > > In gdb, after the segfault, could you please type "bt" (backtrace) and paste > the result ? This is just for a more complete record. He you are: ---------------8<------------ peters@muli ~ $ gdb /usr/bin/qgis GNU gdb (Gentoo 7.10.1 vanilla) 7.10.1 Copyright (C) 2015 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-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://bugs.gentoo.org/>. 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 /usr/bin/qgis...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/qgis [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7fffd6d96700 (LWP 10168)] [New Thread 0x7fffcd9a1700 (LWP 10170)] [New Thread 0x7fffcd1a0700 (LWP 10171)] Warning: loading of qt translation failed [/usr/share/qt5/translations/qt_de_DE] [New Thread 0x7fffc695f700 (LWP 10172)] [New Thread 0x7fffc5f53700 (LWP 10173)] [New Thread 0x7fffc48ce700 (LWP 10175)] Warning: QCss::Parser - Failed to load file "/style.qss" Warning: inotify_add_watch("/home/peters/.qgis2//project_templates") failed: "No such file or directory" [New Thread 0x7fffb37a4700 (LWP 10177)] [New Thread 0x7fff72e9f700 (LWP 10178)] [New Thread 0x7fff7269e700 (LWP 10179)] [New Thread 0x7fff71e9d700 (LWP 10180)] [New Thread 0x7fff7169c700 (LWP 10181)] Warning: QLayout: Attempting to add QLayout "" to QgsPanelWidgetStack "mWidgetStack", which already has a layout [New Thread 0x7fff709dd700 (LWP 10182)] [New Thread 0x7fff5bfff700 (LWP 10183)] Program received signal SIGSEGV, Segmentation fault. 0x00007fff4facf992 in ?? () from /usr/lib64/python2.7/site-packages/PyQt4/QtCore.so (gdb) bt #0 0x00007fff4facf992 in ?? () from /usr/lib64/python2.7/site-packages/PyQt4/QtCore.so #1 0x00007ffff7de848a in ?? () from /lib64/ld-linux-x86-64.so.2 #2 0x00007ffff7de859b in ?? () from /lib64/ld-linux-x86-64.so.2 #3 0x00007ffff7decbb0 in ?? () from /lib64/ld-linux-x86-64.so.2 #4 0x00007ffff7de8334 in ?? () from /lib64/ld-linux-x86-64.so.2 #5 0x00007ffff7dec229 in ?? () from /lib64/ld-linux-x86-64.so.2 #6 0x00007fffecf70fd9 in ?? () from /lib64/libdl.so.2 #7 0x00007ffff7de8334 in ?? () from /lib64/ld-linux-x86-64.so.2 #8 0x00007fffecf71589 in ?? () from /lib64/libdl.so.2 #9 0x00007fffecf71071 in dlopen () from /lib64/libdl.so.2 #10 0x00007fff50602dae in _PyImport_GetDynLoadFunc () from /usr/lib64/libpython2.7.so.1.0 #11 0x00007fff505ea5be in _PyImport_LoadDynamicModule () from /usr/lib64/libpython2.7.so.1.0 #12 0x00007fff505e8670 in ?? () from /usr/lib64/libpython2.7.so.1.0 #13 0x00007fff505e8b98 in ?? () from /usr/lib64/libpython2.7.so.1.0 #14 0x00007fff505e93da in PyImport_ImportModuleLevel () from /usr/lib64/libpython2.7.so.1.0 #15 0x00007fff505cbd68 in ?? () from /usr/lib64/libpython2.7.so.1.0 #16 0x00007fff5053ad03 in PyObject_Call () from /usr/lib64/libpython2.7.so.1.0 #17 0x00007fff505cd997 in PyEval_CallObjectWithKeywords () from /usr/lib64/libpython2.7.so.1.0 #18 0x00007fff505d26c4 in PyEval_EvalFrameEx () from /usr/lib64/libpython2.7.so.1.0 #19 0x00007fff505d7864 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.7.so.1.0 #20 0x00007fff505d7989 in PyEval_EvalCode () from /usr/lib64/libpython2.7.so.1.0 #21 0x00007fff505f10cf in ?? () from /usr/lib64/libpython2.7.so.1.0 #22 0x00007fff505f1f64 in PyRun_StringFlags () from /usr/lib64/libpython2.7.so.1.0 #23 0x00007fff508d3bfa in ?? () from /usr/lib64/libqgispython.so.2.18.7 #24 0x00007fff508d5f36 in ?? () from /usr/lib64/libqgispython.so.2.18.7 #25 0x00007fff508d9a8f in ?? () from /usr/lib64/libqgispython.so.2.18.7 #26 0x00007fff508daf51 in ?? () from /usr/lib64/libqgispython.so.2.18.7 #27 0x00007ffff750c178 in QgisApp::loadPythonSupport() () from /usr/lib64/libqgis_app.so.2.18.7 #28 0x00007ffff750e51f in QgisApp::QgisApp(QSplashScreen*, bool, bool, QWidget*, QFlags<Qt::WindowType>) () from /usr/lib64/libqgis_app.so.2.18.7 #29 0x0000000000406b12 in ?? () #30 0x00007ffff4558790 in __libc_start_main () from /lib64/libc.so.6 #31 0x000000000040a329 in _start () ---------------8<---------------- ervin This does look exactly the same. There is something about our systems which triggers this. Perhaps compiler flags ? If you are interested you may be able to get more insight using strace. $ strace -h $ strace qgis Created attachment 472384 [details]
strace outbput
I tried:
peters@muli ~ $ strace -f -o qgis.txt qgis
Warning: loading of qt translation failed [/usr/share/qt5/translations/qt_de_DE]
Warning: QCss::Parser - Failed to load file "/style.qss"
Warning: inotify_add_watch("/home/peters/.qgis2//project_templates") failed: "No such file or directory"
Warning: QLayout: Attempting to add QLayout "" to QgsPanelWidgetStack "mWidgetStack", which already has a layout
QGIS died on signal 11warning: process 1683 is already traced by process 1681
ptrace: Die Operation ist nicht erlaubt.
No thread selected
No stack.
gdb returned 0
Abgebrochen (Speicherabzug geschrieben)
Not sure where 'gdb returned 0' is coming from. Did the output file qgis.txt contain anything ? (In reply to Andreas Plesch from comment #10) > Not sure where 'gdb returned 0' is coming from. Did the output file qgis.txt > contain anything ? 2.3Mb ;) But this seems relevant to me: 1191 stat("/usr/lib64/python2.7/site-packages/PyQt4/QtCore", 0x7ffff533c7d0) = -1 ENOENT (No such file or directory) 1191 open("/usr/lib64/python2.7/site-packages/PyQt4/QtCore.so", O_RDONLY) = 30 1191 fstat(30, {st_mode=S_IFREG|0644, st_size=2627648, ...}) = 0 1191 open("/usr/lib64/python2.7/site-packages/PyQt4/QtCore.so", O_RDONLY|O_CLOEXEC) = 31 1191 read(31, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\271\10\0\0\0\0\0"..., 832) = 832 1191 fstat(31, {st_mode=S_IFREG|0644, st_size=2627648, ...}) = 0 1191 mmap(NULL, 4726056, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 31, 0) = 0x7f2f06ad0000 1191 mprotect(0x7f2f06cf5000, 2093056, PROT_NONE) = 0 1191 mmap(0x7f2f06ef4000, 385024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 31, 0x224000) = 0x7f2f06ef4000 1191 close(31) = 0 1191 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 31 1191 fstat(31, {st_mode=S_IFREG|0644, st_size=330336, ...}) = 0 1191 mmap(NULL, 330336, PROT_READ, MAP_PRIVATE, 31, 0) = 0x7f2f1c116000 1191 close(31) = 0 1191 open("/usr/lib64/qt4/libQtCore.so.4", O_RDONLY|O_CLOEXEC) = 31 1191 read(31, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\10\7\0\0\0\0\0"..., 832) = 832 1191 fstat(31, {st_mode=S_IFREG|0755, st_size=3061656, ...}) = 0 1191 mmap(NULL, 5160024, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 31, 0) = 0x7f2f065e4000 1191 mprotect(0x7f2f068c4000, 2097152, PROT_NONE) = 0 1191 mmap(0x7f2f06ac4000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 31, 0x2e0000) = 0x7f2f06ac4000 1191 mmap(0x7f2f06acf000, 3160, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f2f06acf000 1191 close(31) = 0 1191 mprotect(0x7f2f06ac4000, 40960, PROT_READ) = 0 1191 mprotect(0x7f2f06ef4000, 16384, PROT_READ) = 0 1191 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0x7f2faebf2260} --- Can someone explain? After some googling I assume that maybe there are ABI conflict, related to the gcc upgrade in Kernel, glibc. I'll recompile them and try again. Yes, this does look like the relevant section before the crash. Let me see how this looks in the working 2.18.3 Qgis 2.18.3 loads QtCore.so.4 very early: 34 21076 open("/usr/lib64/qt4/libQtCore.so.4", O_RDONLY|O_CLOEXEC) = 3 35 21076 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3204\7\0\0\0\0\0"..., 832) = 832 36 21076 fstat(3, {st_mode=S_IFREG|0755, st_size=3073944, ...}) = 0 37 21076 mmap(NULL, 5172584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff24f889000 38 21076 mprotect(0x7ff24fb6b000, 2097152, PROT_NONE) = 0 39 21076 mmap(0x7ff24fd6b000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2e2000) = 0x7ff24fd6b000 40 21076 mmap(0x7ff24fd77000, 3432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff24fd77000 and then much later PyQt4/QtCore.so ... 21440 21076 open("/usr/lib64/python2.7/site-packages/PyQt4/__init__.pyc", O_RDONLY) = 20 21441 21076 fstat(20, {st_mode=S_IFREG|0644, st_size=139, ...}) = 0 21442 21076 read(20, "\3\363\r\n^\37aXc\0\0\0\0\0\0\0\0\1\0\0\0@\0\0\0s\4\0\0\0d\0"..., 4096) = 139 21443 21076 fstat(20, {st_mode=S_IFREG|0644, st_size=139, ...}) = 0 21444 21076 read(20, "", 4096) = 0 21445 21076 close(20) = 0 21446 21076 close(19) = 0 21447 21076 stat("/usr/lib64/python2.7/site-packages/PyQt4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 21448 21076 stat("/usr/lib64/python2.7/site-packages/PyQt4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 21449 21076 stat("/usr/lib64/python2.7/site-packages/PyQt4/QtCore", 0x7fff16ae2dc0) = -1 ENOENT (No such file or directory) 21450 21076 open("/usr/lib64/python2.7/site-packages/PyQt4/QtCore.so", O_RDONLY) = 19 21451 21076 fstat(19, {st_mode=S_IFREG|0644, st_size=2619296, ...}) = 0 21452 21076 open("/usr/lib64/python2.7/site-packages/PyQt4/QtCore.so", O_RDONLY|O_CLOEXEC) = 20 21453 21076 read(20, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\272\10\0\0\0\0\0"..., 832) = 832 21454 21076 fstat(20, {st_mode=S_IFREG|0644, st_size=2619296, ...}) = 0 21455 21076 mmap(NULL, 4717760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 20, 0) = 0x7ff1d1f7f000 21456 21076 mprotect(0x7ff1d219e000, 2097152, PROT_NONE) = 0 21457 21076 mmap(0x7ff1d239e000, 397312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 20, 0x21f000) = 0x7ff1d239e000 21458 21076 close(20) These are the only times when they are read. I reemerged PyQt4 with the examples USE flag. They all work. (In reply to Andreas Plesch from comment #15) > I reemerged PyQt4 with the examples USE flag. They all work. I reemerged @system and all dev-qt stuff. No change, still segfaulting. If I find some time I'll start real debugging. I already unzipped the source files ;). What is a proposed enviroment for that? Coul'd some explain why qgis runs some qt4 related software while there is only qt5 software in the dependency tree? ------8<-------- muli ~ # equery depgraph =sci-geosciences/qgis-2.18.7 * Searching for qgis2.18.7 in sci-geosciences ... * dependency graph for sci-geosciences/qgis-2.18.7 `-- sci-geosciences/qgis-2.18.7 ~amd64 `-- app-crypt/qca-2.1.3 (app-crypt/qca) amd64 [qt5 ssl] `-- dev-db/spatialite-4.3.0a (>=dev-db/spatialite-4.1.0) ~amd64 `-- dev-db/sqlite-3.17.0 (dev-db/sqlite) amd64 `-- dev-libs/expat-2.2.0-r1 (dev-libs/expat) amd64 `-- dev-qt/qtconcurrent-5.7.1 (dev-qt/qtconcurrent) ~amd64 `-- dev-qt/qtcore-5.7.1-r3 (dev-qt/qtcore) ~amd64 `-- dev-qt/qtgui-5.7.1 (dev-qt/qtgui) ~amd64 `-- dev-qt/qtnetwork-5.7.1 (dev-qt/qtnetwork) ~amd64 `-- dev-qt/qtpositioning-5.7.1 (dev-qt/qtpositioning) ~amd64 `-- dev-qt/qtprintsupport-5.7.1 (dev-qt/qtprintsupport) ~amd64 `-- dev-qt/qtscript-5.7.1 (dev-qt/qtscript) ~amd64 `-- dev-qt/qtsvg-5.7.1 (dev-qt/qtsvg) ~amd64 `-- dev-qt/qtsql-5.7.1 (dev-qt/qtsql) ~amd64 `-- dev-qt/qtwebkit-5.7.1 (dev-qt/qtwebkit) ~amd64 `-- dev-qt/qtwidgets-5.7.1 (dev-qt/qtwidgets) ~amd64 `-- dev-qt/qtxml-5.7.1 (dev-qt/qtxml) ~amd64 `-- sci-libs/gdal-2.0.3 (sci-libs/gdal) ~amd64 [geos python? python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- sci-libs/geos-3.6.1 (sci-libs/geos) amd64 `-- sci-libs/libspatialindex-1.8.1 (sci-libs/libspatialindex) amd64 `-- sci-libs/proj-4.8.0 (sci-libs/proj) amd64 `-- x11-libs/qscintilla-2.10 (x11-libs/qscintilla) ~amd64 [qt5] `-- x11-libs/qwt-6.1.3-r1 (>=x11-libs/qwt-6.1.2) amd64 [qt5 svg] `-- x11-libs/qwtpolar-1.1.1-r1 (>=x11-libs/qwtpolar-1.1.1-r1) amd64 [qt5] `-- dev-qt/designer-5.7.1 (dev-qt/designer) ~amd64 `-- sci-libs/gsl-1.16 (sci-libs/gsl) amd64 `-- sci-geosciences/grass-7.2.0 (>=sci-geosciences/grass-7.0.0) ~amd64 `-- dev-libs/fcgi-2.4.1_pre0910052249-r2 (dev-libs/fcgi) amd64 `-- dev-db/oracle-instantclient-12.1.0.2 (dev-db/oracle-instantclient) [~amd64 keyword] `-- dev-db/postgresql-9.5.5 (dev-db/postgresql) amd64 `-- dev-lang/python-2.7.12 (>=dev-lang/python-2.7.5-r2) amd64 [sqlite] `-- dev-lang/python-exec-2.4.4 (>=dev-lang/python-exec-2) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/future-0.15.2 (dev-python/future) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/httplib2-0.9.2-r2 (dev-python/httplib2) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/jinja-2.9.5 (dev-python/jinja) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/markupsafe-0.23 (dev-python/markupsafe) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/pygments-2.1.1 (dev-python/pygments) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/PyQt5-5.7.1 (dev-python/PyQt5) amd64 [sql svg webkit python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/python-dateutil-2.4.2-r1 (dev-python/python-dateutil) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/pytz-2016.3 (dev-python/pytz) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/pyyaml-3.12 (dev-python/pyyaml) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/qscintilla-python-2.10 (dev-python/qscintilla-python) ~amd64 [qt5 python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/requests-2.12.5 (dev-python/requests) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/sip-4.19.1 (dev-python/sip) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/six-1.10.0 (dev-python/six) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-python/psycopg-2.6.2 (dev-python/psycopg) amd64 [python_targets_python2_7(-)? -python_single_target_jython2_7(-) -python_single_target_pypy(-) -python_single_target_pypy3(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-) python_single_target_python2_7(+)] `-- dev-qt/qttest-5.7.1 (dev-qt/qttest) ~amd64 `-- dev-qt/qtxmlpatterns-5.7.1 (dev-qt/qtxmlpatterns) ~amd64 `-- sys-devel/bison-3.0.4-r1 (sys-devel/bison) amd64 `-- sys-devel/flex-2.6.1 (sys-devel/flex) amd64 `-- sys-devel/make-4.2.1 (sys-devel/make) amd64 `-- dev-util/cmake-3.7.2 (>=dev-util/cmake-3.7.2) amd64 `-- sys-apps/sed-4.2.2 (>=sys-apps/sed-4) amd64 `-- sci-geosciences/gpsbabel-1.5.4 (sci-geosciences/gpsbabel) amd64 [ sci-geosciences/qgis-2.18.7 stats: packages (54), max depth (1) ] ------8<-------- I also noticed that: https://bugs.gentoo.org/show_bug.cgi?id=612070#c13 2.18.7 compiles and runs without PyQt4 being available on the system but then does not have python support. PyQt5 is installed. Then reemerging PyQt4 produces again the Qgis segfaulting. I think QT5 is used for for C++ (GUI) but QT4 still wants to be used for python and plugins/processing. It sounds like you are trying to manually compile ? https://github.com/qgis/QGIS/blame/master/src/app/qgisapp.cpp#L9387 is where libqgispython.so is loaded which then loads the other libraries. No changes in this code for a long time. I think libQtCore.so.4 may have to be loaded before PyQt4/QtCore.so Could you try $export LD_PRELOAD=/usr/lib64/qt4/libQtCore.so.4 $qgis ? For debugging LD_DEBUG=all; qgis may also be helpful. Created attachment 472918 [details]
LOG: export LD_PRELOAD=/usr/lib64/qt4/libQtCore.so.4; qgis
$ export LD_PRELOAD=/usr/lib64/qt4/libQtCore.so.4; qgis
log file...
Well, it was worth trying. I am running out of ideas ... (In reply to Andreas Plesch from comment #21) > Well, it was worth trying. I am running out of ideas ... Use $unset LD_PRELOAD to go back or close terminal session. I upgraded world with -qt4 and qt5 set. Then I treid the the qgis-2.18.9 ebuild which compiles fine. Starting it it complains about the missing PyQt Support: ---------8<------------- peters@muli ~ $ qgis Warning: loading of qt translation failed [/usr/share/qt5/translations/qt_de_DE] Warning: QCss::Parser - Failed to load file "/style.qss" Warning: QLayout: Attempting to add QLayout "" to QgsPanelWidgetStack "mWidgetStack", which already has a layout "<font color=\"red\">Konnte PyQt nicht laden.<br>Die Python-Unterstützung wird abgeschaltet.</font><br><pre><br>Traceback (most recent call last):<br> File \"<string>\", line 1, in <module><br>ImportError: No module named PyQt4<br><br></pre>Python-Version:<br>2.7.12 (default, May 15 2017, 15:59:57) <br>[GCC 5.4.0]<br><br>QGIS-Version:<br>2.18.9 'Las Palmas', exported<br><br>Python-Pfad:<br>['/usr/share/qgis/python', u'/home/peters/.qgis2/python', u'/home/peters/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/FontTools', '/usr/lib64/python2.7/site-packages/geos', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib64/python2.7/site-packages/wx-3.0-gtk2']" ---------8<------------- ? ervin First result: - qgis-2.18.9 needs PyQt4 as runtime dependency for plugin support But after reenabling qt4 and rebuilding PyQt4-4.12 qgis crashes ... no real fun. I switched back to stable 2.18.3 It seems that all plugins have to be fixed to be compatible with PyQt5, and there is maybe some work in progress. ervin The official stable qgis 2.18.10 linux releases for debian and ubuntu still depend on qt4: http://qgis.org/debian/dists/stable/main/binary-amd64/Packages At least this is how I read the dependency information for .deb files. Only the unstable (2.99) qgis linux release started to depend qt5 instead: http://qgis.org/debian-nightly/dists/unstable/main/binary-amd64/Packages With the official release of qgis 3.0 (soonish it seems), gentoo also could require qt5 dependencies. But even then, 2.18.3 will be important to keep around since many plugins will take time (or perhaps be never) ported to qt5. Pushed 2.18.10 to tree (qt5-based). Please test this version (without any LD_PRELOAD stunts that are bound to fail), it sets python dependencies straight. (In reply to Andreas Sturmlechner from comment #26) > Pushed 2.18.10 to tree (qt5-based). Please test this version (without any > LD_PRELOAD stunts that are bound to fail), it sets python dependencies > straight. That failes to compile: [100%] Building C object python/ext-libs/pyspatialite/CMakeFiles/pyspatialite.dir/src/connection.c.o cd /var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10_build/python/ext-libs/pyspatialite && /usr/bin/x86_64-pc-linux-gnu-gcc -DQGIS_DISABLE_DEPRECATED -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_QTWEBKIT -Dpyspatialite_EXPORTS -I/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10_build -I/usr/include/python3.4m -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtPrintSupport -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtWebKit -isystem /usr/include/qt5/QtWebKitWidgets -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtPositioning -DNDEBUG -march=corei7-avx -fomit-frame-pointer -O2 -pipe -fPIC -DCORE_EXPORT= -DGUI_EXPORT= -DPYTHON_EXPORT= -DANALYSIS_EXPORT= -DAPP_EXPORT= -DCUSTOMWIDGETS_EXPORT= -DSERVER_EXPORT= -DMODULE_NAME=\"spatialite.dbapi2\" -fPIC -w -o CMakeFiles/pyspatialite.dir/src/connection.c.o -c /var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c /var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c: In function 'pysqlite_connection_dealloc': /var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c:304:9: error: 'pysqlite_Connection {aka struct <anonymous>}' has no member named 'ob_type' self->ob_type->tp_free((PyObject*)self); ^ /var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c: In function 'pysqlite_connection_create_collation': /var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c:1464:74: error: 'PyString_Type' undeclared (first use in this function) if (!PyArg_ParseTuple(args, "O!O:create_collation(name, callback)", &PyString_Type, &name, &callable)) { ^ /var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c:1464:74: note: each undeclared identifier is reported only once for each function it appears in /var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c: At top level: /var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c:1614:67: error: 'RO' undeclared here (not in a function) {"Warning", T_OBJECT, offsetof(pysqlite_Connection, Warning), RO}, ^ make[2]: *** [python/ext-libs/pyspatialite/CMakeFiles/pyspatialite.dir/build.make:87: python/ext-libs/pyspatialite/CMakeFiles/pyspatialite.dir/src/connection.c.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10_build' make[1]: *** [CMakeFiles/Makefile2:8945: python/ext-libs/pyspatialite/CMakeFiles/pyspatialite.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10_build' make: *** [Makefile:150: all] Error 2 Should i file a separate bug? Or append it to bug 620748 ? (In reply to Thomas Beutin from comment #27) [...] > Should i file a separate bug? Or append it to bug 620748 ? It's in bug 623780 2.18.12 is in tree, please test. (In reply to Andreas Sturmlechner from comment #30) > 2.18.12 is in tree, please test. unfortunately 2.18.12-r100 won't build. changed use to -qt3support, -qt4, qt5: ---8<--- CMakeFiles/qgis_gui.dir/layertree/moc_qgslayertreeviewdefaultactions.cpp.o CMakeFiles/qgis_gui.dir/editorwidgets/moc_qgswebviewconfigdlg.cpp.o CMakeFiles/qgis_gui.dir/editorwidgets/moc_qgswebviewwidgetwrapper.cpp.o -L/var/tmp/portage/sci-geosciences/qgis-2.18.12-r100/work/qgis-2.18.12_build/src/core -L/var/tmp/portage/sci-geosciences/qgis-2.18.12-r100/work/qgis-2.18.12_build/src/gui -Wl,-rpath,/var/tmp/portage/sci-geosciences/qgis-2.18.12-r100/work/qgis-2.18.12_build/src/core:/var/tmp/portage/sci-geosciences/qgis-2.18.12-r100/work/qgis-2.18.12_build/src/gui:/var/tmp/portage/sci-geosciences/qgis-2.18.12-r100/work/qgis-2.18.12_build/output/lib64: ../../output/lib64/libqgis_core.so.2.18.12 /usr/lib64/libQt5UiTools.a -lqwt6-qt5 -lqscintilla2 /usr/lib64/libQt5Xml.so.5.7.1 /usr/lib64/libQt5Concurrent.so.5.7.1 /usr/lib64/libQt5PrintSupport.so.5.7.1 /usr/lib64/libQt5Svg.so.5.7.1 /usr/lib64/libQt5WebKitWidgets.so.5.7.1 /usr/lib64/libQt5WebKit.so.5.7.1 /usr/lib64/libQt5Network.so.5.7.1 /usr/lib64/libQt5Sql.so.5.7.1 -lqca-qt5 -lproj -lgeos_c -lgdal -lspatialindex -lexpat -lsqlite3 -lspatialite /usr/lib64/libQt5Positioning.so.5.7.1 /usr/lib64/libQt5Widgets.so.5.7.1 /usr/lib64/libQt5Gui.so.5.7.1 /usr/lib64/libQt5Core.so.5.7.1 cd /var/tmp/portage/sci-geosciences/qgis-2.18.12-r100/work/qgis-2.18.12_build/src/gui && /usr/bin/cmake -E cmake_symlink_library ../../output/lib64/libqgis_gui.so.2.18.12 ../../output/lib64/libqgis_gui.so.2.18.12 ../../output/lib64/libqgis_gui.so make[2]: Verzeichnis „/var/tmp/portage/sci-geosciences/qgis-2.18.12-r100/work/qgis-2.18.12_build“ wird verlassen [ 59%] Built target qgis_gui make[1]: Verzeichnis „/var/tmp/portage/sci-geosciences/qgis-2.18.12-r100/work/qgis-2.18.12_build“ wird verlassen make: *** [Makefile:150: all] Fehler 2 [31;01m*[0m ERROR: sci-geosciences/qgis-2.18.12-r100::gentoo failed (compile phase): [31;01m*[0m emake failed --------8<------- ervin |