Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 616620

Summary: sci-geosciences/qgis-2.18.7: QGIS died on signal 11
Product: Gentoo Linux Reporter: Ervin Peters <ervin.peters>
Component: Current packagesAssignee: 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
After qgis-2.18.7 builds fine I tried to start it, but get:
-------------8<--------------------
peters@muli ~ $ qgis
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 11[New LWP 11012]
[New LWP 11011]
[New LWP 11009]
[New LWP 11008]
[New LWP 11007]
[New LWP 11006]
[New LWP 10999]
[New LWP 10991]
[New LWP 10984]
[New LWP 10980]
[New LWP 10978]
[New LWP 10977]
[New LWP 10974]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f5474a1e36b in waitpid () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f546043e800 (LWP 10973))]
#0  0x00007f5474a1e36b in waitpid () from /lib64/libc.so.6
No symbol table info available.
#1  0x000000000040a8ca in ?? ()
No symbol table info available.
#2  <signal handler called>
No symbol table info available.
#3  0x00007f53cfc09992 in ?? () from /usr/lib64/python2.7/site-packages/PyQt4/QtCore.so
No symbol table info available.
#4  0x00007f547821748a in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#5  0x00007f547821759b in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#6  0x00007f547821bbb0 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#7  0x00007f5478217334 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#8  0x00007f547821b229 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#9  0x00007f546d39ffd9 in ?? () from /lib64/libdl.so.2
No symbol table info available.
#10 0x00007f5478217334 in ?? () from /lib64/ld-linux-x86-64.so.2
No symbol table info available.
#11 0x00007f546d3a0589 in ?? () from /lib64/libdl.so.2
No symbol table info available.
#12 0x00007f546d3a0071 in dlopen () from /lib64/libdl.so.2
No symbol table info available.
#13 0x00007f53d4a2163f in _PyImport_GetDynLoadFunc () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#14 0x00007f53d4a098de in _PyImport_LoadDynamicModule () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#15 0x00007f53d4a079a1 in ?? () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#16 0x00007f53d4a07ec5 in ?? () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#17 0x00007f53d4a08715 in PyImport_ImportModuleLevel () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#18 0x00007f53d49eb0f8 in ?? () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#19 0x00007f53d495a383 in PyObject_Call () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#20 0x00007f53d49ecdc7 in PyEval_CallObjectWithKeywords () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#21 0x00007f53d49eecff in PyEval_EvalFrameEx () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#22 0x00007f53d49f6b20 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#23 0x00007f53d49f6c19 in PyEval_EvalCode () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#24 0x00007f53d4a103af in ?? () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#25 0x00007f53d4a112b4 in PyRun_StringFlags () from /usr/lib64/libpython2.7.so.1.0
No symbol table info available.
#26 0x00007f53d4cf7bfa in ?? () from /usr/lib64/libqgispython.so.2.18.7
No symbol table info available.
#27 0x00007f53d4cf9f36 in ?? () from /usr/lib64/libqgispython.so.2.18.7
No symbol table info available.
#28 0x00007f53d4cfda8f in ?? () from /usr/lib64/libqgispython.so.2.18.7
No symbol table info available.
#29 0x00007f53d4cfef51 in ?? () from /usr/lib64/libqgispython.so.2.18.7
No symbol table info available.
#30 0x00007f547793b178 in QgisApp::loadPythonSupport() () from /usr/lib64/libqgis_app.so.2.18.7
No symbol table info available.
#31 0x00007f547793d51f in QgisApp::QgisApp(QSplashScreen*, bool, bool, QWidget*, QFlags<Qt::WindowType>) () from /usr/lib64/libqgis_app.so.2.18.7
No symbol table info available.
#32 0x0000000000406b12 in ?? ()
No symbol table info available.
#33 0x00007f5474987790 in __libc_start_main () from /lib64/libc.so.6
No symbol table info available.
#34 0x000000000040a329 in _start ()
No symbol table info available.
gdb returned 0
[1]+  Fertig                  scite /usr/portage/sci-geosciences/qgis/qgis-2.18.7.ebuild
Abgebrochen (Speicherabzug geschrieben)
-------------8<--------------------

Why is there a PyQt4 lib instead of a PyQt5 which is installed, too?

-------------8<--------------------
muli ~ # emerge --info '=sci-geosciences/qgis-2.18.7::gentoo'
Portage 2.3.3 (python 3.5.2-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.4.0, glibc-2.23-r3, 4.9.16-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.16-gentoo-x86_64-Intel-R-_Core-TM-_i5-6600K_CPU_@_3.50GHz-with-gentoo-2.3
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Mon, 24 Apr 2017 21:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.24.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://woodstok.ervnet.local/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

flow
    location: /var/lib/layman/flow
    masters: gentoo
    priority: 50

printer-drivers
    location: /var/lib/layman/printer-drivers
    masters: gentoo
    priority: 50

muli
    location: /usr/local/portage
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3ds 64bit X Xaw3d a52 aac ace acl acpi addns aften aim alsa amd64 amr animgif apache2 apng applet archive asf aspell assistant audio auto-completion bash-completion bazaar bdf berkdb blender bogofilter branding builder bzip2 cairo cdda cdparanoia cdr charset chipcard chm cjk cli colord context contrib corefonts cracklib crypt css cups curl cvs cvsgraph cxx d darcs dbi dbus deprecated detex devhelp dia discouraged djvu dmx doc dri drm dts dv dvd dvdnav dvdr dvi dynamicplugin eds emboss emf enca encode escreen evo exif extensions extra extras fam fastcgi fat fax fbcon ffmpeg firefox flac flash fontconfig fontforge fonts foomaticdb fortran fping fpx ftp fuse games gcj gd gdbm gdk-pixbuf geoip geos gif gimp git gkrellm glade glamor gles gles1 gnome gnome-keyring gnome-online-accounts gnome-shell gpac gphoto2 gpm gps graphics graphviz grass grub gstreamer gtk gtk2-perl gtkhtml gudev gzip h224 h281 h323 hbci hdri hfs high-ints html humanities ibam icons iconv icq icu ieee1394 imagemagick imap infinality inkjar introspection iodbc ipv6 irc ithreads jadetex java javascript jbig joystick jpeg jpeg2k kerberos kpathsea lame lasi latex lcms ldap libnotify libsecret libssh2 libwww live lm_sensors logrotate lqr lto lua luatex lzo mad mapnik mdb mdnsresponder-compat menuorg mercurial metric midi mikmod mime minizip mjpeg mms mng mod modules mozdom mp3 mp4 mpeg mpi mplayer msn mssql mtp multilib music mysql mysqli nautilus ncurses network network-cron networkmanager nfs nfsv4 nls nntp nocd nptl nsplugin ntfs ntfsprogs ntlm odk offensive ofx ogg ogm omega openexr opengl openmp openstreetmap openvg openxml oscar osdmenu pam pango pcf pch pcre pda pdf perl pgf pixmaps player plotutils plugins png pnm policykit posix postgres ppds psf pstricks publishers pulseaudio pvr python qt3support qt4 qt5 quicktime rar raw rdp readline regex reiserfs romio rtsp samba sasl scanner science screen scripts sdl seccomp sensord server session sftp shorten simplexml sip sipim slp smartcard smp snmp soap sockets sound soup source sourcecaps sourceview speex spell sql sqlite sqlite3 ssl startup-notification stream subtitles subversion svg sylpheed syslog systemd szip tcpd templates tex tex4ht tga theora thesaurus threads thumbnail thunderbird tidy tiff timidity tinfo tk tools tracker transcode truetype udev udisks unicode unzip upower usb utils uxa v4l valgrind vcd vdpau vdr vhosts vorbis wav webkit winbind wineappdb wma wmf wxwidgets x264 xattr xbase xcb xcf xcomposite xetex xface xfs xft xml xmlrpc xorgmodule xpm xscreensaver xslt xterm xv xvid xvmc yaepg yahoo youtube zip zlib" ABI_X86="64" ALSA_CARDS="HDA-INTEL" APACHE2_MODULES="actions access_compat alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_file authz_core authz_dbm authz_dbd authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id userdir usertrack vhost_alias asis cgi cgid" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse aiptek hyperpen" KERNEL="linux" L10N="de en en-GB ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en en_GB ru" NETBEANS_MODULES="php mobility" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.4 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sci-geosciences/qgis-2.18.7::gentoo was built with the following:
USE="grass postgres python -designer -examples -georeferencer -mapserver -oracle -touch" ABI_X86="64" PYTHON_TARGETS="python2_7"
-------------8<--------------------

Any hints?

ervin
Comment 1 Andreas Plesch 2017-04-27 18:22:29 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.
Comment 2 Andreas Plesch 2017-04-28 17:01:02 UTC
Did you remove/rename the ~/.qgis/ folder and the ~/.config/QGIS folder ?
Comment 3 Ervin Peters 2017-04-29 04:29:51 UTC
Same after deleting ~/.qgis2 and ~/.config/QGIS.

ervin
Comment 4 Andreas Plesch 2017-05-01 17:22:32 UTC
Thanks. I had never removed ~/.config/QGIS and thought it may be referencing something but the crash seems too early for that anyways.
Comment 5 Ervin Peters 2017-05-10 04:54:17 UTC
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.
Comment 6 Andreas Plesch 2017-05-11 12:58:51 UTC
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.
Comment 7 Ervin Peters 2017-05-11 13:35:52 UTC
(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
Comment 8 Andreas Plesch 2017-05-11 18:42:20 UTC
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
Comment 9 Ervin Peters 2017-05-12 05:07:57 UTC
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)
Comment 10 Andreas Plesch 2017-05-12 12:45:05 UTC
Not sure where 'gdb returned 0' is coming from. Did the output file qgis.txt contain anything ?
Comment 11 Ervin Peters 2017-05-15 06:17:54 UTC
(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?
Comment 12 Ervin Peters 2017-05-15 06:27:53 UTC
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.
Comment 13 Andreas Plesch 2017-05-15 18:36:58 UTC
Yes, this does look like the relevant section before the crash. Let me see how this looks in the working 2.18.3
Comment 14 Andreas Plesch 2017-05-15 18:56:15 UTC
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.
Comment 15 Andreas Plesch 2017-05-15 20:47:42 UTC
I reemerged PyQt4 with the examples USE flag. They all work.
Comment 16 Ervin Peters 2017-05-16 18:04:17 UTC
(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?
Comment 17 Ervin Peters 2017-05-16 18:59:32 UTC
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<--------
Comment 18 Andreas Plesch 2017-05-16 20:04:04 UTC
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 ?
Comment 19 Andreas Plesch 2017-05-16 20:27:09 UTC
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.
Comment 20 Ervin Peters 2017-05-17 13:44:30 UTC
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...
Comment 21 Andreas Plesch 2017-05-18 14:57:29 UTC
Well, it was worth trying. I am running out of ideas ...
Comment 22 Andreas Plesch 2017-05-18 15:02:39 UTC
(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.
Comment 23 Ervin Peters 2017-06-10 08:01:50 UTC
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>&nbsp; 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
Comment 24 Ervin Peters 2017-06-10 18:47:11 UTC
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
Comment 25 Andreas Plesch 2017-06-26 19:21:58 UTC
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.
Comment 26 Andreas Sturmlechner gentoo-dev 2017-07-01 14:18:57 UTC
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.
Comment 27 Thomas Beutin 2017-07-04 06:29:35 UTC
(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 ?
Comment 28 Thomas Beutin 2017-07-05 06:28:32 UTC
(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
Comment 29 Andreas Plesch 2017-07-14 14:45:16 UTC
see https://bugs.gentoo.org/show_bug.cgi?id=623780#c8
Comment 30 Andreas Sturmlechner gentoo-dev 2017-08-26 19:32:52 UTC
2.18.12 is in tree, please test.
Comment 31 Ervin Peters 2017-09-12 12:35:35 UTC
(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