Messages in this thread | | | Date | Sat, 12 Jun 2004 14:26:34 +0200 (CEST) | Subject | Re: timer + fpu stuff locks my console race | From | stian@nixia ... |
| |
So far I have found out this:
if you ptrace is with for instace the strace program, it runs perfectly. No signs at all of the fpu exception, and every thing runs happy
it also happens if you for instance if you trigger the exception inside a SIGSEGV handler
But I'm not able to trigger other FPU errors. For instance float a=1.0; float b=0.0; float c; c=a/b; does not generate a signal, but gives (inf) (isn't this configuration option on the fpu?). So my question is then, does the FPU-exception handler work at all since it appears to be rarely used?
A very _VERY_ nasty quick-fix (for those who are scared) is to exit the process if we want to send a signal SIGFPE and is it already in the queue and perhaps do a printk() about user trying to exploit known kernel-bug. Works atleast for me currently at my 2.4.26-rc1 box.
Stian Skjelstad - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |