2 ms·
> If you run something with instructions your processor doesn't have it will crash. I would be very surprised if the processor itself crashed. I haven't encoun
by majewsky 6y ago
> If you run something with instructions your processor doesn't have it will crash.
I would be very surprised if the processor itself crashed. I haven't encountered it in actuality so far, but as far as I'm aware, illegal instructions raise an interrupt that the OS can catch. On Unix, this should result in the corresponding user space process receiving SIGILL.
It appears that SIGILL is actually preemptible. Could this be used as a poor man's CPU feature detection mechanism?
- lozenge 6y agoI meant the process crash not the CPU, you are correct. Also, my gcc knowledge is outdated. People have mapped out the millions of "undocumented instructions" by trapping SIGILL.