http://bugzilla.suse.com/show_bug.cgi?id=1046678
Bug ID: 1046678
Summary: libguestfs: virt-sysprep: segfault in supermin
Classification: openSUSE
Product: openSUSE Tumbleweed
Version: Current
Hardware: Other
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Virtualization:Tools
Assignee: virt-bugs@suse.de
Reporter: martin.wilck@suse.com
QA Contact: qa-bugs@suse.de
Found By: ---
Blocker: ---
supermin dies while running virt-sysprep. "clonevm" is a shell script I wrote.
It creates a VM and runs virt-sysprep to do some final customizations on it.
virt-sysprep: error: libguestfs error: /usr/bin/supermin killed by signal
11 (Segmentation fault).
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.
If reporting bugs, run virt-sysprep with debugging enabled and include the
complete output:
virt-sysprep -v -x [...]
clonevm: ERROR in virt-sysprep --operations
defaults,-udev-persistent-net,-ssh-userdir --quiet --hostname "$newname" -a
"$NEWROOT" --script "$TMPD/rename_ifaces" at clonevm:223
apollon:/mnt/vms # coredumpctl gdb /usr/bin/supermin
PID: 31186 (supermin)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Thu 2017-06-29 14:52:50 CEST (17min ago)
Command Line: /usr/bin/supermin --build --if-newer --lock
/var/tmp/.guestfs-0/lock --copy-kernel -f ext2 --host-cpu x86_64
/usr/lib64/guestfs/supermin.d -o /var/tmp/.guestfs-0/appliance.d
Executable: /usr/bin/supermin
Control Group:
/user.slice/user-17326.slice/user@17326.service/gnome-terminal-server.service
Unit: user@17326.service
User Unit: gnome-terminal-server.service
Slice: user-17326.slice
Owner UID: 17326 (mwilck)
Boot ID: 43ccdab44d4340198c8783756adab716
Machine ID: a0385656b74c9241b77c1bb6577a603b
Hostname: apollon.suse.de
Storage:
/var/lib/systemd/coredump/core.supermin.0.43ccdab44d4340198c8783756adab716.31186.1498740770000000.lz4
Message: Process 31186 (supermin) of user 0 dumped core.
Core was generated by `/usr/bin/supermin --build --if-newer --lock
/var/tmp/.guestfs-0/lock --copy-ker'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
106 movdqu (%rax), %xmm4
(gdb) bt
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
#1 0x00007ff9aee064c8 in indexGet (dbi=dbi@entry=0x559622e29b60,
keyp=keyp@entry=0x1