Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to simulate or trigger a Machine Check Exception?

I've setup the mcelog tool on my Linux server, and I'd like to verify that it's working properly but I'm not sure how to test it.

Does anyone know of any ways to generate or trigger an exception event so I confirm that the hardware errors are logged correctly.

like image 800
Lowell Avatar asked Nov 03 '25 07:11

Lowell


1 Answers

mcelog includes a test suite with a tool called mce-inject, designed to do exactly this. The developer has a copy of the source on github. It seems to require Linux 2.6.31 or better.

like image 62
Charles Avatar answered Nov 05 '25 00:11

Charles



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!