Floating point exceptions with -pthread

Marc Olzheim marcolz at stack.nl
Tue May 3 06:23:16 PDT 2005

On Tue, May 03, 2005 at 01:08:18PM +0200, Marc Olzheim wrote:
> Hi.
> I was wondering whether it was safe to use floating point calculations /
> libm functions with 5.4-STABLE's pthread library on HT+SMP. I keep
> getting floating point exceptions on places where they should not
> happen... :-(

I've narrowed it down to the following program. The th version crashes
within seconds, while the non th version has no problems.
amd64 doesn't have this problem either; it just goes wrong on
i386/SMP (athlon MP) seems to have no problems either.

Am I doing something wrong here ?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20050503/a779dde4/attachment.bin

More information about the freebsd-threads mailing list