#1140397 diffoscope: Diffoscope fails to compare PDF files - dumppdf crash

#1140397#5
Date:
2026-06-19 14:18:09 UTC
From:
To:
Dear Maintainer,

See this salsa build job comparing the "allabout.pdf" file:
https://nikolas.pages.debian.net/-/gnubg/-/jobs/9808951/artifacts/debian/output/diffoscope.html

diffoscope emits this message:

./usr/share/doc/gnubg/allabout.pdf
Command `'dumppdf -at {}'` failed with exit code 1. Standard output:
    Traceback (most recent call last):
      File "/usr/bin/dumppdf", line 468, in <module>
        main()
        ~~~~^^
      File "/usr/bin/dumppdf", line 454, in main
        dumppdf(
        ~~~~~~~^
            outfp,
          [...]

after installing the following packages in the debrebuild job on salsa:
  poppler-utils python3-pdfminer xxd

#1140397#10
Date:
2026-06-20 03:10:39 UTC
From:
To:
This appears to be a pdfminer bug. The fix is here:
https://github.com/pdfminer/pdfminer.six/pull/1270

#1140397#15
Date:
2026-06-22 19:49:23 UTC
From:
To:
Hey Nikolas,

Thanks for tracking this down and submitting a fix. :)  I'll let the
pdfminer folks fix this in "their" package rather than applying any
kind of workaround to diffoscope. 👍


Best wishes,