Package: qemu-system-arm
Version: 1:2.11+dfsg-1
Severity: grave

Dear Maintainer,

I just got an nbdkit build failure from the armhf autobuilders. The
test-suite uses libguestfs and spawns qemu-system-arm which is killed by
SIGSEGV. Please see
https://buildd.debian.org/status/fetch.php?pkg=nbdkit&arch=armhf&ver=1.1.28-1&stamp=1516723989&raw=0
for the build log.

I re-ran the check in an armhf porterbox chroot (abel) and got the
output below. I don't see any useful output after starting
qemu-system-arm, but at least the command line parameters are visible.

,----
| $ LIBGUESTFS_TRACE=1 LIBGUESTFS_DEBUG=1 make check
| [...]
| guestfish -N fs -m /dev/sda1 write /hello.txt "hello,world"
| libguestfs: trace: set_verbose true
| libguestfs: trace: set_verbose = 0
| libguestfs: create: flags = 0, handle = 0x10e8ee8, program = guestfish
| libguestfs: trace: disk_create "test1.img" "raw" 104857600 
"preallocation:sparse"
| libguestfs: trace: disk_create = 0
| libguestfs: trace: set_pgroup true
| libguestfs: trace: set_pgroup = 0
| libguestfs: trace: add_drive "test1.img" "format:raw"
| libguestfs: trace: add_drive = 0
| libguestfs: trace: is_config
| libguestfs: trace: is_config = 1
| libguestfs: trace: launch
| libguestfs: trace: get_tmpdir
| libguestfs: trace: get_tmpdir = "/tmp"
| libguestfs: trace: version
| libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 36, 
release: 11, extra: , >
| libguestfs: trace: get_backend
| libguestfs: trace: get_backend = "direct"
| libguestfs: launch: program=guestfish
| libguestfs: launch: version=1.36.11
| libguestfs: launch: backend registered: unix
| libguestfs: launch: backend registered: uml
| libguestfs: launch: backend registered: libvirt 
| libguestfs: launch: backend registered: direct  
| libguestfs: launch: backend=direct
| libguestfs: launch: tmpdir=/tmp/libguestfsZiGbYj
| libguestfs: launch: umask=0022
| libguestfs: launch: euid=2596
| libguestfs: is_openable: /dev/kvm: No such file or directory
| libguestfs: trace: get_backend_setting "force_tcg"
| libguestfs: trace: get_backend_setting = NULL (error)
| libguestfs: trace: get_cachedir
| libguestfs: trace: get_cachedir = "/var/tmp"
| libguestfs: begin building supermin appliance   
| libguestfs: run supermin
| libguestfs: command: run: /usr/bin/supermin
| libguestfs: command: run: \ --build
| libguestfs: command: run: \ --verbose
| libguestfs: command: run: \ --if-newer
| libguestfs: command: run: \ --lock /var/tmp/.guestfs-2596/lock
| libguestfs: command: run: \ --copy-kernel
| libguestfs: command: run: \ -f ext2
| libguestfs: command: run: \ --host-cpu arm
| libguestfs: command: run: \ /usr/lib/arm-linux-gnueabihf/guestfs/supermin.d
| libguestfs: command: run: \ -o /var/tmp/.guestfs-2596/appliance.d
| supermin: version: 5.1.19
| supermin: package handler: debian/dpkg
| supermin: acquiring lock on /var/tmp/.guestfs-2596/lock
| supermin: if-newer: output does not need rebuilding
| libguestfs: finished building supermin appliance
| libguestfs: begin testing qemu features
| libguestfs: trace: get_cachedir
| libguestfs: trace: get_cachedir = "/var/tmp"
| libguestfs: checking for previously cached test results of 
/usr/bin/qemu-system-
| arm, in /var/tmp/.guestfs-2596
| libguestfs: loading previously cached test results
| libguestfs: QMP parse error: parse error: premature EOF\n                     
                  \n                     (right here) ------^\n (ignored)
| libguestfs: qemu version: 2.11
| libguestfs: qemu mandatory locking: yes
| libguestfs: trace: get_sockdir
| libguestfs: trace: get_sockdir = "/tmp"
| libguestfs: finished testing qemu features
| libguestfs: trace: get_backend_setting "gdb"
| libguestfs: trace: get_backend_setting = NULL (error)
| libguestfs: command: run: dmesg | grep -Eoh 'lpj=[[:digit:]]+'
| dmesg: read kernel buffer failed: Operation not permitted
| libguestfs: read_lpj_from_dmesg: external command exited with error status 1
| libguestfs: read_lpj_from_files: no boot messages files are readable
| [00050ms] /usr/bin/qemu-system-arm \
|     -global virtio-blk-device.scsi=off \
|     -enable-fips \
|     -nodefaults \
|     -display none \
|     -machine virt,accel=kvm:tcg \
|     -m 500 \
|     -no-reboot \
|     -rtc driftfix=slew \
|     -kernel /var/tmp/.guestfs-2596/appliance.d/kernel \
|     -initrd /var/tmp/.guestfs-2596/appliance.d/initrd \
|     -object rng-random,filename=/dev/urandom,id=rng0 \
|     -device virtio-rng-pci,rng=rng0 \
|     -device virtio-scsi-device,id=scsi \
|     -drive 
file=/home/bengen/nbdkit-1.1.28/tests/test1.img,cache=writeback,format=raw,id=hd0,if=none
 \
|     -device scsi-hd,drive=hd0 \
|     -drive 
file=/var/tmp/.guestfs-2596/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none,format=raw
 \
|     -device scsi-hd,drive=appliance \
|     -device virtio-serial-device \
|     -serial stdio \
|     -chardev socket,path=/tmp/libguestfscc24gw/guestfsd.sock,id=channel0 \
|     -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
|     -append 'panic=1 mem=500M console=ttyAMA0 edd=off udevtimeout=6000 
udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory 
usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb 
selinux=0 guestfs_verbose=1 TERM=screen'
| Could not access KVM kernel module: No such file or directory
| qemu-system-arm: failed to initialize KVM: No such file or directory
| qemu-system-arm: Back to tcg accelerator
| libguestfs: error: appliance closed the connection unexpectedly, see earlier 
error messages
| libguestfs: child_cleanup: 0x10e8ee8: child process died
| libguestfs: sending SIGTERM to process 14693
| libguestfs: error: /usr/bin/qemu-system-arm killed by signal 11 (Segmentation 
fault), see debug messages above
| libguestfs: error: guestfs_launch failed, see earlier error messages
| libguestfs: trace: launch = -1 (error)
| libguestfs: trace: close
| libguestfs: closing guestfs handle 0x10e8ee8 (state 0)
| libguestfs: command: run: rm
| libguestfs: command: run: \ -rf /tmp/libguestfsZiGbYj
| libguestfs: command: run: rm
| libguestfs: command: run: \ -rf /tmp/libguestfscc24gw
| Makefile:2396: recipe for target 'disk' failed  
| make[2]: *** [disk] Error 1
| [...]
`----

Please let me know what I can do to provide further debugging help.

Cheers,
-Hilko

Reply via email to