debsums is broken in dapper (Reading from filehandle failed)

Bug #89253 reported by Arnd
6
Affects Status Importance Assigned to Milestone
debsums (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Dapper by Jean-Baptiste Lallement

Bug Description

Binary package hint: debsums

I tried to execute "debsums -s" on six different machines running dapper on amd64 and I always got this error message:

Reading from filehandle failed at /usr/bin/debsums line 266, <SUMS> line 17.

and debsums exits.

Version of installed debsums package:
debsums 2.0.24

An strace reveals the culprit:

open("/lib/udev/devices/net/tun", O_RDONLY) = 6
read(6, 0x9e91e0, 4096) = -1 EBADFD (File descriptor in bad state)
Reading from filehandle failed at /usr/bin/debsums line 266, <SUMS> line 17.

Interestingly this particular file is only in bad state only on my amd64 machines (but that may just be a coincidence):
dapper_amd64:~ # cat /lib/udev/devices/net/tun
cat: /lib/udev/devices/net/tun: File descriptor in bad state

dapper_i386:~ # cat /lib/udev/devices/net/tun
cat: /lib/udev/devices/net/tun: Permission denied

However, in every case debsums should just report the offending file and should just go on.

Tags: dapper
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Changed in debsums:
status: New → Incomplete
Revision history for this message
Arnd (arnd-arndnet) wrote :

The bug is still present in dapper (debsums 2.0.24)

sudo debsums -s
debsums: no md5sums for base-files
debsums: no md5sums for console-data
debsums: no md5sums for db4.2-util
debsums: no md5sums for dosfstools
debsums: no md5sums for initscripts
debsums: no md5sums for iproute
debsums: no md5sums for libdb4.2
debsums: no md5sums for libdb4.3
debsums: no md5sums for libgdbm3
debsums: no md5sums for liblockfile1
debsums: no md5sums for libncurses5
debsums: no md5sums for libncursesw5
debsums: no md5sums for libselinux1
debsums: no md5sums for libsepol1
debsums: no md5sums for mawk
debsums: no md5sums for module-init-tools
debsums: no md5sums for ncurses-base
debsums: no md5sums for ncurses-bin
debsums: no md5sums for netbase
debsums: no md5sums for python-minimal
debsums: no md5sums for strace
debsums: no md5sums for sysv-rc
debsums: no md5sums for sysvinit
debsums: no md5sums for ubuntu-keyring
debsums: no md5sums for ucf
Reading from filehandle failed at /usr/bin/debsums line 266, <SUMS> line 17.

the bug is fixed in debsums from hardy (2.0.34).
It correctly handles offending files (in this case /lib/udev/devices/net/tun)

sudo ./debsums -s
debsums: no md5sums for base-files
debsums: no md5sums for console-data
debsums: no md5sums for db4.2-util
debsums: no md5sums for dosfstools
debsums: no md5sums for initscripts
debsums: no md5sums for iproute
debsums: no md5sums for libdb4.2
debsums: no md5sums for libdb4.3
debsums: no md5sums for libgdbm3
debsums: no md5sums for liblockfile1
debsums: no md5sums for libncurses5
debsums: no md5sums for libncursesw5
debsums: no md5sums for libselinux1
debsums: no md5sums for libsepol1
debsums: no md5sums for mawk
debsums: no md5sums for module-init-tools
debsums: no md5sums for ncurses-base
debsums: no md5sums for ncurses-bin
debsums: no md5sums for netbase
debsums: no md5sums for python-minimal
debsums: no md5sums for strace
debsums: no md5sums for sysv-rc
debsums: no md5sums for sysvinit
debsums: no md5sums for ubuntu-keyring
debsums: no md5sums for ucf
debsums: can't check udev file /lib/udev/devices/net/tun (not a regular file)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in Feisty.

debsums (2.0.30) unstable; urgency=low
  * Paranoia: only check regular files (not char special, pipe, etc).

Changed in debsums:
status: Incomplete → Fix Released
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Here is a minimal patch to fix this particular issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.