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 692745

Summary: RFE: Enhance the amount of debug available from libvirt in case of crash
Product: Red Hat Enterprise Linux 6 Reporter: Daniel Veillard <veillard>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2CC: eblake, jdenemar, mjenner, mzhan, yoyzhang
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: libvirt-0.9.1-1.el6 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 11:03:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 693512    
Attachments:
Description Flags
Comment none

Description Daniel Veillard 2011-04-01 02:31:07 UTC
Description of problem: Enhance the amount of debug available from libvirt
in case of crash by keeping a ring buffer of internal debug logs and dumping
it when fatal signal or user requests it

Needed to debug complex cases of daemon hang or crash

Comment 1 Daniel Veillard 2011-04-01 02:34:48 UTC
Already commited upstream, it will be in 0.9.0,

http://libvirt.org/git/?p=libvirt.git;a=commit;h=a9f35c4863623fa07563f8ab3a25a20ea9f79fba
and related other commits

Daniel

Comment 2 Jiri Denemark 2011-05-19 09:12:04 UTC
To test this run libvirtd without enabling debug logs (e.g., in default configuration), play a bit with virsh, and send SIGSEGV to libvirtd. Now you should see "Caught Segmentation violation dumping internal log buffer:" message appended to /var/log/libvirt/libvirtd.log followed by a bunch of debugging messages enclosed between "====== start of log =====" and "====== end of log =====" lines.

Comment 3 zhanghaiyan 2011-05-24 07:36:08 UTC
Created attachment 915258 [details]
Comment

(This comment was longer than 65,535 characters and has been moved to an attachment by Red Hat Bugzilla).

Comment 5 Min Zhan 2011-07-18 07:28:25 UTC
Move to VERIFIED according to Comment 3

Comment 6 errata-xmlrpc 2011-12-06 11:03:56 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.

http://rhn.redhat.com/errata/RHBA-2011-1513.html