How To Cause An Oops

Adam Stokes adam.stokes at canonical.com
Wed Jan 18 18:34:30 UTC 2012


On 01/18/2012 12:46 PM, Joseph Salisbury wrote:
> On 01/18/2012 09:21 AM, Herton Ronaldo Krzesinski wrote:
>> On Wed, Jan 18, 2012 at 02:10:03PM +0000, Andy Whitcroft wrote:
>>> On Tue, Jan 17, 2012 at 12:23:17PM -0500, Joseph Salisbury wrote:
>>>> Hello,
>>>>
>>>> Is there a way to generate or simulate an oops on purpose?  This
>>>> would be helpful to perform testing while the kerneloops.org site is
>>>> down.
>>>
>>> I believe there is a sysrq code for oopsing, which you can do either
>>> from the keyboard or /proc/something/something.
>>
>> Yes, "echo c>  /proc/sysrq-trigger" should do it
>>
>>>
>>> -apw
>>>
>>> -- 
>>> kernel-team mailing list
>>> kernel-team at lists.ubuntu.com
>>> https://lists.ubuntu.com/mailman/listinfo/kernel-team
>>>
>>
>
> It appears echoing c into /proc/sysrq-trigger causes a crash.  Is 
> there a way to trigger just an oops?
>
This guy made a simple module to panic a system

http://www.dufault.info/blog/forcibly-triggering-a-kernel-panic-on-linux/




More information about the kernel-team mailing list