Bug #1740

Linux emulation: -ffast-math causes floating point exception

Added by Johannes.Hofmann almost 5 years ago. Updated about 1 month ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Kernel
Target version:4.2.x

Description

Some Linux binaries compiled with -ffast-math crash with floating
point exception. There also is a warning in dmesg:

FXRSTR: illegal FP MXCSR 00009fc0 didinit = 0

This is a bit unfortunate as for some reason the procps package
(pkill, pgrep, uptime, etc) is compiled with the -ffast-math switch
and the utilities crash.

The following mini-program shows the crash when compiled with
-ffast-math (as Linux binary):

#include <stdio.h>

int main(int argc, char **argv) {
double d;

scanf("%lf", &d);
printf("%f\n", d);
}

History

#1 Updated by tuxillo about 1 month ago

  • Description updated (diff)
  • Category set to Kernel
  • Status changed from New to Closed
  • Assignee deleted (0)
  • Target version set to 4.2.x

Hi,

Only i386 has linux emulation and i386 is no longer supported since 3.8 so closing this one.

Cheers,
Antonio Huete

Also available in: Atom PDF