Re: Undefined Instruction

From: Jiri Kosina
Date: Wed Nov 02 2011 - 17:07:53 EST


On Wed, 2 Nov 2011, Xin Tong wrote:

> If an application contains an undefined instruction to the processor (
> x86 in particular ) how does the operating system handle it. does the
> operating system just kill the process, or it will throw signals,
> trying to recover from it ?

CPU will trap and kernel will send SIGILL to the process.

--
Jiri Kosina
SUSE Labs

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/