[Pkg-utopia-maintainers] Bug#563892: devicekit-disks: segfault in devkit-disks-daemon on USB stick removal

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Jan 6 06:28:41 UTC 2010


Package: devicekit-disks
Version: 009-2
Severity: normal

a 1GB USB stick on this testing/unstable system was inserted, mounted,
read from, unmounted, and removed.

devkit-disks-daemon appears to have segfaulted upon device removal.

dmesg tells the story:

[ 1691.668041] usb 1-2: new high speed USB device using ehci_hcd and address 5
[ 1691.803805] usb 1-2: New USB device found, idVendor=090c, idProduct=1000
[ 1691.803814] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1691.803820] usb 1-2: Product: DISK 2.0
[ 1691.803825] usb 1-2: Manufacturer: USB
[ 1691.803830] usb 1-2: SerialNumber: XZ187S087WMGK8IG
[ 1691.805902] usb 1-2: configuration #1 chosen from 1 choice
[ 1691.811062] scsi3 : SCSI emulation for USB Mass Storage devices
[ 1691.811478] usb-storage: device found at 5
[ 1691.811483] usb-storage: waiting for device to settle before scanning
[ 1696.808425] usb-storage: device scan complete
[ 1696.809420] scsi 3:0:0:0: Direct-Access     USB      DISK 2.0         1219 PQ: 0 ANSI: 0 CCS
[ 1696.814642] sd 3:0:0:0: [sdc] 1957888 512-byte logical blocks: (1.00 GB/956 MiB)
[ 1696.815374] sd 3:0:0:0: [sdc] Write Protect is off
[ 1696.815382] sd 3:0:0:0: [sdc] Mode Sense: 43 00 00 00
[ 1696.815388] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[ 1696.819866] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[ 1696.819876]  sdc: sdc1
[ 1696.820528] sdc: p1 size 3329550 exceeds device capacity, limited to end of disk
[ 1696.823117] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[ 1696.823127] sd 3:0:0:0: [sdc] Attached SCSI removable disk
[ 1710.845314] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 1875.503979] usb 1-2: USB disconnect, address 5
[ 1875.523376] devkit-disks-da[2335]: segfault at c ip 080660da sp bffb23f0 error 4 in devkit-disks-daemon[8048000+28000]

(note that it looks like the usb stick has some oddities in its
formatting.  it's a 1GB disk, but the first partition appears to
believe it is longer than 1GB.  Why?  not sure.  i can get you a dump
of the partition table on the USB stick if that would be helpful in
replicating the problem.

Thanks for maintaining devicekit-disks in debian.

Regards,

            --dkg

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages devicekit-disks depends on:
ii  libatasmart4      0.17-1                 ATA S.M.A.R.T. reading and parsing
ii  libc6             2.10.2-2               GNU C Library: Shared libraries
ii  libdbus-1-3       1.2.16-2               simple interprocess messaging syst
ii  libdbus-glib-1-2  0.82-2                 simple interprocess messaging syst
ii  libglib2.0-0      2.22.3-1               The GLib library of C routines
ii  libgudev-1.0-0    149-2                  GObject-based wrapper library for 
ii  libparted1.8-12   1.8.8.git.2009.07.19-5 The GNU Parted disk partitioning s
ii  libpolkit-backend 0.95-1                 PolicyKit backend API
ii  libpolkit-gobject 0.95-1                 PolicyKit Authorization API
ii  libsgutils2-2     1.28-2                 utilities for working with generic
ii  libudev0          149-2                  libudev shared library
ii  udev              149-2                  /dev/ and hotplug management daemo

Versions of packages devicekit-disks recommends:
ii  dosfstools                  3.0.7-1      utilities for making and checking 
ii  hdparm                      9.15-1       tune hard disk parameters for high
ii  mtools                      4.0.10-1     Tools for manipulating MSDOS files
ii  ntfs-3g                     1:2009.4.4-1 read-write NTFS driver for FUSE
ii  ntfsprogs                   2.0.0-1+b1   tools for doing neat things in NTF
ii  policykit-1                 0.95-1       framework for managing administrat

Versions of packages devicekit-disks suggests:
ii  cryptsetup                 2:1.1.0~rc2-1 configures encrypted block devices
ii  mdadm                      3.0.3-2       tool to administer Linux MD arrays
pn  reiserfsprogs              <none>        (no description available)
pn  xfsprogs                   <none>        (no description available)

-- no debconf information





More information about the Pkg-utopia-maintainers mailing list