From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24384 invoked by alias); 12 Jan 2011 22:17:00 -0000 Received: (qmail 24374 invoked by uid 22791); 12 Jan 2011 22:16:59 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_VF X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 Jan 2011 22:16:55 +0000 From: "bruno at clisp dot org" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/12394] thousands grouping bug when rounding requires an extra leading digit X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bruno at clisp dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Component AssignedTo Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 12 Jan 2011 22:17:00 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2011-01/txt/msg00045.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12394 Bruno Haible changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bruno at clisp dot org Component|localedata |libc AssignedTo|libc-locales at sources dot |drepper.fsp at gmail dot |redhat.com |com --- Comment #3 from Bruno Haible 2011-01-12 22:16:47 UTC --- The bug affects not only the %f directive, but also the %g directive, and can lead to a segmentation fault in the latter case. Find attached the test case. How to reproduce: $ gcc -Wall bug12394.c $ ./a.out Segmentation fault (core dumped) $ gdb a.out core (gdb) where #0 0x00007f70364aeaa4 in __printf_fp () from /lib64/libc.so.6 #1 0x00007f70364a9b4d in vfprintf () from /lib64/libc.so.6 #2 0x00007f70364cbee9 in vsprintf () from /lib64/libc.so.6 #3 0x00007f70364b2118 in sprintf () from /lib64/libc.so.6 #4 0x0000000000400819 in main () -- 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.