fesetround(FE_UPWARD) followed by pow() crashes
Bug #515065 reported by
Jan Wielemaker
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
To post a comment you must log in.