fesetround(FE_UPWARD) followed by pow() crashes

Bug #515065 reported by Jan Wielemaker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
New
Undecided
Unassigned

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
reproduce.

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

Tags: fesetround pow
Revision history for this message
Jan Wielemaker (jan-swi-prolog) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.