Alan Stern <[EMAIL PROTECTED]> writes: > On Fri, 19 Mar 2004, Sean Neakums wrote: > >> Alan Stern <[EMAIL PROTECTED]> writes: >> >> > It would help to know what gphoto2 is doing. There should be more >> > debugging in the usbfs driver, without it we're sort of in the dark. >> > However, you can try using strace on the gphoto2 program; that will give >> > us some idea of what's going on. >> >> gphoto2 is in this state at the point of hanging: >> >> $ ps -C gphoto2 -o comm,s,wchan >> COMMAND S WCHAN >> gphoto2 D usb_disable_device >> >> Further gphoto2 instances also enter D but with WCHAN of 'down'. >> >> I'll do some stracing and get back to you with the results. > > Another useful thing to try might be a tasklist dump (Alt-SysRq-T from a > console screen, not an X window) while gphoto2 is hung. Although at this > point it's not so important to know what's hung and where; it's more > important to know what went wrong originally to cause the hangs. Well, we > learn a little more each time...
Below is the SysRq-T output, attached is the strace output. Mar 20 20:36:53 revox kernel: gphoto2 D E8D67E64 0 927 926 (NOTLB) Mar 20 20:36:53 revox kernel: e8d67e48 00000082 c0405540 e8d67e64 ee8ab960 00000000 00000000 c04475a0 Mar 20 20:36:53 revox kernel: ef4f8a74 e8eb6580 000084d7 90320016 00000063 e8dd2980 e8dd2b30 e8d67000 Mar 20 20:36:53 revox kernel: e8d67000 e8d67ecc e8d67e9c c0118679 00000000 e8dd2980 c01183d0 00000000 Mar 20 20:36:53 revox kernel: Call Trace: Mar 20 20:36:53 revox kernel: [wait_for_completion+153/272] wait_for_completion+0x99/0x110 Mar 20 20:36:53 revox kernel: [default_wake_function+0/16] default_wake_function+0x0/0x10 Mar 20 20:36:53 revox kernel: [default_wake_function+0/16] default_wake_function+0x0/0x10 Mar 20 20:36:53 revox kernel: [device_del+105/160] device_del+0x69/0xa0 Mar 20 20:36:53 revox kernel: [usb_disable_device+231/320] usb_disable_device+0xe7/0x140 Mar 20 20:36:53 revox kernel: [usb_set_configuration+157/672] usb_set_configuration+0x9d/0x2a0 Mar 20 20:36:53 revox kernel: [do_notify_parent+319/1440] do_notify_parent+0x13f/0x5a0 Mar 20 20:36:53 revox kernel: [usbdev_ioctl+358/816] usbdev_ioctl+0x166/0x330 Mar 20 20:36:53 revox kernel: [recalc_task_prio+140/416] recalc_task_prio+0x8c/0x1a0 Mar 20 20:36:53 revox kernel: [schedule+95/1536] schedule+0x5f/0x600 Mar 20 20:36:53 revox kernel: [file_ioctl+103/416] file_ioctl+0x67/0x1a0 Mar 20 20:36:53 revox kernel: [sys_ioctl+264/608] sys_ioctl+0x108/0x260 Mar 20 20:36:53 revox kernel: [syscall_call+7/11] syscall_call+0x7/0xb
gphoto.strace.gz
Description: gphoto strace output