Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#51919 - [tslib] segfaults in qt5 apps after upgrading to tslib 1.2-1

Attached to Project: Arch Linux
Opened by Dmitriy Kharitonov (dark-saber) - Tuesday, 22 November 2016, 06:23 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 23 November 2016, 14:09 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
qt5 applications, such as konsole or krusader, segfault after upgrading tslib to 1.2-1. I use qt5-base-5.7.0-6, I see it has a patch that is supposed to fix tslib compatibility, but it doesnt solve the problem for me.

Additional info:
>gdb konsole
#0 0x00007ffff7de3160 in do_lookup_x () at /lib64/ld-linux-x86-64.so.2
#1 0x00007ffff7de3de1 in _dl_lookup_symbol_x () at /lib64/ld-linux-x86-64.so.2
#2 0x00007ffff7de5a7d in _dl_relocate_object () at /lib64/ld-linux-x86-64.so.2
#3 0x00007ffff7dedac1 in dl_open_worker () at /lib64/ld-linux-x86-64.so.2
#4 0x00007ffff7de93a4 in _dl_catch_error () at /lib64/ld-linux-x86-64.so.2
#5 0x00007ffff7ded2d9 in _dl_open () at /lib64/ld-linux-x86-64.so.2
#6 0x00007fffededfee9 in () at /usr/lib/libdl.so.2
#7 0x00007ffff7de93a4 in _dl_catch_error () at /lib64/ld-linux-x86-64.so.2
#8 0x00007fffedee0521 in () at /usr/lib/libdl.so.2
#9 0x00007fffededff82 in dlopen () at /usr/lib/libdl.so.2
#10 0x00007ffff3e0f37e in () at /usr/lib/libQt5Core.so.5
#11 0x00007ffff3e08805 in () at /usr/lib/libQt5Core.so.5
#12 0x00007ffff3dfdb22 in QFactoryLoader::instance(int) const () at /usr/lib/libQt5Core.so.5
#13 0x00007ffff45e997b in () at /usr/lib/libQt5Gui.so.5
#14 0x00007ffff45f4318 in QGuiApplicationPrivate::createPlatformIntegration() () at /usr/lib/libQt5Gui.so.5
#15 0x00007ffff45f4cbd in QGuiApplicationPrivate::createEventDispatcher() () at /usr/lib/libQt5Gui.so.5
#16 0x00007ffff3e1952f in QCoreApplicationPrivate::init() () at /usr/lib/libQt5Core.so.5
#17 0x00007ffff45f67df in QGuiApplicationPrivate::init() () at /usr/lib/libQt5Gui.so.5
#18 0x00007ffff4d91ab9 in QApplicationPrivate::init() () at /usr/lib/libQt5Widgets.so.5
#19 0x00007ffff7bb9ab1 in kdemain () at /usr/lib/libkdeinit5_konsole.so
#20 0x00007ffff7814291 in __libc_start_main () at /usr/lib/libc.so.6
#21 0x000000000040065a in _start ()


Steps to reproduce:
run konsole or krusader
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 23 November 2016, 14:09 GMT
Reason for closing:  Not a bug
Comment by Antonio Rojas (arojas) - Tuesday, 22 November 2016, 10:45 GMT
Can't reproduce. Please try deleting /usr/lib/qt/plugins/generic/libqtslibplugin.so to make sure it's related to tslib. Also install http://pkgbuild.com/~arojas/qt5-base-5.7.0-6-x86_64.pkg.tar.xz which has debug symbols to get a full backtrace.
Comment by Dmitriy Kharitonov (dark-saber) - Tuesday, 22 November 2016, 14:14 GMT
Strangely, removing libqtslibplugin.so doesn't change anything, as far as I can tell (segfaults still, same backtraces), but downgrading to tslib 1.1-1 fixes the issue.
Comment by Antonio Rojas (arojas) - Tuesday, 22 November 2016, 17:46 GMT
Yes, this doesn't make sense. The tslib version shouldn't affect qt at all if you remove the qtslib plugin. Just to make sure: you have fully updated to the testing repo, and you restarted your session after deleting the plugin?
Also, can you try with qt5-base from extra and tslib 1.2?
Comment by Dmitriy Kharitonov (dark-saber) - Tuesday, 22 November 2016, 21:30 GMT
Yes, I've fully updated to testing and even rebooted several times. I've tried to install extra/qt5-base, compiled testing/qt5-base from ABS, compiled testing/qt5-base from ABS with -no-tslib, compiled tslib 1.2-1 from ABS - still no luck.

Also logging in as a new user with clean profile and trying to run krusader/konsole doesn't change anything.
But somehow running as a different user via sudo works:
(Logged in as user1)
xhost local:user2
sudo -u user2 krusader
(and vice versa, running as user2 while logged in as user1 works also)
Edit: "sudo -u user1 krusader" as user1 works too

I wonder what's different about running a program with GUI via sudo?
Comment by Antonio Rojas (arojas) - Tuesday, 22 November 2016, 21:36 GMT
The difference is that running with sudo will use the default Qt theme instead of trying to adapt to your desktop settings. Which desktop are you using?
Comment by Dmitriy Kharitonov (dark-saber) - Wednesday, 23 November 2016, 12:15 GMT
I'm normally using Xfce4, but I tried different DEs/WMs and here's what I've found:
LXQt, Fluxbox, IceWM, Notion - everything's fine, krusader and konsole work as intended
Xfce, MATE - segfaults
Plasma - broken (krunner segfaults on start, which may or may not be related to this bug; no interface), but I've managed to start krusader and konsole and they work ok

Also, I'm running a 3-monitor setup on 1 NVIDIA GPU, but I've tried to leave only 1 monitor connected, deleted xorg.conf and everything related to display in xorg.conf.d/, used new user profile - still the same results with Xfce, MATE and Plasma.

So, is this something about running Qt5 apps in GTK environment?
Comment by Antonio Rojas (arojas) - Wednesday, 23 November 2016, 12:21 GMT
Yes, it looks like the krunner crash may be related. This smells a lot like a nvidia issue. Can you try downgrading the nvidia driver? (You may have to downgrade also the kernel or recompile the older nvidia module against the current kernel)
Comment by Dmitriy Kharitonov (dark-saber) - Wednesday, 23 November 2016, 14:04 GMT
So, in the end it was appmenu-qt5-bzr from AUR. I thought I've recompiled all AUR devel packages and removed everything suspicious, but it seems I had them recompiled with an old extra/tslib 1.1. That's just stupid.

So, thank you very much for your help, and I'm extremely sorry for wasting your time.

Loading...