fesetround(FE_UPWARD) followed by pow() crashes

Bug #515065 reported by Jan Wielemaker on 2010-01-31
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)

Bug Description

The attached program very simple program crashes on a segmentation fault.
The fragment comes from a much larger program, but it proves easily to

Environment: 64-bit ubuntu 9.10 on AMD Athlon(tm) 64 X2 Dual Core Processor 5400+
glibc 2.10.1-0ubuntu16 (karmic-updates) gcc 4.4.1.

Crash is regardless of optimization (tried -O2 and -g) Compile using

$ gcc -o t t.c -lm
$ ./t

Jan Wielemaker (jan-swi-prolog) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers