Red Hat Bugzilla – Bug 607949
No core file was generated when RHEL 6 PV guest crashed
Last modified: 2010-11-09 07:41:59 EST
Description of problem:
For RHEL6 PV guest, no core file was generated automatically when the guest crashed, even core-dumps had been enabled in xend-config.sxp.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. enable core-dumps and restart xend
2. create a RHEL 6 PV guest
3. force the guest to crash within the guest via:
echo c > /proc/sysrq-trigger
The guest does crash but no core file is generated.
core file should be generated automatically when the guest crashes.
screen dump of the guest is in the attachment.
Created attachment 426812 [details]
screen dump of the guest when it crashes
Same problem occur for RHEL6 HVM guest.
With same version xen package,
and kernel-xen version is: 2.6.18-194.6.1.el5
To test if the host's userspace can create core files correctly, then the dump should be initiated with 'xm dump-core' or 'virsh dump'. This appears to work correctly (although crash has a problem reading PV guest dumps: bug 608779).
When initiating a crash with 'echo c > /proc/sysrq-trigger' this is testing the "kexec" path in the guest kernel. This is known not to work, see bug 523132.
I'll dup this bug against the kexec bug. If this was really a test of the host userspace, then it should be closed as NOTABUG due to using the wrong mechanism.
*** This bug has been marked as a duplicate of bug 523132 ***