Bug 357382

Summary: anything trying to play a sound via knotify causes knotify to crash
Product: [Unmaintained] kdelibs Reporter: Thomas Fjellstrom <thomas>
Component: knotifyAssignee: Olivier Goffart <ogoffart>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas Fjellstrom 2016-01-01 06:12:45 UTC
Application: knotify4 (4.14.13)
KDE Platform Version: 4.14.14
Qt Version: 4.8.7
Operating System: Linux 4.3.0-1-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
- What I was doing when the application crashed:

Many things. Send an email, a dialog pops up from any application, etc.

The crash can be reproduced every time.

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

Thread 2 (Thread 0x7f391e7e7700 (LWP 4545)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007f392b69a912 in __GI___pthread_mutex_lock (mutex=0x7f3930b72948 <_rtld_global+2312>) at ../nptl/pthread_mutex_lock.c:115
#2  0x00007f3930961a2d in tls_get_addr_tail (ti=0x7f392e1baf70, dtv=0x24eece0, the_map=0x7f3930b2a000) at dl-tls.c:765
#3  0x00007f392ded3660 in __cxa_get_globals () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007f392ded3589 in std::uncaught_exception() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007f392e232309 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtWarningMsg, msg=msg@entry=0x7f392e4337f0 "QSocketNotifier: Invalid socket %d and type '%s', disabling...", ap=ap@entry=0x7f391e7e69b0) at global/qglobal.cpp:2476
#6  0x00007f392e232601 in qWarning (msg=msg@entry=0x7f392e4337f0 "QSocketNotifier: Invalid socket %d and type '%s', disabling...") at global/qglobal.cpp:2575
#7  0x00007f392e37cc2b in socketNotifierSourceCheck (source=0x7f3918003000) at kernel/qeventdispatcher_glib.cpp:90
#8  0x00007f392b1b1c01 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f392b1b2170 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f392b1b22dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f392e37d3a6 in QEventDispatcherGlib::processEvents (this=0x7f39180008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#12 0x00007f392e34b2e1 in QEventLoop::processEvents (this=this@entry=0x7f391e7e6c80, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f392e34b655 in QEventLoop::exec (this=this@entry=0x7f391e7e6c80, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f392e23a559 in QThread::exec (this=this@entry=0x24eaf50) at thread/qthread.cpp:538
#15 0x00007f392e32b343 in QInotifyFileSystemWatcherEngine::run (this=0x24eaf50) at io/qfilesystemwatcher_inotify.cpp:265
#16 0x00007f392e23ce4c in QThreadPrivate::start (arg=0x24eaf50) at thread/qthread_unix.cpp:352
#17 0x00007f392b698284 in start_thread (arg=0x7f391e7e7700) at pthread_create.c:333
#18 0x00007f392db8b74d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f3930a6a900 (LWP 4544)):
[KCrash Handler]
#6  QBasicAtomicOps<4>::deref<int> (_q_value=@0x7f392f6a8e60: 1684625233) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86.h:219
#7  QBasicAtomicInteger<int>::deref (this=0x7f392f6a8e60 <qt_meta_stringdata_QWidget>) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:128
#8  QtPrivate::RefCount::deref (this=0x7f392f6a8e60 <qt_meta_stringdata_QWidget>) at ../../include/QtCore/../../src/corelib/tools/qrefcount.h:67
#9  QByteArray::~QByteArray (this=<optimized out>, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qbytearray.h:459
#10 rawStringData (index=<optimized out>, mo=<optimized out>) at kernel/qmetaobject.cpp:156
#11 objectClassName (m=<optimized out>) at kernel/qmetaobject.cpp:301
#12 QMetaObject::className (this=<optimized out>) at kernel/qmetaobject.cpp:311
#13 0x00007f391164f72f in QMetaTypeIdQObject<QWidget*, 8>::qt_metatype_id () at ../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1760
#14 0x00007f39115e9e77 in QMetaTypeId2<QWidget*>::qt_metatype_id () at ../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1584
#15 qMetaTypeId<QWidget*> () at ../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1726
#16 qRegisterMetaType<QWidget*> () at ../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1732
#17 qRegisterWidgetsVariant () at kernel/qwidgetsvariant.cpp:150
#18 (anonymous namespace)::qRegisterWidgetsVariant_ctor_class_::qRegisterWidgetsVariant_ctor_class_ (this=<optimized out>) at kernel/qwidgetsvariant.cpp:154
#19 __static_initialization_and_destruction_0 (__priority=65535, __initialize_p=1) at kernel/qwidgetsvariant.cpp:154
#20 _GLOBAL__sub_I_qwidgetsvariant.cpp(void) () at kernel/qwidgetsvariant.cpp:154
#21 0x00007f393095f26a in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffc7db7778, env=env@entry=0x7fffc7db7788) at dl-init.c:72
#22 0x00007f393095f37b in call_init (env=0x7fffc7db7788, argv=0x7fffc7db7778, argc=1, l=<optimized out>) at dl-init.c:30
#23 _dl_init (main_map=main_map@entry=0x25ebe80, argc=1, argv=0x7fffc7db7778, env=0x7fffc7db7788) at dl-init.c:120
#24 0x00007f39309638a8 in dl_open_worker (a=a@entry=0x7fffc7db57a8) at dl-open.c:569
#25 0x00007f393095f114 in _dl_catch_error (objname=objname@entry=0x7fffc7db5798, errstring=errstring@entry=0x7fffc7db57a0, mallocedp=mallocedp@entry=0x7fffc7db5797, operate=operate@entry=0x7f39309634e0 <dl_open_worker>, args=args@entry=0x7fffc7db57a8) at dl-error.c:187
#26 0x00007f3930962f63 in _dl_open (file=0x2618a30 "/usr/lib/vlc/plugins/gui/libqt4_plugin.so", mode=-2147483647, caller_dlopen=0x7f3917b5d7af <module_Load+31>, nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0x7fffc7db7788) at dl-open.c:653
#27 0x00007f392976cf09 in dlopen_doit (a=a@entry=0x7fffc7db59c0) at dlopen.c:66
#28 0x00007f393095f114 in _dl_catch_error (objname=0x23cf6b0, errstring=0x23cf6b8, mallocedp=0x23cf6a8, operate=0x7f392976ceb0 <dlopen_doit>, args=0x7fffc7db59c0) at dl-error.c:187
#29 0x00007f392976d4d9 in _dlerror_run (operate=operate@entry=0x7f392976ceb0 <dlopen_doit>, args=args@entry=0x7fffc7db59c0) at dlerror.c:163
#30 0x00007f392976cfa1 in __dlopen (file=file@entry=0x2618a30 "/usr/lib/vlc/plugins/gui/libqt4_plugin.so", mode=<optimized out>) at dlopen.c:87
#31 0x00007f3917b5d7af in module_Load (p_this=p_this@entry=0x2816748, path=path@entry=0x2618a30 "/usr/lib/vlc/plugins/gui/libqt4_plugin.so", p_handle=p_handle@entry=0x7fffc7db5a10, lazy=<optimized out>) at posix/plugin.c:60
#32 0x00007f3917b418ab in module_InitDynamic (obj=0x2816748, path=0x2618a30 "/usr/lib/vlc/plugins/gui/libqt4_plugin.so", fast=<optimized out>) at modules/bank.c:583
#33 0x00007f3917b41bd8 in AllocatePluginFile (st=0x7fffc7db5a80, relpath=<optimized out>, abspath=0x2618a30 "/usr/lib/vlc/plugins/gui/libqt4_plugin.so", bank=0x7fffc7db5c90) at modules/bank.c:526
#34 AllocatePluginDir (bank=bank@entry=0x7fffc7db5c90, maxdepth=3, maxdepth@entry=4, absdir=<optimized out>, reldir=0x28253b0 "gui") at modules/bank.c:488
#35 0x00007f3917b41b34 in AllocatePluginDir (bank=bank@entry=0x7fffc7db5c90, maxdepth=4, maxdepth@entry=5, absdir=absdir@entry=0x2825370 "/usr/lib/vlc/plugins", reldir=reldir@entry=0x0) at modules/bank.c:492
#36 0x00007f3917b420b4 in AllocatePluginPath (p_this=p_this@entry=0x2816748, path=0x2825370 "/usr/lib/vlc/plugins", mode=mode@entry=CACHE_USE) at modules/bank.c:401
#37 0x00007f3917b426aa in AllocateAllPlugins (p_this=0x2816748) at modules/bank.c:328
#38 module_LoadPlugins (obj=obj@entry=0x2816748) at modules/bank.c:184
#39 0x00007f3917ac871d in libvlc_InternalInit (p_libvlc=p_libvlc@entry=0x2816748, i_argc=i_argc@entry=11, ppsz_argv=ppsz_argv@entry=0x7fffc7db5e00) at libvlc.c:151
#40 0x00007f3917899a8b in libvlc_new (argc=10, argv=<optimized out>) at core.c:59
#41 0x00007f3917debf6b in LibVLC::init () at ../../src/utils/libvlc.cpp:117
#42 0x00007f3917dcd4d3 in Phonon::VLC::Backend::Backend (this=0x2583f30, parent=<optimized out>) at ../../src/backend.cpp:90
#43 0x00007f3917dce193 in qt_plugin_instance () at ../../src/backend.cpp:56
#44 0x00007f392e32fb3b in QPluginLoader::instance (this=this@entry=0x7fffc7db6400) at plugin/qpluginloader.cpp:204
#45 0x00007f391d992901 in Phonon::KdePlatformPlugin::createBackend (this=this@entry=0x257b320, newService=...) at ../../../phonon/platform_kde/kdeplatformplugin.cpp:130
#46 0x00007f391d99309f in Phonon::KdePlatformPlugin::createBackend (this=0x257b320) at ../../../phonon/platform_kde/kdeplatformplugin.cpp:183
#47 0x00007f3930703e06 in Phonon::FactoryPrivate::createBackend (this=this@entry=0x28ff1f0) at ../../phonon/factory.cpp:252
#48 0x00007f3930705258 in Phonon::Factory::backend (createWhenNull=createWhenNull@entry=true) at ../../phonon/factory.cpp:576
#49 0x00007f39307059a2 in Phonon::Factory::createAudioOutput (parent=0x2508cf0) at ../../phonon/factory.cpp:470
#50 0x00007f39306f903f in Phonon::AudioOutputPrivate::createBackendObject (this=0x28eb940) at ../../phonon/audiooutput.cpp:136
#51 0x00007f39306f652f in Phonon::AudioOutputPrivate::init (this=0x28eb940, c=Phonon::NotificationCategory) at ../../phonon/audiooutput.cpp:103
#52 0x000000000040f039 in Player::Player (this=0x294a500) at ../../knotify/notifybysound.cpp:58
#53 PlayerPool::getPlayer (this=0x24e0718) at ../../knotify/notifybysound.cpp:100
#54 0x0000000000410490 in NotifyBySound::notify (this=0x2536c30, eventId=10, config=<optimized out>) at ../../knotify/notifybysound.cpp:256
#55 0x000000000040bd31 in KNotify::emitEvent (this=this@entry=0x7fffc7db7630, e=e@entry=0x245d7d0) at ../../knotify/knotify.cpp:230
#56 0x000000000040d028 in KNotify::event (this=0x7fffc7db7630, event=..., appname=..., contexts=..., title=..., text=..., image=..., actions=..., timeout=-1, winId=16777762) at ../../knotify/knotify.cpp:149
#57 0x000000000040dbdd in KNotifyAdaptor::event (this=0x24b10e0, event=..., fromApp=..., contexts=..., title=..., text=..., image=..., actions=..., timeout=-1, winId=16777762) at ../../knotify/knotify.cpp:289
#58 0x000000000040df2c in KNotifyAdaptor::qt_static_metacall (_o=_o@entry=0x24b10e0, _id=_id@entry=4, _a=_a@entry=0x7fffc7db6ce0, _c=QMetaObject::InvokeMetaMethod) at ./knotify.moc:217
#59 0x000000000040e1a3 in KNotifyAdaptor::qt_static_metacall (_a=0x7fffc7db6ce0, _id=4, _c=QMetaObject::InvokeMetaMethod, _o=0x24b10e0) at ./knotify.moc:258
#60 KNotifyAdaptor::qt_metacall (this=0x24b10e0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fffc7db6ce0) at ./knotify.moc:259
#61 0x00007f392e6da035 in QDBusConnectionPrivate::deliverCall (this=this@entry=0x23c4510, object=object@entry=0x24b10e0, msg=..., metaTypes=..., slotIdx=8) at qdbusintegrator.cpp:950
#62 0x00007f392e6db62b in QDBusConnectionPrivate::activateCall (this=this@entry=0x23c4510, object=0x24b10e0, flags=flags@entry=273, msg=...) at qdbusintegrator.cpp:863
#63 0x00007f392e6dc2bd in QDBusConnectionPrivate::activateObject (this=0x23c4510, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1427
#64 0x00007f392e6dc4bb in QDBusActivateObjectEvent::placeMetaCall (this=0x2558110) at qdbusintegrator.cpp:1541
#65 0x00007f392e366f01 in QObject::event (this=0x7fffc7db7630, e=<optimized out>) at kernel/qobject.cpp:1222
#66 0x00007f392eff58dc in QApplicationPrivate::notify_helper (this=this@entry=0x23dbe90, receiver=receiver@entry=0x7fffc7db7630, e=e@entry=0x2558110) at kernel/qapplication.cpp:4570
#67 0x00007f392effc816 in QApplication::notify (this=this@entry=0x7fffc7db7610, receiver=receiver@entry=0x7fffc7db7630, e=e@entry=0x2558110) at kernel/qapplication.cpp:4356
#68 0x00007f392fd7771a in KApplication::notify (this=0x7fffc7db7610, receiver=0x7fffc7db7630, event=0x2558110) at ../../kdeui/kernel/kapplication.cpp:311
#69 0x00007f392e34ca6d in QCoreApplication::notifyInternal (this=0x7fffc7db7610, receiver=receiver@entry=0x7fffc7db7630, event=event@entry=0x2558110) at kernel/qcoreapplication.cpp:955
#70 0x00007f392e350526 in QCoreApplication::sendEvent (event=0x2558110, receiver=0x7fffc7db7630) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#71 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x23abc90) at kernel/qcoreapplication.cpp:1579
#72 0x00007f392e350803 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1472
#73 0x00007f392e37d233 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#74 postEventSourceDispatch (s=0x23dd420) at kernel/qeventdispatcher_glib.cpp:280
#75 0x00007f392b1b1fd7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#76 0x00007f392b1b2230 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#77 0x00007f392b1b22dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#78 0x00007f392e37d384 in QEventDispatcherGlib::processEvents (this=0x23ad590, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#79 0x00007f392f09fa76 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#80 0x00007f392e34b2e1 in QEventLoop::processEvents (this=this@entry=0x7fffc7db7540, flags=...) at kernel/qeventloop.cpp:149
#81 0x00007f392e34b655 in QEventLoop::exec (this=this@entry=0x7fffc7db7540, flags=...) at kernel/qeventloop.cpp:204
#82 0x00007f392e351629 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#83 0x00007f392eff406c in QApplication::exec () at kernel/qapplication.cpp:3828
#84 0x0000000000409a05 in main (argc=1, argv=0x7fffc7db7778) at ../../knotify/main.cpp:74

Reported using DrKonqi
Comment 1 Christoph Feck 2016-01-24 03:27:24 UTC

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