Bug 222630 - kded4 crash related to Phonon and ALSA [___sprintf_chk, snd_device_name_hint, PhononServer::findVirtualDevices]
Summary: kded4 crash related to Phonon and ALSA [___sprintf_chk, snd_device_name_hint,...
Status: RESOLVED WORKSFORME
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: kded module for audio device listing (show other bugs)
Version: 4.4.3 (KDE 4.6.x)
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Harald Sitter
URL:
Keywords:
: 258829 264538 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-14 00:56 UTC by Wayne E. Nail
Modified: 2011-03-02 03:29 UTC (History)
4 users (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 Wayne E. Nail 2010-01-14 00:56:05 UTC
Application that crashed: kded4
Version of the application: $Id: kded.cpp 1031638 2009-10-05 16:59:11Z lunakl $
KDE Version: 4.3.4 (KDE 4.3.4)
Qt Version: 4.5.3
Operating System: Linux 2.6.30.10-105.fc11.i686.PAE i686
Distribution: "Fedora release 11 (Leonidas)"

What I was doing when the application crashed:
After package update and reboot, upon desktop presentation abrt reports KDE Daemon crashed with Signal 11.

This same behavior has been part of Fedora 12 here on a different PC with different architecture (CPU brand, chipset, etc) and has been reported by me as: 

https://bugs.kde.org/show_bug.cgi?id=220190

...which has been marked as a duplicate as referenced from that bug.

My point is that this behavior is *new* to F11, having moved back to F11 after an update including one of these elements (from /var/log/yum.log):

Jan 13 18:31:36 Updated: selinux-policy-3.6.12-93.fc11.noarch
Jan 13 18:32:03 Updated: selinux-policy-targeted-3.6.12-93.fc11.noarch
Jan 13 18:32:40 Updated: kdebase-workspace-debuginfo-4.3.4-4.fc11.i586
Jan 13 18:32:47 Updated: libpurple-2.6.5-1.fc11.i586
Jan 13 18:32:48 Updated: ksysguardd-4.3.4-4.fc11.i586
Jan 13 18:32:49 Updated: fluidsynth-libs-1.0.9-5.fc11.i586
Jan 13 18:32:52 Updated: system-config-printer-libs-1.1.16-8.fc11.i586
Jan 13 18:33:17 Updated: pidgin-2.6.5-1.fc11.i586
Jan 13 18:33:18 Updated: id3v2-0.1.11-10.fc11.i586
Jan 13 18:33:24 Updated: transmission-1.77-2.fc11.i586
Jan 13 18:33:26 Updated: system-config-printer-1.1.16-8.fc11.i586
Jan 13 18:33:27 Updated: kdebase-workspace-libs-4.3.4-4.fc11.i586
Jan 13 18:33:39 Updated: kdebase-workspace-4.3.4-4.fc11.i586
Jan 13 18:33:40 Updated: kdebase-workspace-devel-4.3.4-4.fc11.i586
Jan 13 18:33:42 Updated: kdm-4.3.4-4.fc11.i586


 -- Backtrace:
Application: KDE Daemon (kded4), signal: Segmentation fault
[KCrash Handler]
#6  0x0069ca66 in _IO_vfprintf_internal (s=0xbf9b4cc0, format=0x47bf338 "%s.%s", ap=0xbf9b4da0 "\n}2\2card\350M\233\277\264\340r\4\210\225C\b\n}2\2\370M\233\277\3") at vfprintf.c:1580
#7  0x0074dee7 in ___vsprintf_chk (s=0x840ba90 "pcm.\260c|", flags=1, slen=128, format=0x47bf338 "%s.%s", args=0xbf9b4da0 "\n}2\2card\350M\233\277\264\340r\4\210\225C\b\n}2\2\370M\233\277\3")
    at vsprintf_chk.c:87
#8  0x0074de2d in ___sprintf_chk (s=0x840ba90 "pcm.\260c|", flags=1, slen=128, format=0x47bf338 "%s.%s") at sprintf_chk.c:33
#9  0x04739214 in ?? () from /lib/libasound.so.2
#10 0x0473a5b2 in snd_device_name_hint () from /lib/libasound.so.2
#11 0x02312dbd in PhononServer::findVirtualDevices (this=0x8441d78) at /usr/src/debug/kdebase-runtime-4.3.4/phonon/kded-module/phononserver.cpp:167
#12 0x02317e96 in PhononServer::findDevices (this=0x8441d78) at /usr/src/debug/kdebase-runtime-4.3.4/phonon/kded-module/phononserver.cpp:710
#13 0x0231acf6 in PhononServer::PhononServer(struct QObject *, const QList<QVariant> &) (this=0x8441d78, parent=0x82212f0)
    at /usr/src/debug/kdebase-runtime-4.3.4/phonon/kded-module/phononserver.cpp:69
#14 0x023217d8 in KPluginFactory::createInstance<PhononServer, QObject> (parentWidget=0x0, parent=0x82212f0, args=@0xbf9b5844) at /usr/include/kde4/kpluginfactory.h:461
#15 0x0309e515 in KPluginFactory::create (this=0x8397b48, iface=0x30e58a0 "KDEDModule", parentWidget=0x0, parent=0x82212f0, args=@0xbf9b5844, keyword=@0xbf9b5838)
    at /usr/src/debug/kdelibs-4.3.4/kdecore/util/kpluginfactory.cpp:191
#16 0x0058743e in KPluginFactory::create<KDEDModule> (args=<value optimized out>, parent=<value optimized out>, this=<value optimized out>)
    at /usr/src/debug/kdelibs-4.3.4/kdecore/util/kpluginfactory.h:491
#17 Kded::loadModule (args=<value optimized out>, parent=<value optimized out>, this=<value optimized out>) at /usr/src/debug/kdelibs-4.3.4/kded/kded.cpp:380
#18 0x00587c8f in Kded::loadModule (this=0x82212f0, obj=@0xbf9b5938, onDemand=<value optimized out>) at /usr/src/debug/kdelibs-4.3.4/kded/kded.cpp:334
#19 0x00587eef in Kded::messageFilter (message=@0xbf9b5a0c) at /usr/src/debug/kdelibs-4.3.4/kded/kded.cpp:195
#20 0x050ebbb0 in QDBusConnectionPrivate::handleMessage (this=0x821f6a8, amsg=@0xbf9b5a0c) at qdbusintegrator.cpp:526
#21 0x050ec020 in qDBusSignalFilter (connection=0x82244a8, message=0x838b5e0, data=0x821f6a8) at qdbusintegrator.cpp:517
#22 0x00dac87d in dbus_connection_dispatch (connection=0x82244a8) at dbus-connection.c:4406
#23 0x050df183 in q_dbus_connection_dispatch (connection=<value optimized out>) at ./qdbus_symbols_p.h:113
#24 QDBusConnectionPrivate::doDispatch (connection=<value optimized out>) at qdbusintegrator.cpp:1067
#25 0x050df28d in QDBusConnectionPrivate::socketRead (this=0x821f6a8, fd=5) at qdbusintegrator.cpp:1087
#26 0x05120587 in QDBusConnectionPrivate::qt_metacall (this=0x821f6a8, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbf9b5c68) at .moc/release-shared/moc_qdbusconnection_p.cpp:89
#27 0x052e2dc3 in QMetaObject::activate (sender=0x8322af0, from_signal_index=4, to_signal_index=4, argv=0xbf9b5c68) at kernel/qobject.cpp:3112
#28 0x052e3a22 in QMetaObject::activate (sender=0x8322af0, m=0x53be710, local_signal_index=0, argv=0xbf9b5c68) at kernel/qobject.cpp:3186
#29 0x0531cf43 in QSocketNotifier::activated (this=0x8322af0, _t1=5) at .moc/release-shared/moc_qsocketnotifier.cpp:83
#30 0x052e77b7 in QSocketNotifier::event (this=0x8322af0, e=0xbf9b6024) at kernel/qsocketnotifier.cpp:316
#31 0x0262d8b4 in QApplicationPrivate::notify_helper (this=0x821c800, receiver=0x8322af0, e=0xbf9b6024) at kernel/qapplication.cpp:4065
#32 0x02635029 in QApplication::notify (this=0xbf9b6370, receiver=0x8322af0, e=0xbf9b6024) at kernel/qapplication.cpp:3605
#33 0x03aee81a in KApplication::notify (this=0xbf9b6370, receiver=0x8322af0, event=0xbf9b6024) at /usr/src/debug/kdelibs-4.3.4/kdeui/kernel/kapplication.cpp:302
#34 0x052cd0ab in QCoreApplication::notifyInternal (this=0xbf9b6370, receiver=0x8322af0, event=0xbf9b6024) at kernel/qcoreapplication.cpp:610
#35 0x052f7e1a in QCoreApplication::sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:213
#36 socketNotifierSourceDispatch (event=<value optimized out>, receiver=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:110
#37 0x00a02308 in g_main_dispatch (context=<value optimized out>) at gmain.c:1824
#38 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2377
#39 0x00a059e0 in g_main_context_iterate (context=0x821e868, block=<value optimized out>, dispatch=1, self=0x821c3c0) at gmain.c:2455
#40 0x00a05b13 in IA__g_main_context_iteration (context=0x821e868, may_block=1) at gmain.c:2518
#41 0x052f7b7c in QEventDispatcherGlib::processEvents (this=0x8202858, flags={i = 36}) at kernel/qeventdispatcher_glib.cpp:327
#42 0x026ccc45 in QGuiEventDispatcherGlib::processEvents (this=0x8202858, flags={i = 36}) at kernel/qguieventdispatcher_glib.cpp:202
#43 0x052cb639 in QEventLoop::processEvents (this=0xbf9b62c4, flags={i = 36}) at kernel/qeventloop.cpp:149
#44 0x052cba8a in QEventLoop::exec (this=0xbf9b62c4, flags={i = 0}) at kernel/qeventloop.cpp:201
#45 0x052cdf0f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#46 0x0262d737 in QApplication::exec () at kernel/qapplication.cpp:3525
#47 0x0058994e in kdemain (argc=1, argv=0xbf9b6594) at /usr/src/debug/kdelibs-4.3.4/kded/kded.cpp:936
#48 0x0804868b in main (argc=1, argv=0xbf9b6594) at /usr/src/debug/kdelibs-4.3.4/i586-redhat-linux-gnu/kded/kded4_dummy.cpp:3

Reported using DrKonqi
Comment 1 Christoph Feck 2010-01-14 11:10:42 UTC
This looks like a problem in alsa.
Comment 2 Myriam Schweingruber 2010-04-06 15:04:32 UTC
Is this still valid with KDE SC 4.4.2/Phonon 4.4.0?
Comment 3 Wayne E. Nail 2010-04-06 15:58:14 UTC
Myriam--

This issue no longer occurs in Fedora 11 using KDE 4.4.1/Phonon 4.3.80 nor does it appear in Fedora 12 using KDE 4.4.1/Phonon 4.4.0.

My best recollection is that it was fixed when KDE updated to 4.4.x
Comment 4 Myriam Schweingruber 2010-04-09 09:19:32 UTC
Nice :) Thank you for your feedback.
Comment 5 Myriam Schweingruber 2010-12-05 22:47:19 UTC
Reopened based on duplicate.
Comment 6 Myriam Schweingruber 2010-12-05 22:47:34 UTC
*** Bug 258829 has been marked as a duplicate of this bug. ***
Comment 7 Myriam Schweingruber 2010-12-05 22:48:01 UTC
Confirmed by duplicate
Comment 8 Dario Andres 2011-01-29 14:30:34 UTC
[Comment from a bug triager]
Another related report: bug 228840.
Another KDE SC 4.4.5 case: bug 264538
Comment 9 Dario Andres 2011-01-29 14:30:43 UTC
*** Bug 264538 has been marked as a duplicate of this bug. ***
Comment 10 Harald Sitter 2011-03-02 03:29:02 UTC
I have only seen one report that includes all stack frames unfortunately and that was a crash in some UPNP thread it would appear.

Please make sure that the backend actually lists all stack frames (i.e. the first line start with #0, the second with #1 ...).

Dismissing this due to inconclusive backtraces for now. But really Phonon would not crash there unless it is a bug in Alsa or another part of the application takes Phonon down with it.