public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/4362] New: printf segfaults on some fp values
@ 2007-04-14 14:04 aurelien at aurel32 dot net
  2007-04-14 15:01 ` [Bug libc/4362] " jakub at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: aurelien at aurel32 dot net @ 2007-04-14 14:04 UTC (permalink / raw)
  To: glibc-bugs

The following programs segfaults on the last printf(). Using the commented 
variable does not trigger the problem.

This problem happens with glibc CVS and glibc 2.5, but not on glibc 2.3.6. This 
bug has been tested so far on x86, x86_64 and sparc, but I suspect all 
platforms are affected.

#include <stdio.h>
int main() {
        //double a=0.00999624628294258;
        double a=9.99624628294258e-05;
        printf("e: %e\n", a);
        printf("f: %f\n", a);
        printf("g: %g\n", a);
        printf("e: %.3e\n", a);
        printf("f: %.3f\n", a);
        printf("g: %.3g\n", a);
        return 0;
}

-- 
           Summary: printf segfaults on some fp values
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: critical
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: aurelien at aurel32 dot net
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=4362

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/4362] printf segfaults on some fp values
  2007-04-14 14:04 [Bug libc/4362] New: printf segfaults on some fp values aurelien at aurel32 dot net
@ 2007-04-14 15:01 ` jakub at redhat dot com
  2007-04-14 17:49 ` aurelien at aurel32 dot net
  2007-04-23  9:43 ` jakub at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at redhat dot com @ 2007-04-14 15:01 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2007-04-14 16:01 -------
http://sources.redhat.com/ml/libc-hacker/2007-04/msg00005.html


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|drepper at redhat dot com   |jakub at redhat dot com
             Status|NEW                         |ASSIGNED


http://sourceware.org/bugzilla/show_bug.cgi?id=4362

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/4362] printf segfaults on some fp values
  2007-04-14 14:04 [Bug libc/4362] New: printf segfaults on some fp values aurelien at aurel32 dot net
  2007-04-14 15:01 ` [Bug libc/4362] " jakub at redhat dot com
@ 2007-04-14 17:49 ` aurelien at aurel32 dot net
  2007-04-23  9:43 ` jakub at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: aurelien at aurel32 dot net @ 2007-04-14 17:49 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aurelien at aurel32 dot net  2007-04-14 18:49 -------
Thanks for the patch, it fixes the problem.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4362

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/4362] printf segfaults on some fp values
  2007-04-14 14:04 [Bug libc/4362] New: printf segfaults on some fp values aurelien at aurel32 dot net
  2007-04-14 15:01 ` [Bug libc/4362] " jakub at redhat dot com
  2007-04-14 17:49 ` aurelien at aurel32 dot net
@ 2007-04-23  9:43 ` jakub at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at redhat dot com @ 2007-04-23  9:43 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2007-04-23 10:43 -------
Fixed in CVS.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=4362

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-04-23  9:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-14 14:04 [Bug libc/4362] New: printf segfaults on some fp values aurelien at aurel32 dot net
2007-04-14 15:01 ` [Bug libc/4362] " jakub at redhat dot com
2007-04-14 17:49 ` aurelien at aurel32 dot net
2007-04-23  9:43 ` jakub 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).