Description of problem: './configure --enable-valgrind-daemon' reveals the following bug in the daemon: enabling valgrind: valgrind --leak-check=full --error-exitcode=119 --max-stackframe=8388608 --child-silent-after-fork=yes --suppressions=/etc/guestfsd.suppressions ==154== Memcheck, a memory error detector ==154== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==154== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==154== Command: guestfsd ==154== verbose daemon enabled linux commmand line: panic=1 guestfs_valgrind_daemon=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color trying to open virtio-serial channel '/dev/virtio-ports/org.libguestfs.channel.0' udevadm settle libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG libguestfs: [03010ms] appliance is up libguestfs: trace: launch = 0 libguestfs: trace: list_partitions guestfsd: main_loop: new request, len 0x28 libguestfs: trace: list_partitions = ["/dev/sda1", "/dev/sda2"] libguestfs: trace: vfs_type "/dev/sda1" guestfsd: main_loop: proc 8 (list_partitions) took 0.03 seconds guestfsd: main_loop: new request, len 0x38 blkid -c /dev/null -o value -s TYPE /dev/sda1 libguestfs: trace: vfs_type = "ext2" libguestfs: trace: vfs_type "/dev/sda2" guestfsd: main_loop: proc 198 (vfs_type) took 0.02 seconds guestfsd: main_loop: new request, len 0x38 blkid -c /dev/null -o value -s TYPE /dev/sda2 libguestfs: trace: vfs_type = "btrfs" libguestfs: trace: inspect_os libguestfs: trace: umount_all guestfsd: main_loop: proc 198 (vfs_type) took 0.01 seconds guestfsd: main_loop: new request, len 0x28 libguestfs: trace: umount_all = 0 libguestfs: trace: list_filesystems libguestfs: trace: list_devices guestfsd: main_loop: proc 47 (umount_all) took 0.01 seconds guestfsd: main_loop: new request, len 0x28 libguestfs: trace: list_devices = ["/dev/sda"] libguestfs: trace: list_partitions guestfsd: main_loop: proc 7 (list_devices) took 0.00 seconds guestfsd: main_loop: new request, len 0x28 guestfsd: main_loop: proc 8 (list_partitions) took 0.00 seconds libguestfs: trace: list_partitions = ["/dev/sda1", "/dev/sda2"] libguestfs: trace: list_md_devices guestfsd: main_loop: new request, len 0x28 libguestfs: trace: list_md_devices = [] libguestfs: trace: part_to_dev "/dev/sda1" guestfsd: main_loop: proc 300 (list_md_devices) took 0.01 seconds guestfsd: main_loop: new request, len 0x38 libguestfs: trace: part_to_dev = "/dev/sda" libguestfs: trace: part_to_dev "/dev/sda2" guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds libguestfs: trace: part_to_dev = "/dev/sda" libguestfs: trace: part_to_partnum "/dev/sda1" guestfsd: main_loop: new request, len 0x38 libguestfs: trace: part_to_partnum = 1 libguestfs: trace: part_to_dev "/dev/sda1" guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds libguestfs: trace: part_to_dev = "/dev/sda" libguestfs: trace: part_get_mbr_id "/dev/sda" 1 guestfsd: main_loop: new request, len 0x38 udevadm settle sfdisk --print-id /dev/sda 1 udevadm settle libguestfs: trace: part_get_mbr_id = 131 libguestfs: trace: vfs_type "/dev/sda1" guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.04 seconds guestfsd: main_loop: new request, len 0x38 blkid -c /dev/null -o value -s TYPE /dev/sda1 libguestfs: trace: vfs_type = "ext2" libguestfs: trace: part_to_partnum "/dev/sda2" guestfsd: main_loop: proc 198 (vfs_type) took 0.01 seconds guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds libguestfs: trace: part_to_partnum = 2 libguestfs: trace: part_to_dev "/dev/sda2" guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds libguestfs: trace: part_to_dev = "/dev/sda" libguestfs: trace: part_get_mbr_id "/dev/sda" 2 guestfsd: main_loop: new request, len 0x38 udevadm settle sfdisk --print-id /dev/sda 2 udevadm settle libguestfs: trace: part_get_mbr_id = 131 libguestfs: trace: vfs_type "/dev/sda2" guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.03 seconds guestfsd: main_loop: new request, len 0x38 blkid -c /dev/null -o value -s TYPE /dev/sda2 libguestfs: trace: vfs_type = "btrfs" libguestfs: trace: btrfs_subvolume_list "/dev/sda2" guestfsd: main_loop: proc 198 (vfs_type) took 0.01 seconds guestfsd: main_loop: new request, len 0x38 grep ^[[:space:]]*btrfs$ /proc/filesystems mount -o /dev/sda2 /tmp/btrfs.UrO4L2 [ 2.267233] device label ROOT devid 1 transid 11 /dev/sda2 [ 2.268275] btrfs: disk space caching is enabled btrfs subvolume list /tmp/btrfs.UrO4L2 umount /tmp/btrfs.UrO4L2 ==154== Invalid read of size 2 ==154== at 0x508316F: memcpy.5 (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==154== by 0x4092AD: do_btrfs_subvolume_list (string3.h:57) ==154== by 0x438521: btrfs_subvolume_list_stub (stubs.c:12358) ==154== by 0x43F084: dispatch_incoming_message (stubs.c:17082) ==154== by 0x422B53: main_loop (proto.c:192) ==154== by 0x4054CC: main (guestfsd.c:342) ==154== Address 0x5c56e12 is 34 bytes inside a block of size 35 alloc'd ==154== at 0x507F409: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==154== by 0x38DC286429: strdup (in /usr/lib64/libc-2.17.so) ==154== by 0x414EC0: add_string (guestfsd.c:529) ==154== by 0x415D31: split_lines (guestfsd.c:1095) ==154== by 0x409184: do_btrfs_subvolume_list (btrfs.c:388) ==154== by 0x438521: btrfs_subvolume_list_stub (stubs.c:12358) ==154== by 0x43F084: dispatch_incoming_message (stubs.c:17082) ==154== by 0x422B53: main_loop (proto.c:192) ==154== by 0x4054CC: main (guestfsd.c:342) ==154== ==154== Invalid read of size 2 ==154== at 0x5083160: memcpy.5 (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==154== by 0x4092AD: do_btrfs_subvolume_list (string3.h:57) ==154== by 0x438521: btrfs_subvolume_list_stub (stubs.c:12358) ==154== by 0x43F084: dispatch_incoming_message (stubs.c:17082) ==154== by 0x422B53: main_loop (proto.c:192) ==154== by 0x4054CC: main (guestfsd.c:342) ==154== Address 0x5c56e18 is 5 bytes after a block of size 35 alloc'd ==154== at 0x507F409: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==154== by 0x38DC286429: strdup (in /usr/lib64/libc-2.17.so) ==154== by 0x414EC0: add_string (guestfsd.c:529) ==154== by 0x415D31: split_lines (guestfsd.c:1095) ==154== by 0x409184: do_btrfs_subvolume_list (btrfs.c:388) ==154== by 0x438521: btrfs_subvolume_list_stub (stubs.c:12358) ==154== by 0x43F084: dispatch_incoming_message (stubs.c:17082) ==154== by 0x422B53: main_loop (proto.c:192) ==154== by 0x4054CC: main (guestfsd.c:342) ==154== ==154== Invalid read of size 1 ==154== at 0x50832B0: memcpy.5 (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==154== by 0x4092AD: do_btrfs_subvolume_list (string3.h:57) ==154== by 0x438521: btrfs_subvolume_list_stub (stubs.c:12358) ==154== by 0x43F084: dispatch_incoming_message (stubs.c:17082) ==154== by 0x422B53: main_loop (proto.c:192) ==154== by 0x4054CC: main (guestfsd.c:342) ==154== Address 0x5c56e30 is not stack'd, malloc'd or (recently) free'd ==154== libguestfs: trace: btrfs_subvolume_list = <struct guestfs_btrfssubvolume_list *> libguestfs: trace: feature_available "lvm2" guestfsd: main_loop: proc 325 (btrfs_subvolume_list) took 0.34 seconds guestfsd: main_loop: new request, len 0x34 libguestfs: trace: feature_available = 1 libguestfs: trace: lvs guestfsd: main_loop: proc 398 (feature_available) took 0.00 seconds guestfsd: main_loop: new request, len 0x28 lvm lvs -o vg_name,lv_name --noheadings --separator / WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning. No volume groups found libguestfs: trace: lvs = [] libguestfs: trace: feature_available "ldm" guestfsd: main_loop: proc 11 (lvs) took 0.01 seconds guestfsd: main_loop: new request, len 0x34 guestfsd: main_loop: proc 398 (feature_available) took 0.00 seconds libguestfs: trace: feature_available = 1 libguestfs: trace: list_ldm_volumes guestfsd: main_loop: new request, len 0x28 libguestfs: trace: list_ldm_volumes = [] libguestfs: trace: list_ldm_partitions guestfsd: main_loop: proc 380 (list_ldm_volumes) took 0.00 seconds guestfsd: main_loop: new request, len 0x28 libguestfs: trace: list_ldm_partitions = [] libguestfs: trace: list_filesystems = ["/dev/sda1", "ext2", "btrfsvol:/dev/sda2/root", "btrfs", "btrfsvol:/dev/sda2/home", "btrfs", "/dev/sda2", "btrfs"] libguestfs: trace: vfs_type "/dev/sda1" guestfsd: main_loop: proc 381 (list_ldm_partitions) took 0.00 seconds guestfsd: main_loop: new request, len 0x38 blkid -c /dev/null -o value -s TYPE /dev/sda1 libguestfs: trace: vfs_type = "ext2" libguestfs: check_for_filesystem_on: /dev/sda1 (ext2) libguestfs: trace: internal_parse_mountable "/dev/sda1" guestfsd: main_loop: proc 198 (vfs_type) took 0.01 seconds guestfsd: main_loop: new request, len 0x38 libguestfs: trace: internal_parse_mountable = <struct guestfs_internal_mountable *> libguestfs: trace: is_whole_device "/dev/sda1" guestfsd: main_loop: proc 396 (internal_parse_mountable) took 0.00 seconds guestfsd: main_loop: new request, len 0x38 libguestfs: trace: is_whole_device = 0 libguestfs: trace: mount_ro "/dev/sda1" "/" guestfsd: main_loop: proc 395 (is_whole_device) took 0.00 seconds guestfsd: main_loop: new request, len 0x40 mount -o ro /dev/sda1 /sysroot/ [ 2.672858] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem [ 2.674254] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null) libguestfs: trace: mount_ro = 0 libguestfs: trace: part_to_partnum "/dev/sda1" guestfsd: main_loop: proc 73 (mount_ro) took 0.02 seconds guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds libguestfs: trace: part_to_partnum = 1 libguestfs: trace: is_dir "/etc" guestfsd: main_loop: new request, len 0x34 libguestfs: trace: is_dir = 0 libguestfs: trace: is_dir "/bin" guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds guestfsd: main_loop: new request, len 0x34 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: is_dir "/share" guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: is_file "/grub/menu.lst" guestfsd: main_loop: new request, len 0x40 libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/grub/grub.conf" guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 1 libguestfs: trace: umount_all guestfsd: main_loop: new request, len 0x28 umount /sysroot libguestfs: trace: umount_all = 0 libguestfs: trace: vfs_type "btrfsvol:/dev/sda2/root" guestfsd: main_loop: proc 47 (umount_all) took 0.01 seconds guestfsd: main_loop: new request, len 0x44 blkid -c /dev/null -o value -s TYPE /dev/sda2 libguestfs: trace: vfs_type = "btrfs" libguestfs: check_for_filesystem_on: btrfsvol:/dev/sda2/root (btrfs) libguestfs: trace: internal_parse_mountable "btrfsvol:/dev/sda2/root" guestfsd: main_loop: proc 198 (vfs_type) took 0.01 seconds guestfsd: main_loop: new request, len 0x44 libguestfs: trace: internal_parse_mountable = <struct guestfs_internal_mountable *> libguestfs: trace: mount_ro "btrfsvol:/dev/sda2/root" "/" guestfsd: main_loop: proc 396 (internal_parse_mountable) took 0.00 seconds guestfsd: main_loop: new request, len 0x4c mount -o subvol=root,ro /dev/sda2 /sysroot/ [ 2.755467] device label ROOT devid 1 transid 13 /dev/sda2 [ 2.756486] btrfs: disk space caching is enabled libguestfs: trace: mount_ro = 0 libguestfs: trace: is_dir "/etc" guestfsd: main_loop: proc 73 (mount_ro) took 0.02 seconds guestfsd: main_loop: new request, len 0x34 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 1 libguestfs: trace: is_dir "/bin" guestfsd: main_loop: new request, len 0x34 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 1 libguestfs: trace: is_dir "/share" guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: is_file "/grub/menu.lst" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/grub/grub.conf" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/grub2/grub.cfg" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/etc/freebsd-update.conf" guestfsd: main_loop: new request, len 0x48 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/etc/fstab" guestfsd: main_loop: new request, len 0x3c guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 1 libguestfs: trace: is_file "/etc/release" guestfsd: main_loop: new request, len 0x3c guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/hurd/console" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/etc/fstab" guestfsd: main_loop: new request, len 0x3c guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 1 libguestfs: trace: is_file "/etc/lsb-release" "followsymlinks:true" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/etc/redhat-release" "followsymlinks:true" guestfsd: main_loop: new request, len 0x44 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 1 libguestfs: trace: filesize "/etc/redhat-release" guestfsd: main_loop: new request, len 0x40 libguestfs: trace: filesize = 25 libguestfs: trace: head_n 1 "/etc/redhat-release" guestfsd: main_loop: proc 218 (filesize) took 0.00 seconds guestfsd: main_loop: new request, len 0x44 head -n 1 libguestfs: trace: head_n = ["Fedora release 14 (Phony)"] libguestfs: trace: is_file "/bin/bash" guestfsd: main_loop: proc 122 (head_n) took 0.01 seconds guestfsd: main_loop: new request, len 0x3c libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/bin/ls" guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 1 libguestfs: trace: file_architecture "/bin/ls" libguestfs: trace: file "/bin/ls" guestfsd: main_loop: new request, len 0x34 file -zb /sysroot/bin/ls libguestfs: trace: file = "ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=0x6e5e9bdb3a7d05e7d63d248f51de0d638df0c803, not stripped" libguestfs: trace: file_architecture = "x86_64" libguestfs: trace: is_file "/etc/fstab" "followsymlinks:true" guestfsd: main_loop: proc 49 (file) took 0.01 seconds guestfsd: main_loop: new request, len 0x3c guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 1 libguestfs: trace: filesize "/etc/fstab" guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 218 (filesize) took 0.00 seconds libguestfs: trace: filesize = 108 libguestfs: trace: is_file "/etc/mdadm.conf" "followsymlinks:true" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: aug_init "/" 48 guestfsd: main_loop: new request, len 0x34 libguestfs: trace: aug_init = 0 libguestfs: augeas pathexpr = /augeas/load/*[ "/etc/fstab/" !~ regexp('^') + glob(incl) + regexp('/.*') and "/etc/mdadm.conf/" !~ regexp('^') + glob(incl) + regexp('/.*') ] libguestfs: trace: aug_rm "/augeas/load/*[ "/etc/fstab/" !~ regexp('^') + glob(incl) + regexp('/.*') and "/etc/mdadm.conf/" !~ regexp('^') + glob(incl) + regexp('/.*') ]" guestfsd: main_loop: proc 16 (aug_init) took 8.78 seconds guestfsd: main_loop: new request, len 0xbc libguestfs: trace: aug_rm = 1170 libguestfs: trace: aug_load guestfsd: main_loop: proc 22 (aug_rm) took 0.77 seconds guestfsd: main_loop: new request, len 0x28 libguestfs: trace: aug_load = 0 libguestfs: trace: list_md_devices guestfsd: main_loop: proc 27 (aug_load) took 0.09 seconds guestfsd: main_loop: new request, len 0x28 libguestfs: trace: list_md_devices = [] libguestfs: trace: aug_match "/files/etc/fstab/*[label() != '#comment']" guestfsd: main_loop: proc 300 (list_md_devices) took 0.00 seconds guestfsd: main_loop: new request, len 0x58 libguestfs: trace: aug_match = ["/files/etc/fstab/1", "/files/etc/fstab/2", "/files/etc/fstab/3"] libguestfs: trace: aug_get "/files/etc/fstab/1/spec" guestfsd: main_loop: proc 24 (aug_match) took 0.00 seconds guestfsd: main_loop: new request, len 0x44 libguestfs: trace: aug_get = "LABEL=BOOT" libguestfs: trace: aug_get "/files/etc/fstab/1/file" guestfsd: main_loop: proc 19 (aug_get) took 0.00 seconds guestfsd: main_loop: new request, len 0x44 guestfsd: main_loop: proc 19 (aug_get) took 0.00 seconds libguestfs: trace: aug_get = "/boot" libguestfs: trace: findfs_label "BOOT" guestfsd: main_loop: new request, len 0x30 findfs LABEL=BOOT libguestfs: trace: findfs_label = "/dev/sda1" libguestfs: trace: aug_get "/files/etc/fstab/1/vfstype" guestfsd: main_loop: proc 266 (findfs_label) took 0.02 seconds guestfsd: main_loop: new request, len 0x48 guestfsd: main_loop: proc 19 (aulibguestfs: trace: aug_get = "ext2" libguestfs: fstab: mountable=/dev/sda1 mountpoint=/boot libguestfs: trace: aug_get "/files/etc/fstab/2/spec" g_get) took 0.00 seconds guestfsd: main_loop: new request, len 0x44 guestfsd: main_loop: proc 19 (aug_get) took 0.00 seconds libguestfs: trace: aug_get = "LABEL=ROOT" libguestfs: trace: aug_get "/files/etc/fstab/2/file" guestfsd: main_loop: new request, len 0x44 guestfsd: main_loop: proc 19 (aug_get) took 0.00 seconds libguestfs: trace: aug_get = "/" libguestfs: trace: findfs_label "ROOT" guestfsd: main_loop: new request, len 0x30 findfs LABEL=ROOT libguestfs: trace: findfs_label = "/dev/sda2" libguestfs: trace: aug_get "/files/etc/fstab/2/vfstype" guestfsd: main_loop: proc 266 (findfs_label) took 0.01 seconds guestfsd: main_loop: new request, len 0x48 guestfsd: main_loop: proc 19 (aug_get) took 0.00 seconds libguestfs: trace: aug_get = "btrfs" libguestfs: trace: aug_match "/files/etc/fstab/2/opt" guestfsd: main_loop: new request, len 0x44 guestfsd: main_loop: proc 24 (aug_match) took 0.00 seconds libguestfs: trace: aug_match = ["/files/etc/fstab/2/opt"] libguestfs: trace: aug_get "/files/etc/fstab/2/opt" guestfsd: main_loop: new request, len 0x44 guestfsd: main_loop: proc 19 (aug_get) took 0.00 secondslibguestfs: trace: aug_get = "subvol" libguestfs: trace: aug_get "/files/etc/fstab/2/opt/value" guestfsd: main_loop: new request, len 0x48 guestfsd: main_loop: proc 19 (aug_get) took 0.00 seconds libguestfs: trace: aug_get = "root" libguestfs: fstab: mountable=btrfsvol:/dev/sda2/root mountpoint=/ libguestfs: trace: aug_get "/files/etc/fstab/3/spec" guestfsd: main_loop: new request, len 0x44 guestfsd: main_loop: proc 19 (aug_get) took 0.00 seconds libguestfs: trace: aug_get = "LABEL=ROOT" libguestfs: trace: aug_get "/files/etc/fstab/3/file" guestfsd: main_loop: new request, len 0x44 guestfsd: main_loop: proc 19 (aug_get) took 0.00 seconds libguestfs: trace: aug_get = "/home" libguestfs: trace: findfs_label "ROOT" guestfsd: main_loop: new request, len 0x30 findfs LABEL=ROOT libguestfs: trace: findfs_label = "/dev/sda2" libguestfs: trace: aug_get "/files/etc/fstab/3/vfstype" guestfsd: main_loop: proc 266 (findfs_label) took 0.01 seconds guestfsd: main_loop: new request, len 0x48 guestfsd: main_loop: proc 19 (aug_get) took 0.00 seconds libguestfs: trace: aug_get = "btrfs" libguestfs: trace: aug_match "/files/etc/fstab/3/opt" guestfsd: main_loop: new request, len 0x44 libguestfs: trace: aug_match = ["/files/etc/fstab/3/opt"] libguestfs: trace: aug_get "/files/etc/fstab/3/opt" guestfsd: main_loop: proc 24 (aug_match) took 0.00 seconds guestfsd: main_loop: new request, len 0x44 guestfsd: main_loop: proc 19 (aug_get) took 0.00 seconds libguestfs: trace: aug_get = "subvol" libguestfs: trace: aug_get "/files/etc/fstab/3/opt/value" guestfsd: main_loop: new request, len 0x48 guestfsd: main_loop: proc 19 (aug_get) took 0.00 secondslibguestfs: trace: aug_get = "home" libguestfs: fstab: mountable=btrfsvol:/dev/sda2/home mountpoint=/home libguestfs: trace: aug_close guestfsd: main_loop: new request, len 0x28 libguestfs: trace: aug_close = 0 libguestfs: trace: is_file "/etc/HOSTNAME" guestfsd: main_loop: proc 26 (aug_close) took 0.64 seconds guestfsd: main_loop: new request, len 0x40 libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/etc/hostname" guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/etc/sysconfig/network" guestfsd: main_loop: new request, len 0x48 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 1 libguestfs: trace: is_file "/etc/sysconfig/network" "followsymlinks:true" guestfsd: main_loop: new request, len 0x48 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 1 libguestfs: trace: filesize "/etc/sysconfig/network" guestfsd: main_loop: new request, len 0x44 guestfsd: main_loop: proc 218 (filesize) took 0.00 seconds libguestfs: trace: filesize = 23 libguestfs: trace: aug_init "/" 48 guestfsd: main_loop: new request, len 0x34 [ 18.103163] perf samples too long (2571 > 2500), lowering kernel.perf_event_max_sample_rate to 50000 libguestfs: trace: aug_init = 0 libguestfs: augeas pathexpr = /augeas/load/*[ "/etc/sysconfig/network/" !~ regexp('^') + glob(incl) + regexp('/.*') ] libguestfs: trace: aug_rm "/augeas/load/*[ "/etc/sysconfig/network/" !~ regexp('^') + glob(incl) + regexp('/.*') ]" guestfsd: main_loop: proc 16 (aug_init) took 8.19 seconds guestfsd: main_loop: new request, len 0x84 libguestfs: trace: aug_rm = 1112 libguestfs: trace: aug_load guestfsd: main_loop: proc 22 (aug_rm) took 0.35 seconds guestfsd: main_loop: new request, len 0x28 libguestfs: trace: aug_load = 0 libguestfs: trace: aug_get "/files/etc/sysconfig/network/HOSTNAME" guestfsd: main_loop: proc 27 (aug_load) took 0.10 seconds guestfsd: main_loop: new request, len 0x54 libguestfs: trace: aug_get = "fedora.invalid" libguestfs: trace: aug_close guestfsd: main_loop: proc 19 (aug_get) took 0.00 seconds guestfsd: main_loop: new request, len 0x28 libguestfs: trace: aug_close = 0 libguestfs: trace: umount_all guestfsd: main_loop: proc 26 (aug_close) took 0.61 seconds guestfsd: main_loop: new request, len 0x28 umount /sysroot libguestfs: trace: umount_all = 0 libguestfs: trace: vfs_type "btrfsvol:/dev/sda2/home" guestfsd: main_loop: proc 47 (umount_all) took 0.01 seconds guestfsd: main_loop: new request, len 0x44 blkid -c /dev/null -o value -s TYPE /dev/sda2 libguestfs: trace: vfs_type = "btrfs" libguestfs: check_for_filesystem_on: btrfsvol:/dev/sda2/home (btrfs) libguestfs: trace: internal_parse_mountable "btrfsvol:/dev/sda2/home" guestfsd: main_loop: proc 198 (vfs_type) took 0.01 seconds guestfsd: main_loop: new request, len 0x44 guestfsd: main_loop: proc 396 (internal_parse_mountable) took 0.00 seconds libguestfs: trace: internal_parse_mountable = <struct guestfs_internal_mountable *> libguestfs: trace: mount_ro "btrfsvol:/dev/sda2/home" "/" guestfsd: main_loop: new request, len 0x4c mount -o subvol=home,ro /dev/sda2 /sysroot/ [ 23.020401] device label ROOT devid 1 transid 13 /dev/sda2 [ 23.021406] btrfs: disk space caching is enabled libguestfs: trace: mount_ro = 0 libguestfs: trace: is_dir "/etc" guestfsd: main_loop: proc 73 (mount_ro) took 0.02 seconds guestfsd: main_loop: new request, len 0x34 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: is_dir "/bin" guestfsd: main_loop: new request, len 0x34 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: is_dir "/share" guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: is_file "/grub/menu.lst" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/grub/grub.conf" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/grub2/grub.cfg" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/hurd/console" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_dir "/log" guestfsd: main_loop: new request, len 0x34 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: case_sensitive_path "/windows" guestfsd: main_loop: new request, len 0x34 libguestfs: trace: case_sensitive_path = "/windows" libguestfs: trace: case_sensitive_path "/windows/system32" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x40 guestfsd: error: windows: no file or directory found with this name libguestfs: trace: case_sensitive_path = NULL (error) libguestfs: trace: case_sensitive_path "/winnt" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x34 libguestfs: trace: case_sensitive_path = "/winnt" libguestfs: trace: case_sensitive_path "/winnt/system32" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x3c guestfsd: error: winnt: no file or directory found with this name libguestfs: trace: case_sensitive_path = NULL (error) libguestfs: trace: case_sensitive_path "/win32" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x34 libguestfs: trace: case_sensitive_path = "/win32" libguestfs: trace: case_sensitive_path "/win32/system32" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x3c guestfsd: error: win32: no file or directory found with this name libguestfs: trace: case_sensitive_path = NULL (error) libguestfs: trace: case_sensitive_path "/win" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x30 libguestfs: trace: case_sensitive_path = "/win" libguestfs: trace: case_sensitive_path "/win/system32" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x3c guestfsd: error: win: no file or directory found with this name libguestfs: trace: case_sensitive_path = NULL (error) libguestfs: trace: case_sensitive_path "/boot.ini" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x38 libguestfs: trace: case_sensitive_path = "/boot.ini" libguestfs: trace: is_file "/boot.ini" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x3c guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: case_sensitive_path "/System Volume Information" guestfsd: main_loop: new request, len 0x48 libguestfs: trace: case_sensitive_path = "/System Volume Information" libguestfs: trace: is_dir "/System Volume Information" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x4c guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: case_sensitive_path "/System Volume Information" guestfsd: main_loop: new request, len 0x48 libguestfs: trace: case_sensitive_path = "/System Volume Information" libguestfs: trace: is_dir "/System Volume Information" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x4c guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: case_sensitive_path "/FDOS" guestfsd: main_loop: new request, len 0x34 libguestfs: trace: case_sensitive_path = "/FDOS" libguestfs: trace: is_dir "/FDOS" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: umount_all guestfsd: main_loop: new request, len 0x28 umount /sysroot libguestfs: trace: umount_all = 0 libguestfs: trace: vfs_type "/dev/sda2" guestfsd: main_loop: proc 47 (umount_all) took 0.01 seconds guestfsd: main_loop: new request, len 0x38 blkid -c /dev/null -o value -s TYPE /dev/sda2 libguestfs: trace: vfs_type = "btrfs" libguestfs: check_for_filesystem_on: /dev/sda2 (btrfs) libguestfs: trace: internal_parse_mountable "/dev/sda2" guestfsd: main_loop: proc 198 (vfs_type) took 0.01 seconds guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 396 (internal_parse_mountable) took 0.00 seconds libguestfs: trace: internal_parse_mountable = <struct guestfs_internal_mountable *> libguestfs: trace: is_whole_device "/dev/sda2" guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 395 (is_whole_device) took 0.00 seconds libguestfs: trace: is_whole_device = 0 libguestfs: trace: mount_ro "/dev/sda2" "/" guestfsd: main_loop: new request, len 0x40 mount -o ro /dev/sda2 /sysroot/ [ 23.154795] device label ROOT devid 1 transid 13 /dev/sda2 [ 23.155910] btrfs: disk space caching is enabled libguestfs: trace: mount_ro = 0 libguestfs: trace: part_to_partnum "/dev/sda2" guestfsd: main_loop: proc 73 (mount_ro) took 0.02 seconds guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds libguestfs: trace: part_to_partnum = 2 libguestfs: trace: is_dir "/etc" guestfsd: main_loop: new request, len 0x34 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: is_dir "/bin" guestfsd: main_loop: new request, len 0x34 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: is_dir "/share" guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: is_file "/grub/menu.lst" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/grub/grub.conf" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/grub2/grub.cfg" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_file "/hurd/console" guestfsd: main_loop: new request, len 0x40 guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: is_dir "/log" guestfsd: main_loop: new request, len 0x34 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: case_sensitive_path "/windows" guestfsd: main_loop: new request, len 0x34 libguestfs: trace: case_sensitive_path = "/windows" libguestfs: trace: case_sensitive_path "/windows/system32" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x40 guestfsd: error: windows: no file or directory found with this name guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds libguestfs: trace: case_sensitive_path = NULL (error) libguestfs: trace: case_sensitive_path "/winnt" guestfsd: main_loop: new request, len 0x34 libguestfs: trace: case_sensitive_path = "/winnt" libguestfs: trace: case_sensitive_path "/winnt/system32" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x3c guestfsd: error: winnt: no file or directory found with this name guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds libguestfs: trace: case_sensitive_path = NULL (error) libguestfs: trace: case_sensitive_path "/win32" guestfsd: main_loop: new request, len 0x34 libguestfs: trace: case_sensitive_path = "/win32" libguestfs: trace: case_sensitive_path "/win32/system32" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x3c guestfsd: error: win32: no file or directory found with this name guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds libguestfs: trace: case_sensitive_path = NULL (error) libguestfs: trace: case_sensitive_path "/win" guestfsd: main_loop: new request, len 0x30 libguestfs: trace: case_sensitive_path = "/win" libguestfs: trace: case_sensitive_path "/win/system32" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x3c guestfsd: error: win: no file or directory found with this name libguestfs: trace: case_sensitive_path = NULL (error) libguestfs: trace: case_sensitive_path "/boot.ini" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x38 libguestfs: trace: case_sensitive_path = "/boot.ini" libguestfs: trace: is_file "/boot.ini" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x3c guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds libguestfs: trace: is_file = 0 libguestfs: trace: case_sensitive_path "/System Volume Information" guestfsd: main_loop: new request, len 0x48 libguestfs: trace: case_sensitive_path = "/System Volume Information" libguestfs: trace: is_dir "/System Volume Information" guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds guestfsd: main_loop: new request, len 0x4c guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: case_sensitive_path "/System Volume Information" guestfsd: main_loop: new request, len 0x48 guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 selibguestfs: trace: case_sensitive_path = "/System Volume Information" libguestfs: trace: is_dir "/System Volume Information" conds guestfsd: main_loop: new request, len 0x4c guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: case_sensitive_path "/FDOS" guestfsd: main_loop: new request, len 0x34 guestfsd: main_loop: proc 197 (case_sensitive_path) took 0.00 seconds libguestfs: trace: case_sensitive_path = "/FDOS" libguestfs: trace: is_dir "/FDOS" guestfsd: main_loop: new request, len 0x38 guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds libguestfs: trace: is_dir = 0 libguestfs: trace: umount_all guestfsd: main_loop: new request, len 0x28 umount /sysroot libguestfs: trace: umount_all = 0 libguestfs: trace: inspect_get_roots libguestfs: trace: inspect_get_roots = ["btrfsvol:/dev/sda2/root"] libguestfs: trace: inspect_os = ["btrfsvol:/dev/sda2/root"] libguestfs: trace: inspect_get_mountpoints "btrfsvol:/dev/sda2/root" libguestfs: trace: inspect_get_mountpoints = ["/boot", "/dev/sda1", "/", "btrfsvol:/dev/sda2/root", "/home", "btrfsvol:/dev/sda2/home"] libguestfs: trace: mount "btrfsvol:/dev/sda2/root" "/" guestfsd: main_loop: proc 47 (umount_all) took 0.01 seconds guestfsd: main_loop: new request, len 0x4c mount -o subvol=root /dev/sda2 /sysroot/ [ 23.262380] device label ROOT devid 1 transid 13 /dev/sda2 [ 23.263405] btrfs: disk space caching is enabled libguestfs: trace: mount = 0 libguestfs: trace: mount "/dev/sda1" "/boot" guestfsd: main_loop: proc 1 (mount) took 0.02 seconds guestfsd: main_loop: new request, len 0x44 mount -o /dev/sda1 /sysroot/boot [ 23.287065] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem [ 23.288678] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null) libguestfs: trace: mount = 0 libguestfs: trace: mount "btrfsvol:/dev/sda2/home" "/home" guestfsd: main_loop: proc 1 (mount) took 0.02 seconds guestfsd: main_loop: new request, len 0x50 guestfsd: error: mount: /home: No such file or directory guestfsd: main_loop: proc 1 (mount) took 0.00 seconds libguestfs: trace: mount = -1 (error) libguestfs: error: mount: mount: /home: No such file or directory lt-guestfish: some filesystems could not be mounted (ignored) libguestfs: trace: inspect_get_roots libguestfs: trace: inspect_get_roots = ["btrfsvol:/dev/sda2/root"] libguestfs: trace: inspect_get_mountpoints "btrfsvol:/dev/sda2/root" libguestfs: trace: inspect_get_mountpoints = ["/boot", "/dev/sda1", "/", "btrfsvol:/dev/sda2/root", "/home", "btrfsvol:/dev/sda2/home"] libguestfs: trace: shutdown libguestfs: trace: internal_autosync guestfsd: main_loop: new request, len 0x28 umount /sysroot/boot umount /sysroot fsync /dev/sda libguestfs: trace: internal_autosync = 0 libguestfs: trace: internal_exit guestfsd: main_loop: proc 282 (internal_autosync) took 0.14 seconds guestfsd: main_loop: new request, len 0x28 libguestfs: trace: internal_exit = 0 ==154== ==154== HEAP SUMMARY: ==154== in use at exit: 40 bytes in 1 blocks ==154== total heap usage: 3,828,298 allocs, 3,828,297 frees, 325,947,807 bytes allocated ==154== ==154== LEAK SUMMARY: ==154== definitely lost: 0 bytes in 0 blocks ==154== indirectly lost: 0 bytes in 0 blocks ==154== possibly lost: 0 bytes in 0 blocks ==154== still reachable: 40 bytes in 1 blocks ==154== suppressed: 0 bytes in 0 blocks ==154== Reachable blocks (those to which a pointer was found) are not shown. ==154== To see them, rerun with: --leak-check=full --show-reachable=yes ==154== ==154== For counts of detected and suppressed errors, rerun with: -v ==154== ERROR SUMMARY: 32 errors from 3 contexts (suppressed: 0 from 0) DAEMON VALGRIND FAILED Detected valgrind failure in the daemon! Exiting with exit code 119. See log messages printed above. Note: This happens because libguestfs was configured with '--enable-valgrind-daemon' which should not be used in production builds. libguestfs: trace: close libguestfs: closing guestfs handle 0x1fe9de0 (state 2) libguestfs: trace: internal_autosync Rebooting. Version-Release number of selected component (if applicable): libguestfs 1.23.29 (from git) How reproducible: 100% Steps to Reproduce: 1. ./configure --enable-valgrind-daemon 2. make 3. make check LIBGUESTFS_TRACE=1 LIBGUESTFS_DEBUG=1
John Eckersberg fixed this in: da85de8a42a3f0c28a8cd48c34d93801afb7aa23