Bug#1037541: libguestfs: FTBFS: supermin: error: lstat: Value too large for defined data type: /var/tmp/supermin2b73c8.tmpdir/base.d/init

2023-06-14 Thread Richard W.M. Jones
[https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1037541]

I think what's happening here is we are using the 31/32 bit lstat
functions in OCaml:

  
https://github.com/ocaml/ocaml/blob/3d50c168062e9fdbacf739a73738b10108ff3628/otherlibs/unix/unix.mli#L500

(I guess st_size which is signed 31 bits on armv7, but 63 bits on 64 bit
platforms).  We ought to be using the 64 bit version instead:

  
https://github.com/ocaml/ocaml/blob/3d50c168062e9fdbacf739a73738b10108ff3628/otherlibs/unix/unix.mli#L544

The specific problem will be that the size of some file has grown
larger than 1GB resulting in this runtime error, although that seems unusual.

Now we *ought* to be using those functions already because we should
always be doing:

  open Unix
  open Unix.LargeFile

to use the "LargeFile" (64 bit) versions of the functions.  I had a
quick look through the code to see where we are using 'open Unix'
without 'open Unix.LargeFile' but I couldn't find the place, leaving
me confused.

(Of course the other problem is that Fedora has abandoned all 32 bit
platforms long ago so we never test this ...)

Practically my recommendation is to exclude the whole virt stack on
armv7 since it has been years since we tested it.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org



Bug#1002986: libguestfs-tools: Depends on guestfs-tools that is not in the archive

2022-01-08 Thread Richard W.M. Jones
> It looks like libguestfs-tools version 1:1.46.2-1 in depending on
> guestfs-tools that is not in the archive making the package
> uninstalable

Just wanted to note that upstream we have split up the
old, very large, libguestfs git "monorepo", splitting out:

guestfs-tools (https://github.com/rwmjones/guestfs-tools)

 - All the C and OCaml tools like virt-df, virt-customize, etc. except
   for guestfish, virt-v2v and virt-p2v.

virt-v2v (https://github.com/libguestfs/virt-v2v)

 - Conversion from VMware to KVM.

virt-p2v (https://github.com/libguestfs/virt-p2v)

 - Conversion from physical machines to KVM.

libguestfs (https://github.com/libguestfs/libguestfs)

 - Now it's just the library and language bindings (including
   guestfish because that is -- kind of -- a set of shell script
   bindings)

FWIW here are the new Fedora packages in case you want to see how we
decided to arrange the subpackages and dependencies.

https://src.fedoraproject.org/rpms/libguestfs/tree/rawhide
https://src.fedoraproject.org/rpms/guestfs-tools/tree/rawhide
https://src.fedoraproject.org/rpms/virt-v2v/tree/rawhide
https://src.fedoraproject.org/rpms/virt-p2v/tree/rawhide

Another thing to say is that we're planning eventually to move all the
git repos to gitlab because it's a more free software friendly
solution compared to github.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top



Bug#972241: FTBFS on amd64 and i386 (error: guestfs_launch failed)

2020-10-16 Thread Richard W.M. Jones


guestfsd: error while loading shared libraries: libtirpc.so.3: cannot open 
shared object file: No such file or directory

Did something change with how libtirpc gets packaged on Debian
or upstream?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v



Bug#967099: libguestfs: FTBFS: dwz: debian/guestfsd/usr/sbin/guestfsd: DWARF version 0 unhandled

2020-08-26 Thread Richard W.M. Jones


This is actually a bug in binutils, not OCaml.  The fix is:

https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=4d8ee860737005517be588f4771c358593fa421c

See also:

https://lists.fedoraproject.org/archives/list/de...@lists.fedoraproject.org/message/3YRZ5TJK7PTYDYHUDOYC5HFWKZPA7KIJ/

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v



Bug#888182: qemu-system-arm: qemu-system-arm crashes when run as part of the nbdkit testsuite

2018-01-26 Thread Richard W.M. Jones

I was able to reproduce a crashing bug in qemu-system-arm on armv7
host.  I'm _not_ going to claim this is the same bug that Debian is
seeing, but it might be.

It's deep inside TCG and unfortunately there is not a lot of useful
information in the stack trace.  However it's clearly a bug in qemu.

Core was generated by `/usr/bin/qemu-system-arm -global 
virtio-blk-device.scsi=off -enable-fips -nodef'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xab6a7aa8 in ?? ()
[Current thread is 1 (Thread 0xaa9f7f90 (LWP 25252))]
(gdb) bt
#0  0xab6a7aa8 in ?? ()
#1  0xaba87ad0 in code_gen_buffer ()
#2  0x006291e0 in cpu_tb_exec (itb=, itb=, 
cpu=)
at /usr/src/debug/qemu-2.11.0-4.fc28.arm/accel/tcg/cpu-exec.c:167
#3  cpu_loop_exec_tb (tb_exit=, 
last_tb=, tb=, cpu=)
at /usr/src/debug/qemu-2.11.0-4.fc28.arm/accel/tcg/cpu-exec.c:627
#4  cpu_exec (cpu=)
at /usr/src/debug/qemu-2.11.0-4.fc28.arm/accel/tcg/cpu-exec.c:736
#5  0x005efae4 in qemu_tcg_cpu_thread_fn (arg=0x13ce3e0)
at /usr/src/debug/qemu-2.11.0-4.fc28.arm/cpus.c:1270
#6  0xb53f3f1c in start_thread () from /lib/libpthread.so.0
#7  0xb53790d8 in ?? () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

I'm using:

* qemu-system-arm-2.11.0-4.fc28.armv7hl
* kernel-lpae-4.15.0-0.rc9.git2.1.fc28.armv7hl

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v



Bug#888182: qemu-system-arm: qemu-system-arm crashes when run as part of the nbdkit testsuite

2018-01-24 Thread Richard W.M. Jones
The test failure looks like a problem in libguestfs (or maybe qemu)
rather than nbdkit.

TBH in Fedora we disable nbdkit tests on 32-bit armv7, 32-bit i686
and all POWER:

  
https://src.fedoraproject.org/rpms/nbdkit/blob/44518f07e0b28a799fa683f1f5ec2ca9c000ac01/f/nbdkit.spec#_419

Now that's not because they shouldn't work eventually, it's because we
don't routinely test nbdkit upstream on these architectures.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top



Bug#887969: nbdkit FTBFS: test failures

2018-01-22 Thread Richard W.M. Jones

On the face of it, it looks like the following patch should fix it:

  
https://github.com/libguestfs/nbdkit/commit/a6b907e5359a139404cee5fd5c7f94eab36a5fde

What I don't understand is why that isn't included in your nbdkit
(1.1.25) already?

In any case the latest nbdkit -- 1.1.27 released a couple of days ago --
does pass all the tests with the latest qemu.

The valgrind tests are broken with 1.1.27, and that is fixed by the
following 3 commits added after 1.1.27:

  
https://github.com/libguestfs/nbdkit/commit/1e51756907646bc8d2dbcddb2cdb9cea59e5c7bf
  
https://github.com/libguestfs/nbdkit/commit/a3d4a17971bbd84639437a52f5ab1b3fd307c29d
  
https://github.com/libguestfs/nbdkit/commit/b67a2099105a949b9e943b8c8fc8da1c0163c641

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/



Bug#849597: libguestfs0: Missing multiple dependencies

2016-12-30 Thread Richard W.M. Jones

In Fedora we package up the icoutils dependencies in a separate
subpackage to avoid pulling in all of X and Perl when installing the
main library:

http://pkgs.fedoraproject.org/cgit/rpms/libguestfs.git/tree/libguestfs.spec#n427

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v



Bug#815409: libguestfs: FTBFS on mips: segfault while creating blank-disk-1s.qcow2

2016-02-22 Thread Richard W.M. Jones
I actually have libguestfs running on mipsel at home.  It's very slow
indeed :-(

Anyway, it looks as if the segfault is happening in the `qemu-img'
utility.  The command which fails is:

  qemu-img create -f qcow2 -o preallocation=metadata blank-disk-1s.qcow2 512

(You could just run that command on its own on the same hardware to
see if you can reproduce it).

This bug should probably be reassigned to qemu.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org



Bug#794732: libguestfs: FTBFS

2015-08-06 Thread Richard W.M. Jones

It seems to be the same as this Ubuntu bug report:

https://bugs.launchpad.net/ubuntu/+source/ocaml-gettext/+bug/1481994

Rich.


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#763741: libguestfs: Incorrect build-dependencies (libsystemd-id128-0, libsystemd-journal0), fails binNMU

2014-10-07 Thread Richard W.M. Jones
On Tue, Oct 07, 2014 at 11:44:00PM +0200, Andreas Henriksson wrote:
 Hello Rich.
 
 On Sun, Oct 05, 2014 at 01:59:46PM +0100, Richard W.M. Jones wrote:
  
   libaugeas0,
   libcap2,
   libhivex0,
   libpcre3,
   libxml2,
   libyajl2,
  
  Why are these wrong?  They all seem to be correct build deps to me.
 
 A debian package normally build-depends on the development package
 providing the development files (headers, pkg-config, (unversioned)
 shared object file, etc.) rather then simply on a package with only
 a particular versioned .so.X.
 
 In other words, build-dependencies should normally end with -dev
 (if it's a library and not a tool used during the build process).
 
 The above list would be more correct as:
 libaugeas-dev,
 libcap-dev,
 libhivex-dev,
 libpcre3-dev,
 libxml2-dev,
 libyajl-dev,
 
 
 All of these are probably pulled in indirectly via some other
 build-dependency right now but should be explicitly specified if
 they really are build-dependencies of libguestfs.
 The above -dev packages also specifies a dependency on their
 respective libfooX package as needed.
 
 Doing this correctly is what makes it possible to do binNMUs
 when there's a transition for a certain library (ie. it gets
 a new so version). Doing this incorrectly makes that impossible.

But in the case of libguestfs, on Debian we depend on specific SONAMEs
(not for any real reason, just because Debian's packaging system
forces us to do that).  So if an SONAME changes it requires an
upstream patch or a downstream patch that eventually has to go
upstream.  So I still think that Hilko's build dependencies are
correct.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#763741: libguestfs: Incorrect build-dependencies (libsystemd-id128-0, libsystemd-journal0), fails binNMU

2014-10-05 Thread Richard W.M. Jones

 libaugeas0,
 libcap2,
 libhivex0,
 libpcre3,
 libxml2,
 libyajl2,

Why are these wrong?  They all seem to be correct build deps to me.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#763741: libguestfs: Incorrect build-dependencies (libsystemd-id128-0, libsystemd-journal0), fails binNMU

2014-10-03 Thread Richard W.M. Jones
I'm not complete clear on what change is being made to Debian.
However from the build log, the problem is that 'libsystemd.so.0'
isn't making it into the appliance.

This seems to be because the following upstream commit shoud be
backported to the 1.26 branch (either in Debian or upstream):

  commit a36dde98899ea160a49c9af65a883383496cd331
  Author: Hilko Bengen ben...@hilluzination.de
  Date:   Fri Sep 19 18:55:50 2014 +0200

appliance: Add libsystemd0 (and systemd as an alternative for sysvinit) on 
Debian-based systems

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#754614: libguestfs: FTBFS on i386: Value too large for defined data type

2014-07-13 Thread Richard W.M. Jones

This is a bug in mke2fs, not in libguestfs.  See:

https://bugzilla.redhat.com/show_bug.cgi?id=1099892

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#754615: libguestfs: FTBFS on mips: make[2]: *** [quickcheck] Alarm clock

2014-07-13 Thread Richard W.M. Jones

I'm slightly surprised that libguestfs ever worked on MIPS.  We've
certainly never tested it upstream.

The error is a hang in the appliance, which eventually causes
libguestfs-test-tool to hit its default timeout (600 seconds).

It's not really possible to tell what is causing the hang.  We'd need
to have access to MIPS hardware to debug this further.

However it happens just after starting udev, which may or may not be
related.  Here is the code:

  https://github.com/libguestfs/libguestfs/blob/master/appliance/init#L50

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#742283: supermin: internal error: assertion failed at dpkg.ml, line 86, char 19

2014-03-27 Thread Richard W.M. Jones
I am able to reproduce this bug with supermin 5.1.5 by doing:

$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install attr:i386
$ sudo apt-get install xfsprogs

(Note that xfsprogs requires attr.)

After that:

$ dpkg-query --show --showformat '${Package} ${Version} ${Architecture}\n' | 
grep attr
attr 1:2.4.47-1 i386
libattr1 1:2.4.47-1 amd64
libattr1 1:2.4.47-1 i386
libattr1-dev 1:2.4.47-1 amd64

Now to reproduce the bug, do:

$ supermin --version
supermin 5.1.5
$ supermin --prepare attr xfsprogs -o /tmp/supermin.d
supermin: internal error: assertion failed at dpkg.ml, line 86, char 19

However, using supermin 5.1.6 does not produce the assertion failure,
and I am able to prepare and build an appliance:

$ git describe
v5.1.6
$ ./src/supermin --prepare attr xfsprogs -o /tmp/supermin.d
$ ./src/supermin --build /tmp/supermin.d -o /tmp/appliance.d -f chroot

So I think you should try upgrading to 5.1.6 to fix this bug.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#576250: febootstrap: segfaults and fails to complete bootstrapping

2010-06-17 Thread Richard W.M. Jones
On Thu, Jun 17, 2010 at 03:04:26AM +0300, Fathi Boudra wrote:
 Anyway, a new upstream release will be appreciated. If you don't mind,
 I could upload a NMU if needed.

Yes please.  The version in Debian is ancient.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#576250: febootstrap: segfaults and fails to complete bootstrapping

2010-06-17 Thread Richard W.M. Jones
On Thu, Jun 17, 2010 at 11:45:02AM +0300, Fathi Boudra wrote:
 Hi,
 
 I have uploaded febootstrap 2.7-1 to Debian.
 
 Unfortunately, this version still segfault:
 Complete!
 /usr/bin/fakeroot: line 1: 17946 Segmentation fault  exit $RESULT

These segfaults are almost certainly caused by glibc in the chroot not
matching glibc outside the chroot.  In practice when we do this in
Fedora we ensure that the glibc versions are identical.

This in turn may be caused because we aren't setting the correct
LD_LIBRARY_PATH(s) up inside febootstrap, so that we're in effect
mixing internal parts of the two different glibc versions.  I haven't
really had time to look into this in any detail.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#576250: I get the same with both fedora-10 and fedora-12.

2010-04-08 Thread Richard W.M. Jones
On Thu, Apr 08, 2010 at 01:39:00PM +1000, Erik de Castro Lopo wrote:
 Hi,
 
 I ran the commands (also tried with fedora-12 with same result):
 
 mkdir fed10-64
 febootstrap fedora-10 fed10-64 
 http://mirror/pub/fedora/linux/releases/10/Everything/x86_64/os

Which package is this?

Segfaults are in any case caused by incompatibilities between glibc in
the host and appliance.  You have to only install an operating system
which is compatible with the host OS.  In Fedora we recommend only
installing (eg) Fedora 12 on Fedora 12, because that way you know that
glibc won't have problems.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#576250: I get the same with both fedora-10 and fedora-12.

2010-04-08 Thread Richard W.M. Jones
On Thu, Apr 08, 2010 at 08:17:16PM +1000, Erik de Castro Lopo wrote:
  Which package is this?
 
 ii  febootstrap   2.1-4tool for bootstrapping a Fedora system (like 
 Debian debootstrap)

This is kind of old, I really need to update this to the
latest version.

 So why is febootstrap even made available to be installed under debian?

It does in fact work, but not in all cases.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org