public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug math/13705] New: Bogus FPE on underflow for exp(double) @ 2012-02-17 21:08 law at redhat dot com 2012-02-18 12:16 ` [Bug math/13705] " aurelien at aurel32 dot net ` (6 more replies) 0 siblings, 7 replies; 8+ messages in thread From: law at redhat dot com @ 2012-02-17 21:08 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=13705 Bug #: 13705 Summary: Bogus FPE on underflow for exp(double) Product: glibc Version: 2.15 Status: NEW Severity: normal Priority: P2 Component: math AssignedTo: aj@suse.de ReportedBy: law@redhat.com Classification: Unclassified Created attachment 6225 --> http://sourceware.org/bugzilla/attachment.cgi?id=6225 testcase With floating point trapping enabled, *except* for "underflow" and "inexact", exp(-1.0e40) will throw a Floating Point Exception. How reproducible: Every time. Steps to Reproduce: 1. Compile attached test programme (g++ test1.cpp) 2. Run program 3. Actual results: Floating point exception. Expected results: The value 0 should be printed. -- 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. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug math/13705] Bogus FPE on underflow for exp(double) 2012-02-17 21:08 [Bug math/13705] New: Bogus FPE on underflow for exp(double) law at redhat dot com @ 2012-02-18 12:16 ` aurelien at aurel32 dot net 2012-02-20 6:34 ` aurelien at aurel32 dot net ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: aurelien at aurel32 dot net @ 2012-02-18 12:16 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=13705 Aurelien Jarno <aurelien at aurel32 dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aurelien at aurel32 dot net AssignedTo|aj at suse dot de |aurelien at aurel32 dot net --- Comment #1 from Aurelien Jarno <aurelien at aurel32 dot net> 2012-02-18 12:15:48 UTC --- This should be fixed by: http://sourceware.org/ml/libc-alpha/2012-02/msg00299.html -- 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. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug math/13705] Bogus FPE on underflow for exp(double) 2012-02-17 21:08 [Bug math/13705] New: Bogus FPE on underflow for exp(double) law at redhat dot com 2012-02-18 12:16 ` [Bug math/13705] " aurelien at aurel32 dot net @ 2012-02-20 6:34 ` aurelien at aurel32 dot net 2012-02-20 22:33 ` rjrw at waitrose dot com ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: aurelien at aurel32 dot net @ 2012-02-20 6:34 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=13705 --- Comment #2 from Aurelien Jarno <aurelien at aurel32 dot net> 2012-02-20 06:34:17 UTC --- This is a different bug than the one fixed by the link I gave above. -- 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. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug math/13705] Bogus FPE on underflow for exp(double) 2012-02-17 21:08 [Bug math/13705] New: Bogus FPE on underflow for exp(double) law at redhat dot com 2012-02-18 12:16 ` [Bug math/13705] " aurelien at aurel32 dot net 2012-02-20 6:34 ` aurelien at aurel32 dot net @ 2012-02-20 22:33 ` rjrw at waitrose dot com 2012-02-21 13:53 ` aurelien at aurel32 dot net ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: rjrw at waitrose dot com @ 2012-02-20 22:33 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=13705 rjrw at waitrose dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rjrw at waitrose dot com --- Comment #3 from rjrw at waitrose dot com 2012-02-20 22:32:43 UTC --- At lines 35 and 40 of w_exp.c, libm uses the floating point variant "kernel_standard_f" rather than the double variant "kernel_standard". The implementation of kernel_standard_f in k_standard.c just maps double to float (for arguments and return value). If kernel_standard_f is changed to kernel_standard in both places, the test program runs through without problems. -- 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. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug math/13705] Bogus FPE on underflow for exp(double) 2012-02-17 21:08 [Bug math/13705] New: Bogus FPE on underflow for exp(double) law at redhat dot com ` (2 preceding siblings ...) 2012-02-20 22:33 ` rjrw at waitrose dot com @ 2012-02-21 13:53 ` aurelien at aurel32 dot net 2012-03-26 11:03 ` aj at suse dot de ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: aurelien at aurel32 dot net @ 2012-02-21 13:53 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=13705 Aurelien Jarno <aurelien at aurel32 dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #4 from Aurelien Jarno <aurelien at aurel32 dot net> 2012-02-21 13:52:31 UTC --- Patches posted on: http://sourceware.org/ml/libc-alpha/2012-02/msg00446.html -- 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. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug math/13705] Bogus FPE on underflow for exp(double) 2012-02-17 21:08 [Bug math/13705] New: Bogus FPE on underflow for exp(double) law at redhat dot com ` (3 preceding siblings ...) 2012-02-21 13:53 ` aurelien at aurel32 dot net @ 2012-03-26 11:03 ` aj at suse dot de 2012-04-08 22:50 ` jsm28 at gcc dot gnu.org 2014-06-26 15:21 ` fweimer at redhat dot com 6 siblings, 0 replies; 8+ messages in thread From: aj at suse dot de @ 2012-03-26 11:03 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=13705 Andreas Jaeger <aj at suse dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #6225|text/x-c++src |text/plain mime type| | -- 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. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug math/13705] Bogus FPE on underflow for exp(double) 2012-02-17 21:08 [Bug math/13705] New: Bogus FPE on underflow for exp(double) law at redhat dot com ` (4 preceding siblings ...) 2012-03-26 11:03 ` aj at suse dot de @ 2012-04-08 22:50 ` jsm28 at gcc dot gnu.org 2014-06-26 15:21 ` fweimer at redhat dot com 6 siblings, 0 replies; 8+ messages in thread From: jsm28 at gcc dot gnu.org @ 2012-04-08 22:50 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=13705 Joseph Myers <jsm28 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-04-08 22:50:24 UTC --- I have committed this patch as: commit f77f12320635155da728a3c1adb75ff9914cf686 Author: Aurelien Jarno <aurelien@aurel32.net> Date: Sun Apr 8 22:45:13 2012 +0000 Use __kernel_standard instead of __kernel_standard_f in exp wrapper (bug 13705). and the obvious testcase patch for it as: commit d2de7579f257386ba5c28dfca94fa8aef143b4e0 Author: Joseph Myers <joseph@codesourcery.com> Date: Sun Apr 8 22:46:49 2012 +0000 Do not allow overflow exception on exp underflow test (bug 13705). -- 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. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug math/13705] Bogus FPE on underflow for exp(double) 2012-02-17 21:08 [Bug math/13705] New: Bogus FPE on underflow for exp(double) law at redhat dot com ` (5 preceding siblings ...) 2012-04-08 22:50 ` jsm28 at gcc dot gnu.org @ 2014-06-26 15:21 ` fweimer at redhat dot com 6 siblings, 0 replies; 8+ messages in thread From: fweimer at redhat dot com @ 2014-06-26 15:21 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=13705 Florian Weimer <fweimer at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |security- -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-06-26 15:21 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-02-17 21:08 [Bug math/13705] New: Bogus FPE on underflow for exp(double) law at redhat dot com 2012-02-18 12:16 ` [Bug math/13705] " aurelien at aurel32 dot net 2012-02-20 6:34 ` aurelien at aurel32 dot net 2012-02-20 22:33 ` rjrw at waitrose dot com 2012-02-21 13:53 ` aurelien at aurel32 dot net 2012-03-26 11:03 ` aj at suse dot de 2012-04-08 22:50 ` jsm28 at gcc dot gnu.org 2014-06-26 15:21 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).