This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]