Skip to contentSkip to conversation

Triggering Machine Check Exceptions on x86

DISCUSSION Kalyan Rajasekharuni 2 participants 2 messages Mar 23, 2006

lore
Share & tools
lore
#0 lore raw

I would like to trigger a Machine Check Exception soley by a 'software mechanism' on my x86 box. The idea is to test my machine check exception handler thoroughly. I want a reliable way which will generate this exception every time when I run the software code snippet.

#1 lore raw
Quoted 5 lines · Kalyan Rajasekharuni

I would like to trigger a Machine Check Exception soley by a 'software mechanism' on my x86 box. The idea is to test my machine check exception handler thoroughly. I want a reliable way which will generate this exception every time when I run the software code snippet.

You will need to ask the CPU vendor I think. You can trigger MCEs on some x86s by exploiting obscure hardware flaws in supervisor mode (notably with mismatched memory cache types for the same page) but I don't know of any way to make that predictable.

Alan