Bug 516994 - Segfault during guestfish upload
Summary: Segfault during guestfish upload
Keywords:
Status: CLOSED INSUFFICIENT_DATA
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-08-12 09:28 UTC by Matthew Booth
Modified: 2010-04-19 20:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-19 20:28:56 UTC
Embargoed:


Attachments (Terms of Use)
x86_64 bzip2 compressed core dump of checkout as described above (74.35 KB, application/octet-stream)
2009-08-12 09:28 UTC, Matthew Booth
no flags Details
The patch applied against 0aaf061c2f73f8852c59afaa9706f42bc578caae when core was produced (954 bytes, application/octet-stream)
2009-08-12 09:29 UTC, Matthew Booth
no flags Details
Some gdb output from attached core (1.57 KB, text/plain)
2009-08-12 09:30 UTC, Matthew Booth
no flags Details

Description Matthew Booth 2009-08-12 09:28:06 UTC
Created attachment 357133 [details]
x86_64 bzip2 compressed core dump of checkout as described above

Description of problem:
I'm getting an occasional segfault doing an upload. I've captured a core (attached) which shows it dying in an apparently harmless malloc. This presumably points to heap corruption somewhere.

Version-Release number of selected component (if applicable):
0aaf061c2f73f8852c59afaa9706f42bc578caae with the attached tiny patch applied, compiled with CFLAGS=-g.

How reproducible:
Highly variable. Was about 50%, now much less. I'm guessing it's a race condition affected by disk caches.

Steps to Reproduce:
1. LIBGUESTFS_DEBUG=1 ./fish/guestfish -a /media/passport/RHEL53PV64-20090213.img.qcow2 -m /dev/VolGroup00/LogVol00:/ -m /dev/sda1:/boot
2. upload ~/Download/strace-4.5.18-2.el5_3.3.x86_64.rpm /tmp/strace-4.5.18-2.el5_3.3.x86_64.rpm

Comment 1 Matthew Booth 2009-08-12 09:29:37 UTC
Created attachment 357134 [details]
The patch applied against 0aaf061c2f73f8852c59afaa9706f42bc578caae when core was produced

Comment 2 Matthew Booth 2009-08-12 09:30:28 UTC
Created attachment 357135 [details]
Some gdb output from attached core

Comment 3 Richard W.M. Jones 2009-09-22 14:24:28 UTC
Setting product to Virtualization Tools.

This needs to be retested against a more recent libguestfs
since that part of the code has been substantially
modified.

Comment 4 Richard W.M. Jones 2010-04-19 20:28:56 UTC
Unknown, but unlikely this still affects the latest versions of libguestfs.


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