Public bug reported:

I'm using a USB-to-serial cable containing an FTDI chip (FT232RL) that
uses the ftdio_sio driver, which depends on the usbserial driver. Upon
boot, the device shows up normally as /dev/ttyUSB0 and works fine.
However, if I unplug it and plug it back in again, the usbserial driver
crashes, as shown in /var/log/syslog. The device still mounts as
/dev/ttyUSB0 but when my program tries to access it, it receives no
data. Doing "rmmod ftdi_sio usbserial" and then plugging the device back
in fixes the problem.

The crash report from /var/log/syslog appears below:

Jan 22 03:29:18 tekkotsu-calliope1 kernel: [ 1426.840198] usb 2-1: new full 
speed USB device using uhci_hcd and address 7
Jan 22 03:29:18 tekkotsu-calliope1 kernel: [ 1427.040438] usb 2-1: 
configuration #1 chosen from 1 choice
Jan 22 03:29:18 tekkotsu-calliope1 kernel: [ 1427.047507] ftdi_sio 2-1:1.0: 
FTDI USB Serial Device converter detected
Jan 22 03:29:18 tekkotsu-calliope1 kernel: [ 1427.047767] usb 2-1: Detected 
FT232RL
Jan 22 03:29:18 tekkotsu-calliope1 kernel: [ 1427.047781] usb 2-1: Number of 
endpoints 2
Jan 22 03:29:18 tekkotsu-calliope1 kernel: [ 1427.047793] usb 2-1: Endpoint 1 
MaxPacketSize 64
Jan 22 03:29:18 tekkotsu-calliope1 kernel: [ 1427.047805] usb 2-1: Endpoint 2 
MaxPacketSize 64
Jan 22 03:29:18 tekkotsu-calliope1 kernel: [ 1427.047816] usb 2-1: Setting 
MaxPacketSize 64
Jan 22 03:29:18 tekkotsu-calliope1 kernel: [ 1427.048514] usb 2-1: FTDI USB 
Serial Device converter now attached to ttyUSB0
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538142] ------------[ cut 
here ]------------
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538180] WARNING: at 
/build/buildd/linux-2.6.32/drivers/usb/serial/usb-serial.c:440 
serial_unthrottle+0x8c/0x90 [usbserial]()
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538196] Hardware name: 1015PX
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538204] Modules linked in: 
ftdi_sio usbserial joydev binfmt_misc ppdev snd
_hda_codec_realtek fbcon tileblit font bitblit softcursor vga16fb vgastate 
snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss
 snd_mixer_oss arc4 snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi 
snd_seq_midi_event snd_seq ath9k snd_timer i9
15 mac80211 snd_seq_device uvcvideo ath videodev v4l1_compat drm_kms_helper snd 
cfg80211 v4l2_compat_ioctl32 psmouse serio_r
aw atl1c drm led_class intel_agp i2c_algo_bit soundcore snd_page_alloc video 
output lp parport ahci [last unloaded: usbserial]
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538403] Pid: 2049, comm: 
tekkotsu-CREATE Not tainted 2.6.32-37-generic #81-Ubuntu
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538412] Call Trace:
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538435]  [<ffffffff810665ab>] 
warn_slowpath_common+0x7b/0xc0
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538449]  [<ffffffff81066604>] 
warn_slowpath_null+0x14/0x20
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538467]  [<ffffffffa03a46ac>] 
serial_unthrottle+0x8c/0x90 [usbserial]
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538483]  [<ffffffff813332c9>] 
tty_unthrottle+0x49/0x60
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538497]  [<ffffffff81331021>] 
reset_buffer_flags+0xd1/0x100
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538510]  [<ffffffff8133106d>] 
n_tty_flush_buffer+0x1d/0x90
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538522]  [<ffffffff8133440f>] 
? tty_ldisc_try+0x4f/0x60
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538535]  [<ffffffff81334c37>] 
tty_ldisc_flush+0x37/0x60
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538549]  [<ffffffff81335eae>] 
tty_port_close_end+0x2e/0x100
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538566]  [<ffffffffa03a4d09>] 
serial_close+0x89/0xc0 [usbserial]
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538579]  [<ffffffff8132e413>] 
tty_release_dev+0x163/0x5e0
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538595]  [<ffffffff810fc81d>] 
? free_hot_page+0x2d/0x60
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538626]  [<ffffffffa00f5ba8>] 
? snd_card_file_remove+0x88/0x180 [snd]
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538640]  [<ffffffff8132e8ae>] 
tty_release+0x1e/0x30
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538655]  [<ffffffff81145e65>] 
__fput+0xf5/0x210
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538668]  [<ffffffff81145fa5>] 
fput+0x25/0x30
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538681]  [<ffffffff811420cd>] 
filp_close+0x5d/0x90
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538695]  [<ffffffff810686af>] 
put_files_struct+0x7f/0xf0
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538709]  [<ffffffff81068774>] 
exit_files+0x54/0x70
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538723]  [<ffffffff8106acdb>] 
do_exit+0x15b/0x390
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538736]  [<ffffffff8106af65>] 
do_group_exit+0x55/0xd0
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538751]  [<ffffffff8107b9a7>] 
get_signal_to_deliver+0x1d7/0x3d0
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538768]  [<ffffffff81011a25>] 
do_signal+0x75/0x1c0
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538781]  [<ffffffff810964f2>] 
? futex_wake+0x112/0x130
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538794]  [<ffffffff810989e8>] 
? do_futex+0xb8/0x1b0
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538808]  [<ffffffff81011bcd>] 
do_notify_resume+0x5d/0x80
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538822]  [<ffffffff8101247e>] 
int_signal+0x12/0x17
Jan 22 03:29:36 tekkotsu-calliope1 kernel: [ 1444.538832] ---[ end trace 
be32863c670c039f ]---

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-37-generic 2.6.32-37.81 [modified: 
lib/modules/2.6.32-37-generic/kernel/drivers/media/video/gspca/gspca_main.ko 
lib/modules/2.6.32-37-generic/kernel/drivers/media/video/gspca/gspca_ov534.ko]
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-37.81-generic 2.6.32.49+drm33.21
Uname: Linux 2.6.32-37-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC0:  user       1206 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf7cf8000 irq 22'
   Mixer name   : 'Realtek ALC269'
   Components   : 'HDA:10ec0269,10438437,00100100'
   Controls      : 12
   Simple ctrls  : 7
Date: Sun Jan 22 03:39:00 2012
HibernationDevice: RESUME=UUID=e13006da-8ef0-40c5-b369-e6c616d36d5b
InstallationMedia: Ubuntu 10.04.3 LTS "Lucid Lynx" - Release amd64 (20110720.1)
MachineType: ASUSTeK Computer INC. 1015PX
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-37-generic 
root=UUID=1c28a6c4-ece0-4791-8992-e76c83e580d8 ro quiet splash
ProcEnviron:
 PATH=(custom, no username)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.34.7
RfKill:
 0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
SourcePackage: linux
dmi.bios.date: 02/18/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1101
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: 1015PE
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: x.xx
dmi.chassis.asset.tag: 0x00000000
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer INC.
dmi.chassis.version: x.x
dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr1101:bd02/18/2011:svnASUSTeKComputerINC.:pn1015PX:pvrx.x:rvnASUSTeKComputerINC.:rn1015PE:rvrx.xx:cvnASUSTeKComputerINC.:ct10:cvrx.x:
dmi.product.name: 1015PX
dmi.product.version: x.x
dmi.sys.vendor: ASUSTeK Computer INC.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: amd64 apport-bug lucid needs-upstream-testing regression-potential 
usbserial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/919925

Title:
  usbserial driver crashes when FTDI device is removed and reinserted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/919925/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to