Bug 588851

Summary: guestfs_launch() returns -1, but guestfs_last_error() == NULL
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-07 21:39:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 588860    

Description Richard W.M. Jones 2010-05-04 17:43:39 UTC
Description of problem:

When guestfs_launch() returns -1, guestfs_last_error()
can return NULL.  This produces errors from the Perl
bindings such as:

  (null) at virt-rescue line 146.

where virt-rescue:146 is the line containing $g->launch()

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

libguestfs 1.3.9

How reproducible:


Steps to Reproduce:
1. Run virt-rescue
2. In another window, kill the qemu process
Actual results:

(null) at virt-rescue line 146.

Expected results:

A more useful error message.

Additional info:

Comment 2 Fedora Update System 2010-05-14 19:12:51 UTC
libguestfs-1.2.6-1.fc13 has been submitted as an update for Fedora 13.

Comment 3 Fedora Update System 2010-05-17 12:28:07 UTC
libguestfs-1.2.7-1.fc12 has been submitted as an update for Fedora 12.

Comment 4 Fedora Update System 2010-05-17 12:47:54 UTC
libguestfs-1.2.7-1.el5 has been submitted as an update for Fedora EPEL 5.

Comment 5 Fedora Update System 2010-05-17 13:00:21 UTC
libguestfs-1.2.7-2.fc13 has been submitted as an update for Fedora 13.

Comment 6 Fedora Update System 2010-05-21 11:33:35 UTC
libguestfs-1.2.7-2.fc13.1 has been submitted as an update for Fedora 13.