Bug 909836

Summary: libguestfs-test-tool --qemu segfaults
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: amit.shah, dyasny, mbooth
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-11 15:16:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2013-02-11 09:33:56 UTC
Description of problem:

(Reported by Amit Shah)

$ libguestfs-test-tool --qemu /usr/bin/qemu-kvm 
Segmentation fault (core dumped)

The stack trace is:

(gdb) bt
#0  guestfs_set_qemu (g=0x0, 
    qemu=qemu@entry=0x7fffffffdf77 "/usr/bin/qemu-kvm") at actions-3.c:169
#1  0x0000000000402615 in set_qemu (path=0x7fffffffdf77 "/usr/bin/qemu-kvm", 
    use_wrapper=use_wrapper@entry=0) at test-tool.c:341
#2  0x0000000000401c67 in main (argc=3, argv=0x7fffffffdb18) at test-tool.c:102

Version-Release number of selected component (if applicable):

libguestfs 1.20, 1.21

How reproducible:

100%

Steps to Reproduce:
See above.

Comment 1 Richard W.M. Jones 2013-02-11 15:16:16 UTC
Fixed upstream in:
https://github.com/libguestfs/libguestfs/commit/df983d19946fec697db2c502d7a6bb36ff0d2df5

I'll backport this fix to F18 & RHEL 7 in the next
stable release.