Bug 347759

Summary: Crashed when attempting to make a taskbar entry
Product: [Frameworks and Libraries] frameworks-knotifications Reporter: Sam Shiell <samopn>
Component: generalAssignee: Martin Klapetek <mklapetek>
Status: RESOLVED DUPLICATE    
Severity: crash CC: atomicis, kdelibs-bugs, pixionus
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sam Shiell 2015-05-15 13:11:51 UTC
Application: kded5 ()

Qt Version: 5.4.1
Operating System: Linux 3.19.0-16-generic x86_64
Distribution: Ubuntu 15.04

-- Information about the crash:
I had just set notifications to "mark taskbar entry" when the mains power was unplugged. On unplugging the mains power the crash occurs.

The crash can be reproduced every time.

-- Backtrace:
Application: kded5 (kded5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fcc8a638780 (LWP 2433))]

Thread 11 (Thread 0x7fcc7e57d700 (LWP 2434)):
#0  0x00007fcc89ff88dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fcc84d52b72 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fcc84d5464f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fcc8a5a8099 in QXcbEventReader::run (this=0x128f810) at qxcbconnection.cpp:1105
#4  0x00007fcc88302b0e in QThreadPrivate::start (arg=0x128f810) at thread/qthread_unix.cpp:337
#5  0x00007fcc87d396aa in start_thread (arg=0x7fcc7e57d700) at pthread_create.c:333
#6  0x00007fcc8a003eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7fcc5f5ef700 (LWP 2439)):
#0  0x00007fcc882faa21 in QMutex::lock (this=this@entry=0x1524ee8) at thread/qmutex.cpp:218
#1  0x00007fcc885995a9 in QMutexLocker (m=0x1524ee8, this=<synthetic pointer>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:128
#2  canWaitLocked (this=0x1524ec0) at ../../include/QtCore/5.4.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:243
#3  postEventSourcePrepare (timeout=<synthetic pointer>, s=0x7fcc500012d0) at kernel/qeventdispatcher_glib.cpp:254
#4  postEventSourceCheck (source=0x7fcc500012d0) at kernel/qeventdispatcher_glib.cpp:264
#5  0x00007fcc8781a8c1 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fcc8781ae60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fcc8781afcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007fcc88599c6c in QEventDispatcherGlib::processEvents (this=0x7fcc500008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#9  0x00007fcc8853e3e2 in QEventLoop::exec (this=this@entry=0x7fcc5f5eee00, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#10 0x00007fcc882fdb44 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#11 0x00007fcc677aecf7 in KCupsConnection::run() () from /usr/lib/x86_64-linux-gnu/libkcupslib.so
#12 0x00007fcc88302b0e in QThreadPrivate::start (arg=0x144ed20) at thread/qthread_unix.cpp:337
#13 0x00007fcc87d396aa in start_thread (arg=0x7fcc5f5ef700) at pthread_create.c:333
#14 0x00007fcc8a003eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7fcc5edee700 (LWP 2440)):
#0  0x00007fcc8785f7a4 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fcc8781a3f0 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fcc8781ade8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fcc8781afcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fcc88599c6c in QEventDispatcherGlib::processEvents (this=0x7fcc580008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#5  0x00007fcc8853e3e2 in QEventLoop::exec (this=this@entry=0x7fcc5edede40, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007fcc882fdb44 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#7  0x00007fcc88302b0e in QThreadPrivate::start (arg=0x1403530) at thread/qthread_unix.cpp:337
#8  0x00007fcc87d396aa in start_thread (arg=0x7fcc5edee700) at pthread_create.c:333
#9  0x00007fcc8a003eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7fcc4bde2700 (LWP 2460)):
#0  0x00007fcc89ff88dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fcc75894601 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007fcc75885b41 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007fcc758861de in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007fcc75886290 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007fcc75894596 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007fcc74de46c8 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-6.0.so
#7  0x00007fcc87d396aa in start_thread (arg=0x7fcc4bde2700) at pthread_create.c:333
#8  0x00007fcc8a003eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7fcc49be2700 (LWP 2461)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fcc8785f8ef in g_cond_wait () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fcc5d2ced0d in ?? () from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#3  0x00007fcc878422e8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fcc87841955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fcc87d396aa in start_thread (arg=0x7fcc49be2700) at pthread_create.c:333
#6  0x00007fcc8a003eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7fcc48d82700 (LWP 2462)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fcc8785f8ef in g_cond_wait () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fcc5d2ced0d in ?? () from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#3  0x00007fcc878422e8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fcc87841955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fcc87d396aa in start_thread (arg=0x7fcc48d82700) at pthread_create.c:333
#6  0x00007fcc8a003eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7fcc3fffe700 (LWP 2463)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fcc8785f8ef in g_cond_wait () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fcc5c795032 in ?? () from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#3  0x00007fcc5c796340 in gst_data_queue_pop () from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#4  0x00007fcc4a275201 in ?? () from /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstcoreelements.so
#5  0x00007fcc5d2ceb71 in ?? () from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#6  0x00007fcc878422e8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fcc87841955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007fcc87d396aa in start_thread (arg=0x7fcc3fffe700) at pthread_create.c:333
#9  0x00007fcc8a003eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7fcc3f7fd700 (LWP 2464)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fcc8785f8ef in g_cond_wait () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fcc5c77942d in gst_base_sink_wait_preroll () from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#3  0x00007fcc5c2ab31c in ?? () from /usr/lib/x86_64-linux-gnu/libgstaudio-1.0.so.0
#4  0x00007fcc5c77b947 in ?? () from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#5  0x00007fcc5c77ce14 in ?? () from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#6  0x00007fcc5d2a0e3f in ?? () from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#7  0x00007fcc5c78ac04 in ?? () from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#8  0x00007fcc5d2a0e3f in ?? () from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#9  0x00007fcc5c78ac04 in ?? () from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#10 0x00007fcc5d2a0e3f in ?? () from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#11 0x00007fcc5c78ac04 in ?? () from /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0
#12 0x00007fcc5d2a0e3f in ?? () from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#13 0x00007fcc4a278f4e in ?? () from /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstcoreelements.so
#14 0x00007fcc5d2ceb71 in ?? () from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#15 0x00007fcc878422e8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007fcc87841955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007fcc87d396aa in start_thread (arg=0x7fcc3f7fd700) at pthread_create.c:333
#18 0x00007fcc8a003eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7fcc3effc700 (LWP 2465)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fcc8785f8ef in g_cond_wait () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fcc5d2ced0d in ?? () from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#3  0x00007fcc878422e8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fcc87841955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fcc87d396aa in start_thread (arg=0x7fcc3effc700) at pthread_create.c:333
#6  0x00007fcc8a003eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fcc3e7fb700 (LWP 2466)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fcc8785f8ef in g_cond_wait () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fcc5d2ced0d in ?? () from /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
#3  0x00007fcc878422e8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fcc87841955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fcc87d396aa in start_thread (arg=0x7fcc3e7fb700) at pthread_create.c:333
#6  0x00007fcc8a003eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fcc8a638780 (LWP 2433)):
[KCrash Handler]
#6  operator& (f=Qt::WindowType_Mask, this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#7  windowType (this=<optimized out>) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:744
#8  isWindow (this=<optimized out>) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:752
#9  QWidget::window (this=0x0) at kernel/qwidget.cpp:4279
#10 0x00007fcc7cfdffd5 in topLevelWidget (this=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:294
#11 NotifyByTaskbar::notify (this=0x1492ab0, notification=0x15443c0, config=<optimized out>) at ../../src/notifybytaskbar.cpp:44
#12 0x00007fcc7cfc4b6f in KNotificationManager::notify (this=0x7fcc7d1f8e90 <(anonymous namespace)::Q_QGS_s_self::innerFunction()::holder>, n=n@entry=0x15443c0) at ../../src/knotificationmanager.cpp:177
#13 0x00007fcc7cfc32d8 in KNotification::sendEvent (this=0x15443c0) at ../../src/knotification.cpp:381
#14 0x00007fcc8857273a in QObject::event (this=0x15443c0, e=<optimized out>) at kernel/qobject.cpp:1245
#15 0x00007fcc899b1b2c in QApplicationPrivate::notify_helper (this=0x1278d20, receiver=0x15443c0, e=0x155c9f0) at kernel/qapplication.cpp:3720
#16 0x00007fcc899b7000 in QApplication::notify (this=0x7ffd12e68320, receiver=0x15443c0, e=0x155c9f0) at kernel/qapplication.cpp:3503
#17 0x00007fcc88540c2b in QCoreApplication::notifyInternal (this=0x7ffd12e68320, receiver=0x15443c0, event=event@entry=0x155c9f0) at kernel/qcoreapplication.cpp:935
#18 0x00007fcc88542c9b in sendEvent (event=0x155c9f0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:228
#19 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1278e90) at kernel/qcoreapplication.cpp:1552
#20 0x00007fcc88543298 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1410
#21 0x00007fcc88599843 in postEventSourceDispatch (s=0x12cfee0) at kernel/qeventdispatcher_glib.cpp:271
#22 0x00007fcc8781ac3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007fcc8781af20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007fcc8781afcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fcc88599c57 in QEventDispatcherGlib::processEvents (this=0x12c1060, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#26 0x00007fcc8853e3e2 in QEventLoop::exec (this=this@entry=0x7ffd12e68240, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#27 0x00007fcc8854602c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#28 0x00007fcc88ae231c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1510
#29 0x00007fcc899ad7a5 in QApplication::exec () at kernel/qapplication.cpp:2956
#30 0x00007fcc8a2d4321 in kdemain (argc=1, argv=<optimized out>) at ../../src/kded.cpp:846
#31 0x00007fcc89f1da40 in __libc_start_main (main=0x400720 <main(int, char**)>, argc=1, argv=0x7ffd12e68488, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd12e68478) at libc-start.c:289
#32 0x0000000000400759 in _start ()

Reported using DrKonqi
Comment 1 Martin Klapetek 2015-05-18 16:46:41 UTC
Thanks for the report.

This is a strange crash and I suspect file corruption somewhere. Can I ask what exactly do you have set to "mark taskbar entry"?
Comment 2 Sam Shiell 2015-05-19 07:10:36 UTC
Hi Martin

Thanks for getting back to me.

I had selected "Notifications" then "power management system" in the source dropdown. From there I set the AC Power unplugged and Charge complete events to mark a taskbar entry.

Actually I've set a number of events to mark a taskbar entry and none of them do anything, although the AC Power unplug is the only one that causes a crash. All the others just don't do anything at all (I've posted some questions on the forums about this).

You maybe should be aware that after upgrading to Plasma 5 I had the issue of the black screen of death, which I could only get around by deleting the configuration and cache folders...

Hope this helps. Let me know if you need anything else.

Regards

Samo
Comment 3 Martin Klapetek 2015-06-01 12:03:24 UTC
Which version of KDE Frameworks do you have installed?

This crash has been fixed in 5.11. 

Please update your libkf5notifications5 package when 5.11 becomes available in your updates and reopen bug 348233 if you can still reproduce then.

Thanks

*** This bug has been marked as a duplicate of bug 348233 ***
Comment 4 David Edmundson 2015-06-07 12:51:34 UTC
*** Bug 348747 has been marked as a duplicate of this bug. ***
Comment 5 David Edmundson 2015-06-08 15:11:37 UTC
*** Bug 348870 has been marked as a duplicate of this bug. ***