Bug 508713 - libguestfs: error: write: Broken pipe (guestfish only)
Summary: libguestfs: error: write: Broken pipe (guestfish only)
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-29 15:12 UTC by Richard W.M. Jones
Modified: 2010-03-27 10:34 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-27 10:34:55 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2009-06-29 15:12:04 UTC
If the qemu process is explicitly killed while guestfish is
running then you will get this error repeatedly.

It is caused because of the setting of SIGPIPE to SIG_IGN
in this changeset:

http://git.et.redhat.com/?p=libguestfs.git;a=commitdiff;h=88da5cf8a32e683ed1d78419fcde609a389a2f65;hp=d164ae963297a99e2222bc32b11928c1635c45d8#patch1

Comment 1 Richard W.M. Jones 2009-06-29 15:23:05 UTC
The following cset fixes this:
http://git.et.redhat.com/?p=libguestfs.git;a=commitdiff;h=ad475104ec7fae456d3309cbf4261b893ed160bb

$ ./fish/guestfish --ro -a ~/Fedora-11-i686-Live.iso -m /dev/sda

Welcome to guestfish, the libguestfs filesystem interactive shell for
editing virtual machine filesystems.

Type: 'help' for help with commands
      'quit' to quit the shell

><fs> ls /
EFI
GPL
LiveOS
README
isolinux
><fs> ls /
libguestfs: error: write: Broken pipe
libguestfs: error: send failed, see earlier error messages
><fs> ls /
libguestfs: error: guestfs_ls: call launch() before using this function

Comment 2 Fedora Update System 2009-06-29 19:27:22 UTC
libguestfs-1.0.54-2.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/libguestfs-1.0.54-2.fc11

Comment 3 Fedora Update System 2009-07-02 23:26:09 UTC
libguestfs-1.0.55-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/libguestfs-1.0.55-1.fc11

Comment 4 Fedora Update System 2009-07-11 09:27:07 UTC
libguestfs-1.0.58-2.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/libguestfs-1.0.58-2.fc11

Comment 5 Fedora Update System 2009-07-11 17:12:29 UTC
libguestfs-1.0.54-2.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2009-07-19 10:27:37 UTC
libguestfs-1.0.58-2.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Richard W.M. Jones 2010-03-27 10:34:55 UTC
Long fixed upstream.


Note You need to log in before you can comment on or make changes to this bug.