Bug 273758 - KMix crashes when new ALSA card is added
Summary: KMix crashes when new ALSA card is added
Status: CLOSED FIXED
Alias: None
Product: kmix
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Christian Esken
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 22:58 UTC by Alexey Chernov
Modified: 2012-08-04 08:39 UTC (History)
1 user (show)

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


Attachments
New crash information added by DrKonqi (9.18 KB, text/plain)
2011-07-03 07:23 UTC, Javantea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Chernov 2011-05-20 22:58:00 UTC
Application: kmix (3.8)
KDE Platform Version: 4.6.1 (4.6.1) (Compiled from sources)
Qt Version: 4.7.2
Operating System: Linux 2.6.38.5 x86_64

-- Information about the crash:
- What I was doing when the application crashed:
KMix crashes every time when new card is added to ALSA (e.g. hotplug or module insert).

-- Backtrace:
Application: KMix (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fb9533e4760 (LWP 2176))]

Thread 2 (Thread 0x7fb928756710 (LWP 2187)):
#0  0x00007fb95007f273 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fb94c996ac9 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#2  0x00007fb94c996eac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fb951ec2dc6 in QEventDispatcherGlib::processEvents (this=0x27a1390, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fb951e91b12 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007fb951e91ef5 in QEventLoop::exec (this=0x7fb928755de0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007fb951d8f717 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#7  0x00007fb951e6f520 in QInotifyFileSystemWatcherEngine::run (this=0x27a0ae0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fb951d9291a in QThreadPrivate::start (arg=0x27a0ae0) at thread/qthread_unix.cpp:320
#9  0x00007fb951af0aca in start_thread (arg=<value optimized out>) at pthread_create.c:297
#10 0x00007fb95008858d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fb9533e4760 (LWP 2176)):
[KCrash Handler]
#6  0x00007fb951dd9939 in QString::operator== (this=0x282e6e0, other=...) at tools/qstring.cpp:2139
#7  0x00007fb934e1ff22 in KMixWindow::recreateGUI (this=0x2568230, saveConfig=<value optimized out>, mixerId=<value optimized out>, forceNewTab=<value optimized out>)
    at /usr/src/packages/kde4/4.6.1/kdemultimedia-4.6.1/kmix/apps/kmix.cpp:550
#8  0x00007fb934e204b0 in KMixWindow::plugged (this=0x2568230, driverName=<value optimized out>, dev=...) at /usr/src/packages/kde4/4.6.1/kdemultimedia-4.6.1/kmix/apps/kmix.cpp:743
#9  0x00007fb934e20d50 in KMixWindow::qt_metacall (this=0x2568230, _c=<value optimized out>, _id=<value optimized out>, _a=0x7fffe9f01520)
    at /usr/src/packages/kde4/4.6.1/kdemultimedia-4.6.1/build/kmix/kmix.moc:134
#10 0x00007fb951ead98f in QMetaObject::activate (sender=0x279d420, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x273614071) at kernel/qobject.cpp:3278
#11 0x00007fb934e43719 in KMixDeviceManager::plugged (this=0x282e6e0, _t1=0x7fb934e58962 "ALSA", _t2=<value optimized out>, _t3=<value optimized out>)
    at /usr/src/packages/kde4/4.6.1/kdemultimedia-4.6.1/build/kmix/kmixdevicemanager.moc:95
#12 0x00007fb934e43a32 in KMixDeviceManager::pluggedSlot (this=0x279d420, udi=...) at /usr/src/packages/kde4/4.6.1/kdemultimedia-4.6.1/kmix/core/kmixdevicemanager.cpp:134
#13 0x00007fb934e43bf0 in KMixDeviceManager::qt_metacall (this=0x279d420, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe9f017a0)
    at /usr/src/packages/kde4/4.6.1/kdemultimedia-4.6.1/build/kmix/kmixdevicemanager.moc:82
#14 0x00007fb951ead98f in QMetaObject::activate (sender=0x275aef0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x273614071) at kernel/qobject.cpp:3278
#15 0x00007fb93b06e112 in Solid::DeviceNotifier::deviceAdded (this=0x282e6e0, _t1=<value optimized out>) at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/build/solid/solid/devicenotifier.moc:87
#16 0x00007fb93b06f11c in Solid::DeviceManagerPrivate::qt_metacall (this=0x275aef0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe9f018d0)
    at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/build/solid/solid/devicemanager_p.moc:79
#17 0x00007fb951ead98f in QMetaObject::activate (sender=0x279d460, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x273614071) at kernel/qobject.cpp:3278
#18 0x00007fb93b081f22 in Solid::Ifaces::DeviceManager::deviceAdded (this=0x282e6e0, _t1=<value optimized out>)
    at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/build/solid/solid/ifaces/devicemanager.moc:87
#19 0x00007fb93b0946e5 in Solid::Backends::UDev::UDevManager::slotDeviceAdded (this=0x279d460, device=<value optimized out>)
    at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/solid/solid/backends/udev/udevmanager.cpp:203
#20 0x00007fb93b06b4fd in Solid::Backends::UDev::UDevManager::qt_metacall (this=0x279d460, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe9f01a60)
    at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/build/solid/solid/moc_udevmanager.cpp:77
#21 0x00007fb951ead98f in QMetaObject::activate (sender=0x279d4a0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x273614071) at kernel/qobject.cpp:3278
#22 0x00007fb93b09af92 in UdevQt::Client::deviceAdded (this=0x282e6e0, _t1=<value optimized out>) at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/build/solid/solid/udevqt.moc:132
#23 0x00007fb93b09b6d1 in UdevQt::ClientPrivate::_uq_monitorReadyRead (this=0x279ff10, fd=<value optimized out>)
    at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/solid/solid/backends/shared/udevqtclient.cpp:105
#24 0x00007fb93b09bbc8 in UdevQt::Client::qt_metacall (this=0x279d4a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe9f01c00)
    at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/build/solid/solid/udevqt.moc:93
#25 0x00007fb951ead98f in QMetaObject::activate (sender=0x27a00c0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x273614071) at kernel/qobject.cpp:3278
#26 0x00007fb951efeace in QSocketNotifier::activated (this=0x282e6e0, _t1=13) at .moc/debug-shared/moc_qsocketnotifier.cpp:89
#27 0x00007fb951eb2d73 in QSocketNotifier::event (this=0x27a00c0, e=0x7fffe9f022d0) at kernel/qsocketnotifier.cpp:317
#28 0x00007fb950f1b780 in QApplicationPrivate::notify_helper (this=0x251c860, receiver=0x27a00c0, e=0x7fffe9f022d0) at kernel/qapplication.cpp:4462
#29 0x00007fb950f23b27 in QApplication::notify (this=0x2512d00, receiver=0x27a00c0, e=0x7fffe9f022d0) at kernel/qapplication.cpp:4341
#30 0x00007fb952ec2b21 in KApplication::notify (this=0x2512d00, receiver=0x27a00c0, event=0x7fffe9f022d0) at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/kdeui/kernel/kapplication.cpp:311
#31 0x00007fb951e92f0b in QCoreApplication::notifyInternal (this=0x2512d00, receiver=0x27a00c0, event=0x7fffe9f022d0) at kernel/qcoreapplication.cpp:731
#32 0x00007fb951ec312a in QCoreApplication::sendEvent (source=0x2520040) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#33 socketNotifierSourceDispatch (source=0x2520040) at kernel/qeventdispatcher_glib.cpp:110
#34 0x00007fb94c9963fc in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#35 0x00007fb94c996ce8 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#36 0x00007fb94c996eac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#37 0x00007fb951ec2d73 in QEventDispatcherGlib::processEvents (this=0x2451cf0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#38 0x00007fb950fda3be in QGuiEventDispatcherGlib::processEvents (this=0x282e6e0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007fb951e91b12 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#40 0x00007fb951e91ef5 in QEventLoop::exec (this=0x7fffe9f02540, flags=) at kernel/qeventloop.cpp:201
#41 0x00007fb951e95c8b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#42 0x00007fb934e1d312 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/packages/kde4/4.6.1/kdemultimedia-4.6.1/kmix/apps/main.cpp:73
#43 0x00000000004079a3 in launch (argc=3, _name=<value optimized out>, args=<value optimized out>, cwd=<value optimized out>, envc=<value optimized out>, envs=<value optimized out>, reset_env=false, 
    tty=0x0, avoid_loops=false, startup_id_str=0x40adb6 "0") at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/kinit/kinit.cpp:734
#44 0x000000000040856c in handle_launcher_request (sock=8, who=<value optimized out>) at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/kinit/kinit.cpp:1226
#45 0x0000000000408d0a in handle_requests (waitForPid=<value optimized out>) at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/kinit/kinit.cpp:1419
#46 0x0000000000409217 in main (argc=4, argv=<value optimized out>, envp=<value optimized out>) at /usr/src/packages/kde4/4.6.1/kdelibs-4.6.1/kinit/kinit.cpp:1907

Reported using DrKonqi
Comment 1 Javantea 2011-07-03 07:23:06 UTC
Created attachment 61562 [details]
New crash information added by DrKonqi

kmix (3.8) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:

I plugged in an M-Audio Xsession pro and the Kmix window was open, it crashed instantly.

-- Backtrace (Reduced):
#6  0x00007f3957c4560c in KMixWindow::recreateGUI (this=0x1a74d90, saveConfig=<value optimized out>, mixerId=<value optimized out>, forceNewTab=<value optimized out>) at /var/tmp/portage/kde-base/kmix-4.6.2/work/kmix-4.6.2/kmix/apps/kmix.cpp:555
#7  0x00007f3957c45b26 in KMixWindow::plugged (this=0x1a74d90, driverName=<value optimized out>, dev=...) at /var/tmp/portage/kde-base/kmix-4.6.2/work/kmix-4.6.2/kmix/apps/kmix.cpp:748
#8  0x00007f3957c47390 in KMixWindow::qt_metacall (this=0x1a74d90, _c=<value optimized out>, _id=<value optimized out>, _a=0x7fff817850d0) at /var/tmp/portage/kde-base/kmix-4.6.2/work/kmix-4.6.2_build/kmix/kmix.moc:134
[...]
#10 0x00007f3957c69fa9 in KMixDeviceManager::plugged (this=0x7f3964200e60, _t1=0x7f3957c7daf5 "ALSA", _t2=<value optimized out>, _t3=<value optimized out>) at /var/tmp/portage/kde-base/kmix-4.6.2/work/kmix-4.6.2_build/kmix/kmixdevicemanager.moc:95
#11 0x00007f3957c6ae47 in KMixDeviceManager::pluggedSlot (this=0x1c896f0, udi=...) at /var/tmp/portage/kde-base/kmix-4.6.2/work/kmix-4.6.2/kmix/core/kmixdevicemanager.cpp:134
Comment 2 Christian Esken 2011-09-09 20:56:53 UTC
If you unplugged the card before, this crash can be explained. There is a unplug/replug problem since distributions changed from HAL to UDEV. It is fixed in KDE4.7.1 and trunk: http://mail.kde.org/pipermail/kde-hardware-devel/2011-August/001455.html

Can you retry with KDE4.7.1 or KDE4.8?
Comment 3 Alexey Chernov 2011-09-09 21:02:27 UTC
I didn't updated to 4.7.1 yet, but I'll test it as soon as it's updated.

I think this cause is possible as the bug appears when I remove/add ALSA module of V4L2 tuner. I think for UDEV it's as if the card was removed and inserted back.
Comment 4 Christian Esken 2012-08-04 08:26:47 UTC
No reply from bug reporter. Closing bug.
Comment 5 Alexey Chernov 2012-08-04 08:39:36 UTC
Sorry for no reply. Can't reproduce for 4.8.2 anymore so it seems to be fixed. Thanks for closing.