[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#435723: marked as done (printf with %g causes a segmentation violation.)



Your message dated Sun, 05 Aug 2007 00:45:18 +0200
with message-id <46B5017E.2050808@debian.org>
and subject line Bug#435723: printf with %g causes a segmentation violation.
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: glibc
Version: 2.5-3

Debian version: etch
Platform: x86_64
GCC version: 4.1.1-15.

The following program causes a segmentation violation:

$ cat > l.c
#include <stdio.h>
int main()
{
  double d = 9.9999999999999991e-05;
  printf("%f\n", d);
  printf("%e\n", d);
  printf("%g\n", d);
}
<CTRL-D>

$ gcc l.c
$ ./a.out
0.000100
1.000000e-04
Segmentation fault
$

That was unexpected :-).

- L.



--- End Message ---
--- Begin Message ---
Version: 2.6-2

Leon Bottou a écrit :
> On Friday 03 August 2007 08:34:15 you wrote:
>> On Thu, Aug 02, 2007 at 04:44:06PM -0400, Leon Bottou wrote:
>>> Version: 2.5-3
>>>
>>> $ gcc l.c
>>> $ ./a.out
>>> 0.000100
>>> 1.000000e-04
>>> Segmentation fault
>>> $
>> I can't reproduce this with 2.6-2.
> Good news.
> 

This problem is not present in Etch, Lenny or Sid. Closing the bug.


-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

--- End Message ---

Reply to: