Bug 409439 - plasma crashs on start every time
Summary: plasma crashs on start every time
Status: RESOLVED DUPLICATE of bug 326289
Alias: None
Product: print-manager
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Daniel Nicoletti
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-07-03 06:18 UTC by Markus Rathgeb
Modified: 2019-07-08 09:05 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rathgeb 2019-07-03 06:18:10 UTC
Application: plasmashell (5.16.2)
 (Compiled from sources)
Qt Version: 5.12.3
Frameworks Version: 5.59.0
Operating System: Linux 5.1.6-gentoo x86_64
Distribution: "Gentoo Base System release 2.6"

-- Information about the crash:
On a regular start of the Plasma KDE session the plasmashell crashes immediately without any user action.

Additionally if I start the plasmashell manually using
plasmashell --replace --no-respawn
the plasmashell crashes again.

So, no working plasmashell anymore.

The plasmashell has been working before. I just closed the LID of my laptop and opened it again. Also a reboot does not work.
There seems to be something wrong.
Perhaps a corrupt configuration?
Can you give me some suggestions what to do?

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
29	  return SYSCALL_CANCEL (poll, fds, nfds, timeout);
[Current thread is 1 (Thread 0x7f9bea905880 (LWP 1290))]

Thread 10 (Thread 0x7f9bbb414700 (LWP 1300)):
#0  0x00007f9bf0290773 in __GI___poll (fds=0x7f9bac004a70, nfds=1, timeout=10425) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f9bee9f3886 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f9bac004a70, timeout=<optimized out>, context=0x7f9bac000bf0) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:4221
#2  g_main_context_iterate (context=context@entry=0x7f9bac000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3915
#3  0x00007f9bee9f39ac in g_main_context_iteration (context=0x7f9bac000bf0, may_block=may_block@entry=1) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3981
#4  0x00007f9bf08aaa63 in QEventDispatcherGlib::processEvents (this=0x7f9bac000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#5  0x00007f9bf085200b in QEventLoop::exec (this=this@entry=0x7f9bbb413d20, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f9bf06aafc6 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f9bf06ac324 in QThreadPrivate::start (arg=0x55706295bcc0) at thread/qthread_unix.cpp:361
#8  0x00007f9bef8e7408 in start_thread (arg=<optimized out>) at pthread_create.c:486
#9  0x00007f9bf029c7ff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7f9bbbd26700 (LWP 1299)):
#0  0x00007f9bf0290773 in __GI___poll (fds=0x7f9bb4003ce0, nfds=1, timeout=3499396) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f9bee9f3886 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f9bb4003ce0, timeout=<optimized out>, context=0x7f9bb4000bf0) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:4221
#2  g_main_context_iterate (context=context@entry=0x7f9bb4000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3915
#3  0x00007f9bee9f39ac in g_main_context_iteration (context=0x7f9bb4000bf0, may_block=may_block@entry=1) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3981
#4  0x00007f9bf08aaa63 in QEventDispatcherGlib::processEvents (this=0x7f9bb4000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#5  0x00007f9bf085200b in QEventLoop::exec (this=this@entry=0x7f9bbbd25ce0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f9bf06aafc6 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f9bbc6312d8 in KCupsConnection::run() () from /usr/lib64/libkcupslib.so
#8  0x00007f9bf06ac324 in QThreadPrivate::start (arg=0x557062836da0) at thread/qthread_unix.cpp:361
#9  0x00007f9bef8e7408 in start_thread (arg=<optimized out>) at pthread_create.c:486
#10 0x00007f9bf029c7ff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f9bd4953700 (LWP 1297)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55705ef88b30) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55705ef88ae0, cond=0x55705ef88b08) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55705ef88b08, mutex=0x55705ef88ae0) at pthread_cond_wait.c:655
#3  0x00007f9bf06b2c6b in QWaitConditionPrivate::wait (deadline=..., this=0x55705ef88ae0) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x55705f55a080, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f9bf06b2d69 in QWaitCondition::wait (this=0x55705f55a088, mutex=0x55705f55a080, time=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qdeadlinetimer.h:68
#6  0x00007f9bf237b3a9 in ?? () from /usr/lib64/libQt5Quick.so.5
#7  0x00007f9bf237b60a in ?? () from /usr/lib64/libQt5Quick.so.5
#8  0x00007f9bf06ac324 in QThreadPrivate::start (arg=0x55705f55a000) at thread/qthread_unix.cpp:361
#9  0x00007f9bef8e7408 in start_thread (arg=<optimized out>) at pthread_create.c:486
#10 0x00007f9bf029c7ff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f9bd5161700 (LWP 1296)):
#0  0x00007f9bf0290773 in __GI___poll (fds=0x7f9bc4004e00, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f9bee9f3886 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f9bc4004e00, timeout=<optimized out>, context=0x7f9bc4000bf0) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:4221
#2  g_main_context_iterate (context=context@entry=0x7f9bc4000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3915
#3  0x00007f9bee9f39ac in g_main_context_iteration (context=0x7f9bc4000bf0, may_block=may_block@entry=1) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3981
#4  0x00007f9bf08aaa63 in QEventDispatcherGlib::processEvents (this=0x7f9bc4000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#5  0x00007f9bf085200b in QEventLoop::exec (this=this@entry=0x7f9bd5160ce0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f9bf06aafc6 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f9bf22f7ee6 in ?? () from /usr/lib64/libQt5Quick.so.5
#8  0x00007f9bf06ac324 in QThreadPrivate::start (arg=0x7f9bdc00a8b0) at thread/qthread_unix.cpp:361
#9  0x00007f9bef8e7408 in start_thread (arg=<optimized out>) at pthread_create.c:486
#10 0x00007f9bf029c7ff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f9bd6a01700 (LWP 1295)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55705f613604) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55705f6135b0, cond=0x55705f6135d8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55705f6135d8, mutex=0x55705f6135b0) at pthread_cond_wait.c:655
#3  0x00007f9bf06b2c6b in QWaitConditionPrivate::wait (deadline=..., this=0x55705f6135b0) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x55705f4cd6f0, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f9bf06b2d69 in QWaitCondition::wait (this=0x55705f4cd6f8, mutex=0x55705f4cd6f0, time=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qdeadlinetimer.h:68
#6  0x00007f9bf237b3a9 in ?? () from /usr/lib64/libQt5Quick.so.5
#7  0x00007f9bf237b60a in ?? () from /usr/lib64/libQt5Quick.so.5
#8  0x00007f9bf06ac324 in QThreadPrivate::start (arg=0x55705f4cd670) at thread/qthread_unix.cpp:361
#9  0x00007f9bef8e7408 in start_thread (arg=<optimized out>) at pthread_create.c:486
#10 0x00007f9bf029c7ff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f9be174d700 (LWP 1294)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55705f206078) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55705f206028, cond=0x55705f206050) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55705f206050, mutex=0x55705f206028) at pthread_cond_wait.c:655
#3  0x00007f9be195872b in ?? () from /usr/lib64/dri/i965_dri.so
#4  0x00007f9be1958357 in ?? () from /usr/lib64/dri/i965_dri.so
#5  0x00007f9bef8e7408 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6  0x00007f9bf029c7ff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f9be35ef700 (LWP 1293)):
#0  0x00007f9bf0290773 in __GI___poll (fds=0x7f9bd8004a00, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f9bee9f3886 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f9bd8004a00, timeout=<optimized out>, context=0x7f9bd8000bf0) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:4221
#2  g_main_context_iterate (context=context@entry=0x7f9bd8000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3915
#3  0x00007f9bee9f39ac in g_main_context_iteration (context=0x7f9bd8000bf0, may_block=may_block@entry=1) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3981
#4  0x00007f9bf08aaa63 in QEventDispatcherGlib::processEvents (this=0x7f9bd8000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#5  0x00007f9bf085200b in QEventLoop::exec (this=this@entry=0x7f9be35eed00, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f9bf06aafc6 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f9bf2028915 in ?? () from /usr/lib64/libQt5Qml.so.5
#8  0x00007f9bf06ac324 in QThreadPrivate::start (arg=0x55705ef98ca0) at thread/qthread_unix.cpp:361
#9  0x00007f9bef8e7408 in start_thread (arg=<optimized out>) at pthread_create.c:486
#10 0x00007f9bf029c7ff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f9be8b06700 (LWP 1292)):
#0  g_mutex_unlock (mutex=0x7f9bdc000bf0) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gthread-posix.c:1355
#1  0x00007f9bee9f39b6 in g_main_context_iteration (context=0x7f9bdc000bf0, may_block=may_block@entry=1) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3982
#2  0x00007f9bf08aaa7b in QEventDispatcherGlib::processEvents (this=0x7f9bdc000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#3  0x00007f9bf085200b in QEventLoop::exec (this=this@entry=0x7f9be8b05cf0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#4  0x00007f9bf06aafc6 in QThread::exec (this=this@entry=0x7f9bf112eda0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#5  0x00007f9bf109ece5 in QDBusConnectionManager::run (this=0x7f9bf112eda0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#6  0x00007f9bf06ac324 in QThreadPrivate::start (arg=0x7f9bf112eda0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:361
#7  0x00007f9bef8e7408 in start_thread (arg=<optimized out>) at pthread_create.c:486
#8  0x00007f9bf029c7ff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f9be96d0700 (LWP 1291)):
#0  0x00007f9bf0290773 in __GI___poll (fds=0x7f9be96cfc28, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f9bf2762cf7 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f9bf276491a in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f9bea231cb8 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f9bf06ac324 in QThreadPrivate::start (arg=0x55705eec1740) at thread/qthread_unix.cpp:361
#5  0x00007f9bef8e7408 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6  0x00007f9bf029c7ff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f9bea905880 (LWP 1290)):
[KCrash Handler]
#5  0x00007f9bbc64ffa6 in JobModel::updateJob(int, KCupsJob const&) () from /usr/lib64/libkcupslib.so
#6  0x00007f9bbc651fef in JobModel::insertJob(int, KCupsJob const&) () from /usr/lib64/libkcupslib.so
#7  0x00007f9bbc652494 in JobModel::getJobFinished(KCupsRequest*) () from /usr/lib64/libkcupslib.so
#8  0x00007f9bf087f9fa in QObject::event (this=0x5570627c4830, e=<optimized out>) at kernel/qobject.cpp:1260
#9  0x00007f9bf13224c1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#10 0x00007f9bf13298b8 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#11 0x00007f9bf08535e1 in QCoreApplication::notifyInternal2 (receiver=0x5570627c4830, event=0x7f9bb4018d80) at kernel/qcoreapplication.cpp:1060
#12 0x00007f9bf0856b35 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55705ee9a6b0) at kernel/qcoreapplication.cpp:1799
#13 0x00007f9bf08ab043 in postEventSourceDispatch (s=0x55705ef02220) at kernel/qeventdispatcher_glib.cpp:276
#14 0x00007f9bee9f367d in g_main_dispatch (context=0x7f9be4004ff0) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3182
#15 g_main_context_dispatch (context=context@entry=0x7f9be4004ff0) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3847
#16 0x00007f9bee9f3918 in g_main_context_iterate (context=context@entry=0x7f9be4004ff0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3920
#17 0x00007f9bee9f39ac in g_main_context_iteration (context=0x7f9be4004ff0, may_block=may_block@entry=1) at /usr/src/debug/dev-libs/glib-2.58.3/glib-2.58.3/glib/gmain.c:3981
#18 0x00007f9bf08aaa63 in QEventDispatcherGlib::processEvents (this=0x55705ef05770, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#19 0x00007f9bf085200b in QEventLoop::exec (this=this@entry=0x7ffc16d41a90, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#20 0x00007f9bf085a862 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#21 0x000055705d710290 in ?? ()
#22 0x00007f9bf01baecb in __libc_start_main (main=0x55705d70f740, argc=3, argv=0x7ffc16d41d18, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc16d41d08) at ../csu/libc-start.c:308
#23 0x000055705d71070a in _start ()
[Inferior 1 (process 1290) detached]

Reported using DrKonqi
Comment 1 Markus Rathgeb 2019-07-03 06:23:02 UTC
While reading the stacktrace myself and realized the last method "JobModel::updateJob(int, KCupsJob const&)" I opened "127.0.0.1:631" the CUPS webpage.
I cancelled all remaining print jobs.

After that the plasmashell seems to work again.

For me the problem is now resolved, but the potential error still exists in the code base.
I don't think the state of the printers should be able to crash the whole plasmashell and stops them from working...

Do you agree that we should keep that bug report open until the cause is really solved?
Comment 2 Markus Rathgeb 2019-07-03 06:47:21 UTC
Isn't it a problem of the "print-manager" AND "plasmashell"?

* The print-manager should not crash
* The plasmashell should not crash if the print-manager crashes
Comment 3 David Edmundson 2019-07-03 08:48:53 UTC
Any applet can bring plasma shell down. 
That's not ideal, but fixing is not really within the scope of a bug.

This is purely a print-manager problem. Please install debug symbols for print-manager and upload a new trace.


 As a temporary workaround disable/remove that plasmoid.
Comment 4 Markus Rathgeb 2019-07-03 08:58:40 UTC
>> I cancelled all remaining print jobs.

>> After that the plasmashell seems to work again.

> This is purely a print-manager problem. Please install debug symbols for print-manager and upload a new trace.

Wired, as I already applied the workaround described above (cancelled all print jobs).
I cannot reproduce the error adding new print jobs to that printer anymore.

If I am able to trigger the crash again, I will add further traces.
Comment 5 Fabian Vogt 2019-07-08 09:05:50 UTC

*** This bug has been marked as a duplicate of bug 326289 ***