Ticket #2356 (closed bug: fixed)

Opened 22 months ago

Last modified 4 months ago

usb stack deadlocks after plugging in card reader

Reported by: monni Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: Cc:
Blocked By: Platform: All
Blocking:

Description

How to reproduce:

1. Open terminal with tail -f /var/log/syslog 2. Plug usb card reader without any cards

Experienced behavior: Terminal deadlocks Expected behavior: Terminal continues to respond to mouse events

Concerning threads: 35 usb explore, holds "legacy driver", waits for "devfs lock" 158 sh, holds "devfs lock", waits for "legacy driver" 198 Terminal, waits for "devfs lock", blocks "usb explore"

First significant entries for thread 35 are: <usb>:RescanDrivers5StackP11rescan_item + 0x001b <usb>:ExploreThread5StackPv + 0x0101

Last significant entry for thread 35 is: <kernel>:publish_deviceFP5devfsPCcP10BaseDevice + 0x007a

First significant entry for thread 158 is: <kernel>:vfs_free_io_context + 0x0078

Last significant entry for thread 158 is: <kernel>:UninitDevice12LegacyDevice + 0x0028

First significant entry for thread 198 is: <kernel>:_user_open + 0x00a1

Last significant entry for thread 198 is: <kernel>:devfs_open_FP9fs_volumeP8fs_vnodeiPPv + 0x0072

I omitted functions between those because I don't think they're relevant to finding the cause and I would have to hand-copy them because I don't have serial cable here.

Change History

Changed 22 months ago by mmlr

  • owner changed from mmlr to axeld
  • component changed from Drivers/USB to System/Kernel

This is a deadlock between the devfs and the legacy driver system. USB is only the trigger, not the problem itself. This was introduced with the new device manager, assigning to Axel.

Changed 4 months ago by axeld

  • version changed from R1/pre-alpha1 to R1/Development

Does this still happen?

Changed 4 months ago by monni

Hasn't happened for me lately...

Changed 4 months ago by axeld

  • status changed from new to closed
  • resolution set to fixed

Thanks for the quick update! There have been quite some changes in that area, so I assume it to be fixed. Please reopen if it happens again.

Note: See TracTickets for help on using tickets.