Open gcampax opened 8 years ago
Stack traces of the hung tasks (captured while trying to suspend):
Oct 09 23:30:13 giovanni-macbook kernel: Freezing user space processes ...
Oct 09 23:30:13 giovanni-macbook kernel: Freezing of tasks failed after 20.008 seconds (2 tasks refusing to freeze, wq_busy=0):
Oct 09 23:30:13 giovanni-macbook kernel: Magnifier D ffff8c83ac323b98 0 1537 1391 0x00000004
Oct 09 23:30:13 giovanni-macbook kernel: ffff8c83ac323b98 0000000000000000 ffff8c81590b5b80 ffff8c83eca09e80
Oct 09 23:30:13 giovanni-macbook kernel: ffff8c80e6fdd5c0 ffff8c83ac324000 ffff8c80e6fdd5c0 ffffffffc12333a0
Oct 09 23:30:13 giovanni-macbook kernel: ffff8c80e6fdd3f8 0000000000000000 ffff8c83ac323bb0 ffffffffa37fcb85
Oct 09 23:30:13 giovanni-macbook kernel: Call Trace:
Oct 09 23:30:13 giovanni-macbook kernel: [
It looks like the second task is waiting on a mutex locked by the first task.
It sounds like a known driver issue. Suspending the device while it is still opened will cause problems. My plan is to fix this as soon as I get some time to spend on the driver again.
It don't think this is the same issue as suspending: this causes the task to freeze while the system is otherwise running. It just happens that I got a stack trace when I suspended and the kernel realized what was going on.
Ah, I misunderstood your report. I agree that it's probably a different issue so reopening. How can I reproduce this?
I'm not sure if this is an userspace or kernel problem, but I'm reporting it here because in theory userspace should not freeze the kernel in a manner that SIGKILL cannot recover.
I am testing 887d0f531ef7b91457be519474136c3355c5132b (mainline) on top of 4.8.0-0.rc7.git0.1.fc25.x86_64. I have a possibly buggy program that uses V4L. I run it and the task froze in disk sleep state. Starting another, known correct program (cheese) also froze in disk sleep, possibly because the first program is still holding the camera open.
The first program (which I believe uses opencv to acquire the video) reported: VIDEOIO ERROR: V4L: index 1 is not correct
The led of the camera briefly went on and then off again.