kded crashes (or eats memory) when CDROM or DVD is inserted

Bug #16491 reported by jtappin
14
Affects Status Importance Assigned to Milestone
kdelibs (Ubuntu)
Fix Released
Medium
Jonathan Riddell

Bug Description

If I have "Show device icons" (in kcontrol) enabled and the various CD and DVD options
selected for display; then on inserting a CD or DVD (just an ordinary data disk) kded
repeatedly crashes with a segfault on my iBook G3. If I disable the CD/DVD icons, then
the drive spins up and kded starts to use huge amounts of memory, until I eject the
disk. The system is using HAL/pmount as per default and the desktop icon appears as
expected for a USB pendrive.

The problem is NOT present on an x86 box with a similar installation.

System: iBook G3 600 MHz/384 Mb, kubuntu Hoary for PowerPC.

Revision history for this message
pvz (petrvz) wrote :

(In reply to comment #0)
> If I have "Show device icons" (in kcontrol) enabled and the various CD and DVD
options
> selected for display; then on inserting a CD or DVD (just an ordinary data
disk) kded
> repeatedly crashes with a segfault on my iBook G3. If I disable the CD/DVD
icons, then
> the drive spins up and kded starts to use huge amounts of memory, until I
eject the
> disk. The system is using HAL/pmount as per default and the desktop icon
appears as
> expected for a USB pendrive.
>
> The problem is NOT present on an x86 box with a similar installation.
>
> System: iBook G3 600 MHz/384 Mb, kubuntu Hoary for PowerPC.

I have the same issue on my iBook G4 1,2 Ghz, 756 Mb, Kubuntu Hoary for PowerPC

Revision history for this message
IgorStepin (hippoage) wrote :

I have the same issue on my Mac Mini with Kubuntu 5.10 RC install PPC CD.

How to reproduce:
1. On the clean system (installed just from CD) insert Video DVD
2. You will see:
2.1 drkonqi with message that kded crashed. They appear constantly. A lot of windows. CPU have 100% usage. The solution to
stop this is 'sudo eject' command (just 'eject' don't work). I'm tried to switch to the backtrace tab, but I get message:
there is no gdb. It's really bad idea for development version of distro.
2.2 Kaffeine with error message 'There is no decoders'. As I understand it's correct.

After DVD ejected, all windows closed kaffeine, kicker, and kwin hangs. I can move mouse but there is no action on mouse
click. Keyboard also looks like useless. I did not try to switch to console.

Revision history for this message
IgorStepin (hippoage) wrote :

Created an attachment (id=4577)
backtrace of kded crash from first drkonqi

Looks like there is some additional problems in the
KCrash::defaultCrashHandler() from /usr/lib/libkdecore.so.4.

After crash I'm executed 'sudo eject' to stop new drkonqi's. Then I'm closed
all drkonqi windows. Then I found that keyboard don't work and mouse only moves
and resizes windows (by different mouse buttons). System useable, only restart
helps.

Revision history for this message
danny (obiwan-mailmij) wrote :

This is probably a better backtrace:
0x0f152318 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#0 0x0f152318 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
#1 0x0f4bcb80 in QThread::wait () from /usr/lib/qt3/lib/libqt-mt.so.3
#2 0x0f1522fc in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
#3 0x00000004 in ?? ()
#4 0x0f1522fc in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
#5 0x7fcccad8 in ?? ()
#6 0x0f1522fc in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
#7 0x0e07089c in operator+ () from /usr/lib/kde3/kded_mediamanager.so

I used to get the sig 11 in create_mediamanager in kded_mediamanager.so, but after messing a bit with it and trying a
debug build i cannot get it to segfault always anymore (only on login now it seems), and if I get it, it looks like
above.

Revision history for this message
Steve (zeker) wrote :

I am also getting this problem. The kded deamon crashes whenever I put in a dvd.

Revision history for this message
Troy Williams (troywill1) wrote :

I also have this problem on insertion of a DVD. Mac Mini, Kubuntu 5.10.

Revision history for this message
William Hood (william-a-hood) wrote :

This is affecting me as well (Kubuntu 5.1, fully updated, on Mac Mini). Once
the disc is inserted, KDE Daemon crashes again and again spamming me with crash
report windows. An attempt to view the media:/ folder in Konqueror will show a
message that the KDE Media Manager is not running, however it is possible to
browse /media/cdrom. The eventual result of EVERY time I inserted a disk has
been a system crash, which did very bad things to my HFS+ partition.

An important note to those who, like me, are dual booting with Mac OS: Do NOT
try to repro this bug (IE: Insert a disc) while you have an HFS+ partition
mounted as writable. If you do, and Linux crashes, the HFS+ part is probably
going to get fried. You will need to run Disk Utility from your Mac OS install
disk to be able to boot Mac OS again... --or in my case you will have to
reinstall Mac OS (or shell out 80 bucks for Disk Warrior) because the HFS+
partition was corrupted beyond repair (oh well, --needed to shuffle my
partitions anyways).

Revision history for this message
Jg-jguk (jg-jguk) wrote :

Hi,

I also am seeing a kded crash, the call stack is in the kernel though. I'd
report it to the kernel list but I am running Kubuntu 5.10 specifically compiled
kernel:

Linux now2g 2.6.12-10-k7 #1 Fri Nov 18 12:46:18 UTC 2005 i686 GNU/Linux

I spotted it after inserting a DVD-R to try and burn.

I will attatch a log of my dmesg output, please let me know if you think this is
not the same problem as this bug. Also if you can pass on the report to the
kernel guys to try and avoid the process crashing in the kernel.

Kind regards
JG

Revision history for this message
Jg-jguk (jg-jguk) wrote :

Created an attachment (id=5536)
kded dmesg crash callstack 2.6.12-10-k7

Revision history for this message
Jonathan Riddell (jr) wrote :

Works fine for me on dapper with a mac mini.

Revision history for this message
Jg-jguk (jg-jguk) wrote :

RE: kded dmesg crash callstack 2.6.12-10-k7

I've not seen it since. Can it be passed onto the kernel developers? My kernel
was tainted and as I cant reproduce there is not much point in me trying without
the nvidia kernel module..

Or will the kernel developers look at a problem from a tainted kernel? They may
have even fixed this problem already.

Revision history for this message
Jg-jguk (jg-jguk) wrote :

RE: kded dmesg crash callstack 2.6.12-10-k7

Andrew Morton merged a patch into 2.6.15 to fix this.
Cheers
JG

Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

Closing, as it has been fixed in dapper according to the last couple of comments.

Changed in kdelibs:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.