Bug 159261
Summary: | Sample crash.c doesn't compile on 2.6 kernels | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Seva <seva> | ||||||
Component: | netdump | Assignee: | Dave Anderson <anderson> | ||||||
Status: | CLOSED ERRATA | QA Contact: | |||||||
Severity: | low | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 4.0 | CC: | davej, jmoyer, jturner | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i686 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | RHBA-2006-0038 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2006-03-07 18:23:59 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: | 168429 | ||||||||
Attachments: |
|
Description
Seva
2005-06-01 00:04:11 UTC
Created attachment 115014 [details]
Makefile
2.6 kernel based build system Makefile
Created attachment 115015 [details]
crash.c
crash.c ported to 2.6 kernel build system
Thanks. The sample crash module is pretty much fluff given the far easier manner of force-crashing the kernel by entering "Alt-syrq-c" or "echo c > /proc/sysrq-trigger". *** Bug 120405 has been marked as a duplicate of this bug. *** Perhaps the documentation needs to be updated a bit, I wasn't aware of the sysrq-trigger /proc entry. Agreed... The "c" option for sysrq-trigger seems to be disabled in the default kernel since the addition of the KEXEC patch. This is in 2.6.14-1.1637_FC4. Is there a new recommended method for testing netdump?
> The "c" option for sysrq-trigger seems to be disabled in the default kernel
> since the addition of the KEXEC patch. This is in 2.6.14-1.1637_FC4. Is
> there a new recommended method for testing netdump?
Probably not. As you saw, the kexec patch in FC4 takes away the capability
of killing the system with alt-sysrq-c when a kexec kernel has NOT been loaded,
because crash_kexec() will just quietly return back to the sysrq-c handler.
I sent a patch to our Fedora kernel maintainer proposing a change to
sysrq_handle_crashdump() which will fall-back to our RHEL3/4 alt-sysrq-c
oops-generator, which would subsequently invoke netdump and/or diskdump if
enabled, or if nothing's enabled, still crash the system at will. He indicated
that it won't be available until the FC5 time frame.
The sample crash.c is deprecated. To force a crash, the README documentation has been updated re: the usage of alt-sysrq-c or by doing an "echo c > /proc/sysrq-trigger". Moving forward, we will ensure that the sysrq functionality continues to force a crash. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0038.html |