fernandotcl/udisks-glue — Issue #5:  udisks-glue: segfault
Author: samlt
Created: 2012-02-21 19:35:40+00:00
State: open

Hello,

From time to time my external USB HD just disappear for no apparent reason. And I have to start udisks-glue again.

In dmesg, I see this:

> [27047.535014] usb 3-1.3.4: reset high-speed USB device number 7 using ehci_hcd
> [27047.627715] usb 3-1.3.4: device firmware changed
> [27047.628665] sd 8:0:0:0: Device offlined - not ready after error recovery
> [27047.629401] usb 3-1.3.4: USB disconnect, device number 7
> [27047.982712] usb 3-1.3.4: new high-speed USB device number 8 using ehci_hcd
> [27048.076653] usb 3-1.3.4: New USB device found, idVendor=059b, idProduct=0470
> [27048.076663] usb 3-1.3.4: New USB device strings: Mfr=1, Product=11, SerialNumber=5
> [27048.076690] usb 3-1.3.4: Product: Storage
> [27048.076695] usb 3-1.3.4: Manufacturer: JMicron
> [27048.076699] usb 3-1.3.4: SerialNumber: 801130168383
> [27048.079938] scsi9 : usb-storage 3-1.3.4:1.0
> [27050.446683] scsi 9:0:0:0: Direct-Access ST932032 5AS PQ: 0 ANSI: 2 CCS
> [27068.942897] not responding...
> [27077.187535] sd 9:0:0:0: [sdd] READ CAPACITY failed
> [27077.187566] sd 9:0:0:0: [sdd] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
> [27077.187574] sd 9:0:0:0: [sdd] Sense Key : Unit Attention [current]
> [27077.187604] sd 9:0:0:0: [sdd] Add. Sense: Not ready to ready change, medium may have changed
> [27079.938147] sd 9:0:0:0: [sdd] Test WP failed, assume Write Enabled
> [27082.688057] sd 9:0:0:0: [sdd] Asking for cache data failed
> [27082.688070] sd 9:0:0:0: [sdd] Assuming drive cache: write through
> [27113.938565] not responding...
> [27120.910175] CPU2: Package power limit normal
> [27120.910184] CPU3: Package power limit normal
> [27120.910217] CPU1: Package power limit normal
> [27120.910226] CPU0: Package power limit normal
> [27126.631758] sd 9:0:0:0: [sdd] 625142448 512-byte logical blocks: (320 GB/298 GiB)
> [27126.636152] sd 9:0:0:0: [sdd] Attached SCSI disk
> [27157.471612] usb 3-1.3.4: reset high-speed USB device number 8 using ehci_hcd
> [27157.564323] usb 3-1.3.4: device firmware changed
> [27157.564966] sd 9:0:0:0: Device offlined - not ready after error recovery
> [27157.565007] sd 9:0:0:0: [sdd] Unhandled error code
> [27157.565012] sd 9:0:0:0: [sdd] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK
> [27157.565020] sd 9:0:0:0: [sdd] CDB: Read(10): 28 00 25 42 ea 00 00 00 08 00
> [27157.565061] end_request: I/O error, dev sdd, sector 625142272
> [27157.565092] Buffer I/O error on device sdd, logical block 78142784
> [27157.565170] sd 9:0:0:0: rejecting I/O to offline device
> [27157.565176] sd 9:0:0:0: killing request
> [27157.565732] usb 3-1.3.4: USB disconnect, device number 8
> [27157.643407] usb 3-1.3.4: new high-speed USB device number 9 using ehci_hcd
> [27157.736788] usb 3-1.3.4: New USB device found, idVendor=059b, idProduct=0470
> [27157.736820] usb 3-1.3.4: New USB device strings: Mfr=1, Product=11, SerialNumber=5
> [27157.736826] usb 3-1.3.4: Product: Storage
> [27157.736830] usb 3-1.3.4: Manufacturer: JMicron
> [27157.736834] usb 3-1.3.4: SerialNumber: 5E17FFFFFFFF
> [27157.738715] scsi10 : usb-storage 3-1.3.4:1.0
> [27157.789744] udisks-glue[2379]: segfault at 10 ip 0000000000405174 sp 00007fff38a446d8 error 4 in udisks-glue[400000+8000]
> [27158.782675] scsi 10:0:0:0: Direct-Access ST932032 5AS PQ: 0 ANSI: 2 CCS
> [27158.871551] sd 10:0:0:0: [sdd] 625142448 512-byte logical blocks: (320 GB/298 GiB)

It looks like my HD is failing somehow, but udisks-glue should not:)

Don't know what information you need, here is my config:
> cat ~/.config/udisks-glue/config
>
>
> filter disks {
> optical = false
> usage = filesystem
> }
>
> match disks {
> automount = true
> automount_options = { flush, noatime, "fmask=033", "dmask=022" }
> }