Bug 382483 - KWin Crashes on Qt5.9
Summary: KWin Crashes on Qt5.9
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.10.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL: https://phabricator.kde.org/T6531
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-07-19 00:17 UTC by Marco Parillo
Modified: 2017-07-19 15:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Parillo 2017-07-19 00:17:46 UTC
Application: kwin_x11 (5.10.3)

Qt Version: 5.9.1
Frameworks Version: 5.36.0
Operating System: Linux 4.11.0-10-generic x86_64
Distribution: Ubuntu Artful Aardvark (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
Logging into Plasma via SDDM after upgrading Qt to 5.9. I can add a link.

- Custom settings of the application:
Qt5.9 from PPA

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fdd4c11e6c0 (LWP 1179))]

Thread 5 (Thread 0x7fdd28ab7700 (LWP 1297)):
#0  0x00007fdd4bb31251 in __GI_ppoll (fds=0x7fdd20000ac8, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007fdd4917c471 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fdd4917db0a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fdd491292ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fdd48f52cd3 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fdd43ad1c55 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#6  0x00007fdd48f57a99 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fdd44db26da in start_thread (arg=0x7fdd28ab7700) at pthread_create.c:456
#8  0x00007fdd4bb3d17f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 4 (Thread 0x7fdd294f9700 (LWP 1291)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007fdd48f58936 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fdd48f53eea in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fdd48f57a99 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fdd44db26da in start_thread (arg=0x7fdd294f9700) at pthread_create.c:456
#5  0x00007fdd4bb3d17f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 3 (Thread 0x7fdd2b16a700 (LWP 1228)):
#0  0x00007fdd48f4ece9 in QMutex::unlock() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007fdd4917d96b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fdd491292ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fdd48f52cd3 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fdd42c9cf25 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#5  0x00007fdd48f57a99 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fdd44db26da in start_thread (arg=0x7fdd2b16a700) at pthread_create.c:456
#7  0x00007fdd4bb3d17f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 2 (Thread 0x7fdd31228700 (LWP 1227)):
#0  0x00007fdd4bb3118d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fdd4ac58c62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fdd4ac5a8d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fdd31ed4f49 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fdd48f57a99 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fdd44db26da in start_thread (arg=0x7fdd31228700) at pthread_create.c:456
#6  0x00007fdd4bb3d17f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 1 (Thread 0x7fdd4c11e6c0 (LWP 1179)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58
#7  0x00007fdd4ba6c37a in __GI_abort () at abort.c:89
#8  0x00007fdd48f3fa57 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fdd49154fb5 in QObjectPrivate::QObjectPrivate(int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fdd4812238b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#11 0x00007fdd48122eaf in QScriptEngine::QScriptEngine(QObject*) () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#12 0x00007fdd4b6fc727 in ?? () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#13 0x00007fdd4b6fd1f2 in KWin::Scripting::loadScript(QString const&, QString const&) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#14 0x00007fdd4b70053c in KWin::Scripting::start() () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#15 0x00007fdd4b778da5 in ?? () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#16 0x00007fdd49158097 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007fdd49158cf1 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007fdd49e78abc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007fdd49e80351 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007fdd4912b2a0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007fdd4912e06d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007fdd4917d937 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007fdd31f3302d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#24 0x00007fdd491292ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007fdd49132204 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007fdd4be05112 in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#27 0x00007fdd4ba553f1 in __libc_start_main (main=0x561dc11517f0, argc=3, argv=0x7ffcdc8d18e8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcdc8d18d8) at ../csu/libc-start.c:291
#28 0x0000561dc115182a in _start ()

Possible duplicates by query: bug 381941, bug 381375, bug 379070, bug 378738, bug 378240.

Reported using DrKonqi
Comment 1 Marco Parillo 2017-07-19 00:19:52 UTC
Test steps: https://phabricator.kde.org/T6531
Comment 2 Christoph Feck 2017-07-19 04:14:33 UTC
Could you please start kwin_x11 from Konsole and add the error output here?
Comment 3 Martin Flöser 2017-07-19 05:08:42 UTC
Please install debug symbols and attach a new backtrace.
Comment 4 Dmitry Shachnev 2017-07-19 07:07:56 UTC
Yes, please install these packages and try to get another stacktrace:

  sudo apt install libqt5core5a-dbgsym libqt5widgets5-dbgsym libqt5script5-dbgsym libqt5qml5-dbgsym libqt5gui5-dbgsym kwin-x11-dbgsym kwin-common-dbgsym

The Qt packages here are from my PPA, for kwin debug packages you may need to add the Ubuntu debug repository as described here: https://wiki.ubuntu.com/Debug%20Symbol%20Packages#Getting_-dbgsym.ddeb_packages.
Comment 5 Marco Parillo 2017-07-19 10:45:07 UTC
(In reply to Christoph Feck from comment #2)
> Could you please start kwin_x11 from Konsole and add the error output here?

kwin_x11: FATAL ERROR while trying to open display
Comment 6 Marco Parillo 2017-07-19 10:47:09 UTC
(In reply to Dmitry Shachnev from comment #4)
> Yes, please install these packages and try to get another stacktrace:
> 
>   sudo apt install libqt5core5a-dbgsym libqt5widgets5-dbgsym
> libqt5script5-dbgsym libqt5qml5-dbgsym libqt5gui5-dbgsym kwin-x11-dbgsym
> kwin-common-dbgsym
> 
> The Qt packages here are from my PPA, for kwin debug packages you may need
> to add the Ubuntu debug repository as described here:
> https://wiki.ubuntu.com/Debug%20Symbol%20Packages#Getting_-dbgsym.
> ddeb_packages.

E: Unable to locate package libqt5core5a-dbgsym
Comment 7 Dmitry Shachnev 2017-07-19 13:16:41 UTC
> E: Unable to locate package libqt5core5a-dbgsym

Sorry, I should have mentioned that you need to enable the debug section of the PPA. Please open /etc/apt/sources.list.d/ci-train-ppa-service-ubuntu-2819-artful.list file as root in your favourite editor. There should be a line like this there:

deb http://ppa.launchpad.net/ci-train-ppa-service/2819/ubuntu artful main

Add a new line after it, replacing main with main/debug, i.e.:

deb http://ppa.launchpad.net/ci-train-ppa-service/2819/ubuntu artful main/debug

Then run apt update. APT will complain about some missing files in that section, but the -dbgsym packages should be available now.
Comment 8 Marco Parillo 2017-07-19 13:45:51 UTC
(In reply to Dmitry Shachnev from comment #7)
> > E: Unable to locate package libqt5core5a-dbgsym
> 
> Sorry, I should have mentioned that you need to enable the debug section of
> the PPA. Please open
> /etc/apt/sources.list.d/ci-train-ppa-service-ubuntu-2819-artful.list file as
> root in your favourite editor. There should be a line like this there:
> 
> deb http://ppa.launchpad.net/ci-train-ppa-service/2819/ubuntu artful main
> 
> Add a new line after it, replacing main with main/debug, i.e.:
> 
> deb http://ppa.launchpad.net/ci-train-ppa-service/2819/ubuntu artful
> main/debug
> 
> Then run apt update. APT will complain about some missing files in that
> section, but the -dbgsym packages should be available now.

Strange, but yesterday, before I tried to add the other packages, I routinely sudo apt update && sudo apt full-upgrade -y.

As usual, I got a few new packages yesterday, and today, today when I intended to add the debugging symbols via the tty, instead plasma started normally, but I do not know what might have caused the success today. Anyway, today, I could launch krunner to invoke kinfocenter (which reports Plasma 5.10.3, FW 5.36, and Qt 5.9.1). The kicker application launcher works, and I could launch discover, kate, system settings, konsole, konversation, and ksysguard.

Since I have rebooted my VM three times, all successfully, I will try to close this bug with resolved, fixed.
Comment 9 Martin Flöser 2017-07-19 15:07:07 UTC
Let's mark it properly: INVALID.

Please be more careful when reporting issues caused by using unstable packages. This wastes quite some time for us.