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.
Created attachment 558294[details]
crash debug log
Description of problem:
Daemon crashes when executing aug-defnode.
Version-Release number of selected component (if applicable):
libguestfs-1.16.1-1.el6
How reproducible:
100%
Steps to Reproduce:
$ guestfish -a rhel.img <<EOF
run
mount /dev/sda1 /
aug-init / 0
aug-defnode node /file/etc/passwd/root 0
EOF
Actual results:
Daemon crashes.
Expected results:
No crash.
Comment 2Richard W.M. Jones
2012-01-30 10:30:35 UTC
Simple reproducer:
guestfish --ro -i -a linux.img -v <<EOF
aug-init / 0
aug-defnode node /file/etc/passwd/root 0
EOF
With debugging enabled (-v) it seems to be a segfault
in the daemon:
><fs> aug-defnode node /file/etc/passwd/root 0
libguestfs: send_to_daemon: 88 bytes: 00 00 00 54 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 12 | 00 00 00 00 | ...
guestfsd: main_loop: proc 16 (aug_init) took 3.76 seconds
guestfsd: main_loop: new request, len 0x54
[ 12.422138] guestfsd[107]: segfault at 100000019 ip 0000003a2467cf41 sp 00007fff45462900 error 4 in libc-2.14.90.so[3a24600000+1ab000]
/init: line 147: 107 Segmentation fault $vg guestfsd
Rebooting.
I enabled valgrind in the daemon and it says:
==106== Invalid free() / delete / delete[]
==106== at 0x505962E: free (vg_replace_malloc.c:366)
==106== by 0x41AA66: aug_defnode_stub (stubs.c:552)
==106== by 0x42C72E: dispatch_incoming_message (stubs.c:9920)
==106== by 0x417ED3: main_loop (proto.c:193)
==106== by 0x403DC6: main (guestfsd.c:286)
==106== Address 0x651f40 is 0 bytes inside data symbol "r.14855"
Comment 3Richard W.M. Jones
2012-01-30 10:49:16 UTC
Created attachment 558756[details]
verify log (libguestfs-1.16.2-1)
Verified with libguestfs-1.16.2-1.el6. Log is attached.
Comment 13Richard W.M. Jones
2012-04-26 13:35:45 UTC
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
No Documentation needed.
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.
http://rhn.redhat.com/errata/RHSA-2012-0774.html
Created attachment 558294 [details] crash debug log Description of problem: Daemon crashes when executing aug-defnode. Version-Release number of selected component (if applicable): libguestfs-1.16.1-1.el6 How reproducible: 100% Steps to Reproduce: $ guestfish -a rhel.img <<EOF run mount /dev/sda1 / aug-init / 0 aug-defnode node /file/etc/passwd/root 0 EOF Actual results: Daemon crashes. Expected results: No crash.