Bugzilla – Bug 106028
kdetv crashes on exit (process becomes uninterruptible sleep)
Last modified: 2007-04-27 07:43:55 UTC
I am using a bt878 (Hauppauge WinTV pro) card, configured by YaST. I can use kdetv perfectly without any problem (channel scan, watching, fullscreen etc. works). But when I exit kdetv, it crashes and its process state becomes "uninterruptible sleep" (state "D" in top). The sound still plays on in the background, the window stays open, but is cleared (freezed). System load increases up to 4. Logging out from KDE does not work any more. I can crash the X server (Alt-Ctrl-Backspace). KDM won't come up again. Shutting down the system hangs at "Unloading CUPS" or probably "Stopping ACPI". Both appear on the same line. After that only a reset helps. First, I thought it might be a problem with V4L2. But xawtv actually works (but uses V4L AFAIK).
check dmesg
Created attachment 47042 [details] dmesg after boot, before watching tv This is the dmesg right after the boot process. Cannot find an error while detecting the bttv card.
Created attachment 47044 [details] dmesg after kdetv crashes This is what is appended in both dmesg and messages after the crash: bttv0: PLL can sleep, using XTAL (28636363). bttv0: PLL: 28636363 => 35468950 .. ok bttv0: PLL can sleep, using XTAL (28636363). bttv0: PLL: 28636363 => 35468950 .. ok The attachment is a call trace I generated like this: dmesg -c echo t > /proc/sysrq-trigger dmesg -s 1000000 > ./foo-after
ping
Not investigated yet in detail due to lack of time (vacation, was sick, whatelse ...). kdetv seems to call into bttv from two threads in parallel (one unmapping v4l buffers and another doing some ioctl) and trigger a deadlock that way. No idea why. Probably there is no easy workaround for that. Can you try to figure with strace which ioctl that actually is?
can you still reproduce this on 10.2? Sascha if yes can you please have a look at this?
I cannot reproduce this with 10.2. Please reopen if the problem persists.