[Bug 429113] Re: libm pow() function does not report floating point underflow exception

Jonenst jon.harper87 at gmail.com
Wed Mar 30 17:08:50 UTC 2016


Works on ubuntu 14.04 x86_64 :

jon at zog:/tmp$ uname -a
Linux zog 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

jon at zog:/tmp$ lsb_release -a
LSB Version:	[...snip...]
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.4 LTS
Release:	14.04
Codename:	trusty

jon at zog:/tmp$ apt-cache policy libc6
libc6:
  Installed: 2.19-0ubuntu6.7

jon at zog:/tmp$ gcc fp.c -O0 -fno-builtin-pow -lm
jon at zog:/tmp$ ./a.out 
0.000000
exceptions:
	inexact
	underflow

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/429113

Title:
  libm pow() function does not report floating point underflow exception

Status in glibc package in Ubuntu:
  New

Bug description:
  Ubuntu 8.10 for x86-64
  glibc 2.8~20080505-0ubuntu9

  The pow() function in the standard C library does not report a
  floating point underflow exception like it is supposed to.

  Compile the attached program with '-O0 -fno-bultin-pow -lm'. Then run
  it.

  Expected output:

  0.000000
  exceptions:
  	inexact
  	underflow

  Actual output:

  0.000000
  exceptions:
  	inexact

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/429113/+subscriptions



More information about the foundations-bugs mailing list