Bug 692745 - RFE: Enhance the amount of debug available from libvirt in case of crash
Summary: RFE: Enhance the amount of debug available from libvirt in case of crash
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.2
Hardware: All
OS: All
unspecified
medium
Target Milestone: rc
: ---
Assignee: Daniel Veillard
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 693512
TreeView+ depends on / blocked
 
Reported: 2011-04-01 02:31 UTC by Daniel Veillard
Modified: 2011-12-06 11:03 UTC (History)
5 users (show)

Fixed In Version: libvirt-0.9.1-1.el6
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 11:03:56 UTC
Target Upstream Version:


Attachments (Terms of Use)
Comment (64.85 KB, text/plain)
2011-05-24 07:36 UTC, zhanghaiyan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1513 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2011-12-06 01:23:30 UTC

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


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