Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1145056

Summary: hivexml generate "Argument list too long" on some Windows Registry
Product: Red Hat Enterprise Linux 7 Reporter: Wei Shi <wshi>
Component: hivexAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: leiwang, lkong, yuliu
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hivex-1.3.10-5.3.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 13:42:12 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 Wei Shi 2014-09-22 09:53:12 UTC
Description of problem:
hivex generate "Argument list too long" on some Windows Registry(XP 32bit, 2003 32bit, 2003 64bit)
It works well on the same hive file with hivex-1.3.8-4.el7.x86_64

Version-Release number of selected component (if applicable):
hivex-1.3.10-5.2.el7.x86_64


How reproducible:
100%


Steps to Reproduce:
1. extract hive file from Windows image
2. dumpxml with hivexml
# hivexml WinXP-32-hvm.software > /dev/null
WinXP-32-hvm.software: Argument list too long


Actual results:
# hivexml WinXP-32-hvm.software > /dev/null
WinXP-32-hvm.software: Argument list too long


Expected results:
No error outputs


Additional info:

Comment 3 Richard W.M. Jones 2014-09-22 14:13:07 UTC
Upstream fix:

https://github.com/libguestfs/hivex/commit/9763f96a1374486c7d00ea5c04b8048fe69e63f3
https://github.com/libguestfs/hivex/commit/914d9b9a91babf0227989bc7ea00cf5e41ed7da4

The first patch is the required fix.  The second one
cleans up the hokey error handling in hivexml a bit.

Comment 4 Richard W.M. Jones 2014-09-22 14:13:44 UTC
I need PM-ack to commit this.

Comment 6 Wei Shi 2014-11-10 06:57:40 UTC
Verified:
 hivex-1.3.10-5.3.el7.x86_64

No error output from
# hivexml software.xp.32 > /dev/null

Comment 7 Richard W.M. Jones 2014-11-20 21:45:29 UTC
A similar case was reported on the mailing list today:

https://www.redhat.com/archives/libguestfs/2014-November/msg00133.html

I have fixed it upstream and will include the fix in hivex
in RHEL 7.  The fix seems like it should be completely safe:

https://github.com/libguestfs/hivex/commit/4b3c3cd2b3d8d34601979feeb1390fddd442ab04

It's hard to reproduce unless you have the precise Windows XP
version from the reporter which used a French copy of Citrix.

Comment 9 errata-xmlrpc 2015-03-05 13:42:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0301.html