Bug 326749

Summary: knotify crashes frequently
Product: [Frameworks and Libraries] phonon-backend-vlc Reporter: Jonathan Kaye <jdkaye>
Component: generalAssignee: Harald Sitter <sitter>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: bcooksley, fabo, jb, martin.sandsmark, myriam
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jonathan Kaye 2013-10-27 16:13:10 UTC
Application: knotify4 (4.0)
KDE Platform Version: 4.10.5
Qt Version: 4.8.6
Operating System: Linux 3.11-5.dmz.1-liquorix-amd64 x86_64
Distribution: Debian GNU/Linux testing (jessie)

-- Information about the crash:
It crashes everytime I...
a. highlight a file in konqueror and hit the delete button on the menu
b. file a KDE bug report]
c. everytime KDE starts up
There are probably more contexts.

The crash can be reproduced every time.

-- Backtrace:
Application: KNotify (knotify4), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f7d13ae7780 (LWP 4546))]

Thread 3 (Thread 0x7f7d002f4700 (LWP 4590)):
#0  0x00007f7d10c9924d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f7d0e0ca194 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7d0e0ca29c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7d114154d6 in QEventDispatcherGlib::processEvents (this=0x7f7cf80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007f7d113e6f9f in QEventLoop::processEvents (this=this@entry=0x7f7d002f3db0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f7d113e7295 in QEventLoop::exec (this=this@entry=0x7f7d002f3db0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f7d112e391f in QThread::exec (this=this@entry=0x1bcd550) at thread/qthread.cpp:537
#7  0x00007f7d113c86c3 in QInotifyFileSystemWatcherEngine::run (this=0x1bcd550) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007f7d112e5fef in QThreadPrivate::start (arg=0x1bcd550) at thread/qthread_unix.cpp:349
#9  0x00007f7d0e5a1e0e in start_thread (arg=0x7f7d002f4700) at pthread_create.c:311
#10 0x00007f7d10ca49ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f7cfcea1700 (LWP 11521)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f7cff07c325 in ?? () from /usr/lib/libvlccore.so.5
#2  0x00007f7d0e5a1e0e in start_thread (arg=0x7f7cfcea1700) at pthread_create.c:311
#3  0x00007f7d10ca49ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f7d13ae7780 (LWP 4546)):
[KCrash Handler]
#6  0x00007f7d10bf11e5 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f7d10bf4398 in __GI_abort () at abort.c:90
#8  0x00007f7d10bea272 in __assert_fail_base (fmt=0x7f7d10d279c0 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7f7d0e5aadaf "mutex->__data.__owner == 0", file=file@entry=0x7f7d0e5ab39e "pthread_mutex_lock.c", line=line@entry=65, function=function@entry=0x7f7d0e5aae80 <__PRETTY_FUNCTION__.8368> "__pthread_mutex_lock") at assert.c:92
#9  0x00007f7d10bea322 in __GI___assert_fail (assertion=0x7f7d0e5aadaf "mutex->__data.__owner == 0", file=0x7f7d0e5ab39e "pthread_mutex_lock.c", line=65, function=0x7f7d0e5aae80 <__PRETTY_FUNCTION__.8368> "__pthread_mutex_lock") at assert.c:101
#10 0x00007f7d0e5a3dc9 in __GI___pthread_mutex_lock (mutex=0xfefefefefefefeff) at pthread_mutex_lock.c:65
#11 0x00007f7cff0e3911 in vlc_event_attach () from /usr/lib/libvlccore.so.5
#12 0x00007f7cfee420a8 in ?? () from /usr/lib/libvlc.so.5
#13 0x00007f7cfee421a4 in libvlc_media_new_location () from /usr/lib/libvlc.so.5
#14 0x00007f7cff38e471 in Phonon::VLC::Media::Media (this=0x1f27a20, mrl=..., parent=<optimized out>) at ../../src/media.cpp:32
#15 0x00007f7cff399e07 in Phonon::VLC::MediaObject::setupMedia (this=this@entry=0x1bb1050) at ../../src/mediaobject.cpp:520
#16 0x00007f7cff39a61e in Phonon::VLC::MediaObject::play (this=0x1bb1050) at ../../src/mediaobject.cpp:111
#17 0x000000000040f023 in play (this=0x1c5c290, file=...) at ../../knotify/notifybysound.cpp:63
#18 NotifyBySound::notify (this=0x1bcb890, eventId=9, config=0x1c23ad8) at ../../knotify/notifybysound.cpp:245
#19 0x000000000040b449 in KNotify::emitEvent (this=this@entry=0x7ffff43214e0, e=e@entry=0x1c23ad0) at ../../knotify/knotify.cpp:230
#20 0x000000000040be0f in KNotify::event (this=0x7ffff43214e0, event=..., appname=..., contexts=..., title=..., text=..., image=..., actions=..., timeout=timeout@entry=-1, winId=winId@entry=0) at ../../knotify/knotify.cpp:149
#21 0x000000000040c6a8 in KNotifyAdaptor::event (this=0x1bd6690, event=..., fromApp=..., contexts=..., title=..., text=..., image=..., actions=..., timeout=-1, winId=0) at ../../knotify/knotify.cpp:289
#22 0x000000000040ca30 in KNotifyAdaptor::qt_static_metacall (_o=0x11c2, _o@entry=0x1bd6690, _id=4546, _id@entry=4, _a=0x7ffff4320b40, _c=<optimized out>) at ./knotify.moc:217
#23 0x000000000040cb93 in qt_static_metacall (_a=0x7ffff4320b40, _id=4, _c=QMetaObject::InvokeMetaMethod, _o=0x1bd6690) at ./knotify.moc:258
#24 KNotifyAdaptor::qt_metacall (this=0x1bd6690, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7ffff4320b40) at ./knotify.moc:259
#25 0x00007f7d11773226 in QDBusConnectionPrivate::deliverCall (this=this@entry=0x19c3890, object=object@entry=0x1bd6690, msg=..., metaTypes=..., slotIdx=8) at qdbusintegrator.cpp:951
#26 0x00007f7d1177439b in QDBusConnectionPrivate::activateCall (this=this@entry=0x19c3890, object=0x1bd6690, flags=flags@entry=273, msg=...) at qdbusintegrator.cpp:863
#27 0x00007f7d11774e0d in QDBusConnectionPrivate::activateObject (this=0x19c3890, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1427
#28 0x00007f7d11774edb in QDBusActivateObjectEvent::placeMetaCall (this=0x19c3270) at qdbusintegrator.cpp:1541
#29 0x00007f7d1140087e in QObject::event (this=0x7ffff43214e0, e=<optimized out>) at kernel/qobject.cpp:1194
#30 0x00007f7d1206875c in QApplicationPrivate::notify_helper (this=this@entry=0x19e1e50, receiver=receiver@entry=0x7ffff43214e0, e=e@entry=0x19c3270) at kernel/qapplication.cpp:4567
#31 0x00007f7d1206edd0 in QApplication::notify (this=this@entry=0x7ffff43214c0, receiver=receiver@entry=0x7ffff43214e0, e=e@entry=0x19c3270) at kernel/qapplication.cpp:4353
#32 0x00007f7d134facfa in KApplication::notify (this=0x7ffff43214c0, receiver=0x7ffff43214e0, event=0x19c3270) at ../../kdeui/kernel/kapplication.cpp:311
#33 0x00007f7d113e833d in QCoreApplication::notifyInternal (this=0x7ffff43214c0, receiver=receiver@entry=0x7ffff43214e0, event=event@entry=0x19c3270) at kernel/qcoreapplication.cpp:949
#34 0x00007f7d113eb89f in sendEvent (event=0x19c3270, receiver=0x7ffff43214e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#35 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x19aa150) at kernel/qcoreapplication.cpp:1573
#36 0x00007f7d113ebd43 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1466
#37 0x00007f7d11415bf3 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#38 postEventSourceDispatch (s=0x19d1c30) at kernel/qeventdispatcher_glib.cpp:280
#39 0x00007f7d0e0c9ea6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f7d0e0ca1f8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f7d0e0ca29c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f7d114154b5 in QEventDispatcherGlib::processEvents (this=0x19d5d80, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#43 0x00007f7d12106896 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#44 0x00007f7d113e6f9f in QEventLoop::processEvents (this=this@entry=0x7ffff43213d0, flags=...) at kernel/qeventloop.cpp:149
#45 0x00007f7d113e7295 in QEventLoop::exec (this=this@entry=0x7ffff43213d0, flags=...) at kernel/qeventloop.cpp:204
#46 0x00007f7d113ec8db in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#47 0x00007f7d12066f1c in QApplication::exec () at kernel/qapplication.cpp:3828
#48 0x0000000000409a09 in main (argc=1, argv=0x7ffff4321628) at ../../knotify/main.cpp:73

Possible duplicates by query: bug 315521, bug 311955.

Reported using DrKonqi
Comment 1 Harald Sitter 2013-10-27 17:27:57 UTC
Please file a bug with Debian. Something in libvlc/pthread went bad and apparently that has not been reported with any other distributions.
Comment 2 Myriam Schweingruber 2013-10-27 18:20:17 UTC
*** Bug 326723 has been marked as a duplicate of this bug. ***
Comment 3 Jonathan Kaye 2013-10-27 18:37:48 UTC
As Harald Sitter suggested, replacing the VLC backend with Gstreamer solved the problem. Yes, there appears to be a problem in libvlc/pthread in Debian.
Thank you all for your help.