Bug 729381 - memory corruption handling the acpitable command line option, leads to segfault
Summary: memory corruption handling the acpitable command line option, leads to segfault
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm
Version: 5.7
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Gleb Natapov
QA Contact: Virtualization Bugs
Depends On:
Blocks: Rhel5KvmTier2
TreeView+ depends on / blocked
Reported: 2011-08-09 17:53 UTC by David Mansfield
Modified: 2013-12-09 00:55 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-04-08 15:15:11 UTC
Target Upstream Version:

Attachments (Terms of Use)
patch to fix realloc bug leading to segmentation fault (821 bytes, patch)
2011-08-09 17:53 UTC, David Mansfield
no flags Details | Diff

Description David Mansfield 2011-08-09 17:53:39 UTC
Created attachment 517455 [details]
patch to fix realloc bug leading to segmentation fault

Description of problem:
when using the -acpitable option to qemu-kvm, memory corruption occurs and quite often a segmentation fault.  this is due to mis-use of "realloc".  this has been fixed upstream.

a least impact patch is attached.

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

How reproducible:
seems to depend a bit on the machine, because sometimes realloc will return the original pointer.  on two machines here, it always happens on one, never on the other.

Steps to Reproduce:
1. /usr/libexec/qemu-kvm -acpitable x /dev/null
Actual results:
segmentation fault

Expected results:
pops up "console" window

Additional info:
i have attached the "least impact" fix for the bug.

see also the upstream commit:


Comment 1 Ronen Hod 2011-08-11 12:04:10 UTC
Not closed for RHEL5.8 only since it looks like an easy fix. If any complications arise we might decide to skip it.

Comment 3 RHEL Program Management 2012-04-02 10:53:24 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 4 Ronen Hod 2012-04-08 15:15:11 UTC
David Mansfield,

Thank you for taking the time to enter a bug report with us. We do appreciate the feedback and look to use reports such as this to guide our efforts at improving our products.
We decided to close this bug, since in order to keep RHEL5.9 stable we avoid fixing non-urgent bugs.
If this issue is critical or in any way time sensitive, please raise a ticket through your regular Red Hat support channels to make certain that it gets the proper attention and prioritization to assure a timely resolution. 
For information on how to contact the Red Hat production support team, please see:

Thanks, Ronen.

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