Package: diffoscope
Version: 30

Hangs on device files:

  $ sudo mknod device-a c 5 1
  $ sudo mknod device-b c 5 1
  $ ./ --debug device-a device-b
     DEBUG compare files <<class
     'diffoscope.comparators.binary.FilesystemFile'> device-a None> and
     <<class 'diffoscope.comparators.binary.FilesystemFile'> device-b
     DEBUG <<class 'diffoscope.comparators.binary.FilesystemFile'>
     device-a device-a> has_same_content <<class
     'diffoscope.comparators.binary.FilesystemFile'> device-b device-b>

5, 1 is /dev/console. This simply hangs in a read(2) call which never
returns. If you use "7 1" (ie. /dev/full) diffoscope will attempt to
read the entire file with predictable results.

A quick glance of the code suggests that we attempt to compare the
contents of the file *before* specialising, but even if I make a special
exception for device files here I seem to push the error elsewhere.


     : :'  :     Chris Lamb
     `. `'` /

Reproducible-builds mailing list

Reply via email to