[Bug 378439] [NEW] Programs freeze when trying to open /dev/cdrom

Dima Ryazanov dima at gmail.com
Tue May 19 19:35:00 UTC 2009


Public bug reported:

Binary package hint: linux-image

I tried to burn an image to a CD-RW, but it failed at the very end. Now,
any attempt to open the device causes the program to go into an
interruptible sleep for a few minutes.

"dmesg" shows lots of errors:
[517672.388027] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[517672.388039] ata2.00: cmd a0/00:00:00:00:10/00:00:00:00:00/a0 tag 0 pio 4096 in
[517672.388041]          cdb 28 00 00 05 6f 9a 00 00  02 00 00 00 00 00 00 00
[517672.388042]          res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
[517672.388047] ata2.00: status: { DRDY }
[517672.388052] ata2: hard resetting link
[517672.873030] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[517672.873808] ata2.00: configured for PIO0
[517672.873828] ata2: EH complete
[517672.876049] end_request: I/O error, dev sr0, sector 1425000
[517672.876057] __ratelimit: 18 callbacks suppressed
[517672.876062] Buffer I/O error on device sr0, logical block 178125
[517672.876106] Buffer I/O error on device sr0, logical block 178125
[517672.876165] Buffer I/O error on device sr0, logical block 4
[517672.876177] Buffer I/O error on device sr0, logical block 5
[517672.876188] Buffer I/O error on device sr0, logical block 6
[517672.876199] Buffer I/O error on device sr0, logical block 7
[517672.876209] Buffer I/O error on device sr0, logical block 8
[517672.876219] Buffer I/O error on device sr0, logical block 9
[517672.876229] Buffer I/O error on device sr0, logical block 10
[517672.876240] Buffer I/O error on device sr0, logical block 11

It's a CD-RW, but I can't even burn a new image - because k3b freezes, too:
#0  0x00007f48334c0920 in __open_nocancel () from /lib/libc.so.6
#1  0x00007f483a577f01 in K3bDevice::openDevice () from /usr/lib/libk3bdevice.so.5
#2  0x00007f483a58b318 in K3bDevice::DeviceManager::testForCdrom () from /usr/lib/libk3bdevice.so.5
#3  0x00007f483a58c16d in K3bDevice::DeviceManager::addDevice () from /usr/lib/libk3bdevice.so.5
#4  0x00007f483a1f364b in K3bCore::init () from /usr/lib/libk3b.so.3

To make it even more ridiculous, gdb freezes if I try to kill k3b!
#0  0x00007f7743465fd5 in waitpid () from /lib/libc.so.6
#1  0x0000000000464d95 in my_waitpid (pid=14999, status=0x0, flags=0) at /build/buildd/gdb-6.8/gdb/linux-nat.c:194
#2  0x0000000000464f19 in kill_wait_callback (lp=0x182acf0, data=<value optimized out>) at /build/buildd/gdb-6.8/gdb/linux-nat.c:2372
#3  0x0000000000463f98 in iterate_over_lwps (callback=0x464dc0 <kill_wait_callback>, data=0x0) at /build/buildd/gdb-6.8/gdb/linux-nat.c:757
#4  0x0000000000464d1e in linux_nat_kill () at /build/buildd/gdb-6.8/gdb/linux-nat.c:2417
#5  0x0000000000456e75 in kill_command (arg=<value optimized out>, from_tty=<value optimized out>) at /build/buildd/gdb-6.8/gdb/inflow.c:578
#6  0x000000000044e28a in execute_command (p=0x17d41a4 "", from_tty=1) at /build/buildd/gdb-6.8/gdb/top.c:449
...

This looks like a kernel bug.

** Affects: linux-meta (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Programs freeze when trying to open /dev/cdrom
https://bugs.launchpad.net/bugs/378439
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux-meta in ubuntu.




More information about the kernel-bugs mailing list