Bug#837681: diffoscope: 'ERROR guestfs can't be launched' when trying to compare to qubes ISOs

Mattia Rizzolo mattia at debian.org
Tue Sep 13 16:22:29 UTC 2016


On Tue, Sep 13, 2016 at 03:35:58PM +0200, Holger Levsen wrote:
> so I build an Qubes ISO, twice and ran diffoscope against it:
> 
> holger at profitbricks-build3-amd64:~$ sudo schroot --directory /tmp -c source:jenkins-reproducible-unstable-diffoscope diffoscope -- --html /tmp/q.html --text /tmp/q.txt /tmp/q1 /tmp/q2

I wanted to quickly try myself, but you already deleted the files.
Could you please save them somewhere (I suppose they are too big to be
attached to the bug?)

> 1473773034.873399    ERROR guestfs can't be launched
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/fsimage.py", line 43, in open_archive
>     self.g.launch()
>   File "/usr/lib/python3/dist-packages/guestfs.py", line 5398, in launch
>     r = libguestfsmod.launch (self._o)
> RuntimeError: /usr/bin/supermin exited with error status 1.
> To see full error messages you may need to enable debugging.
> Do:
>   export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
> and run the command again.  For further information, read:
>   http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
> You can also run 'libguestfs-test-tool' and post the *complete* output
> into a bug report or message to the libguestfs mailing list.
> 1473773034.929533    ERROR If memory is too tight for 512 MiB, try running with LIBGUESTFS_MEMSIZE=256 or lower.
> 1473773035.369462    ERROR guestfs can't be launched
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/fsimage.py", line 43, in open_archive
>     self.g.launch()
>   File "/usr/lib/python3/dist-packages/guestfs.py", line 5398, in launch
>     r = libguestfsmod.launch (self._o)
> RuntimeError: /usr/bin/supermin exited with error status 1.
> To see full error messages you may need to enable debugging.
> Do:
>   export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
> and run the command again.  For further information, read:
>   http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
> You can also run 'libguestfs-test-tool' and post the *complete* output
> into a bug report or message to the libguestfs mailing list.
> 1473773035.373510    ERROR If memory is too tight for 512 MiB, try running with LIBGUESTFS_MEMSIZE=256 or lower.

guestfs is not called directly, but through 
ISTR the consensuos was in diffoscope printing an
error but continuing nonetheless (proposing an e.g. binary diff).

And reading the code suggest that it should do (it's catching
RuntimeError and returning back safely), but it is doing that only in
open_archive, not in e.g. close_archive which seems to be where the
actual crash is:

> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils.py", line 279, in __del__
>     self.close_archive()
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/fsimage.py", line 56, in close_archive
>     self.g.umount_all()
>   File "/usr/lib/python3/dist-packages/guestfs.py", line 9543, in umount_all
>     r = libguestfsmod.umount_all (self._o)
> RuntimeError: umount_all: call launch before using this function
> (in guestfish, don't forget to use the 'run' command)
> Exception ignored in: <bound method Archive.__del__ of <diffoscope.comparators.fsimage.FsImageContainer object at 0x7f2108ffb3c8>>
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils.py", line 279, in __del__
>     self.close_archive()
>   File "/usr/lib/python3/dist-packages/diffoscope/comparators/fsimage.py", line 56, in close_archive
>     self.g.umount_all()
>   File "/usr/lib/python3/dist-packages/guestfs.py", line 9543, in umount_all
>     r = libguestfsmod.umount_all (self._o)
> RuntimeError: umount_all: call launch before using this function
> (in guestfish, don't forget to use the 'run' command)

> Am I missing some dependencies or what does that mean and what should I do now?

If you want to compare it right now you might want to uninstall
python3-guestfs so it falls back to binary comparison, but that's
probably not that much helpful..

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160913/dba02878/attachment.sig>


More information about the Reproducible-builds mailing list