[Bug math/15194] New: pow leads to segmentation fault when called after fesetround(FE_UPWARD);

martinez at nsup dot org sourceware-bugzilla@sourceware.org
Mon Feb 25 16:49:00 GMT 2013


http://sourceware.org/bugzilla/show_bug.cgi?id=15194

             Bug #: 15194
           Summary: pow leads to segmentation fault when called after
                    fesetround(FE_UPWARD);
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: unassigned@sourceware.org
        ReportedBy: martinez@nsup.org
    Classification: Unclassified


The following code leads to segmentation fault with the current git version of
GNU libc (and that is the case at least from 2.15).

#include <math.h>
#include <fenv.h>

int
main()
{
  double x = 2.8532681940591602;
  fesetround(FE_UPWARD);
  pow(x, 4);
}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list