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

Bug#32348: marked as done (va_arg trashes (double)0)



Your message dated Sun, 24 Jan 1999 17:33:22 -0500
with message-id <19990124173322.A3782@rdm.legislate.com>
and subject line oops
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'm
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Ian Jackson
(administrator, Debian bugs database)

Received: (at submit) by bugs.debian.org; 24 Jan 1999 21:25:14 +0000
Received: (qmail 8707 invoked from network); 24 Jan 1999 21:25:13 -0000
Received: from rdm.legislate.com (198.80.98.13)
  by master.debian.org with SMTP; 24 Jan 1999 21:25:13 -0000
Received: (qmail 2741 invoked by uid 1000); 24 Jan 1999 21:25:13 -0000
Date: Sun, 24 Jan 1999 16:25:12 -0500
From: Raul Miller <rdm@test.legislate.com>
To: submit@bugs.debian.org
Subject: va_arg trashes (double)0
Message-ID: <[🔎] 19990124162512.Y3782@rdm.legislate.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.95i

Package: libc6
Version: 2.0.7v-1

va_arg turns 0 into 4.85442e-270 [see session below].

[Note that casting 0 to (double)0 doesn't work around the problem.]

-- 
Raul


bash-2.01$ cat >tes.c
#include <stdio.h>
#include <stdarg.h>
v(long ignore, ...) {
        va_list l;
        va_start(l, ignore);
        printf("%g\n", va_arg(l, double));
}
main(){
        v(0);
}
bash-2.01$ make tes&&./tes
cc     tes.c   -o tes
4.85442e-270
bash-2.01$ ldd tes
        libc.so.6 => /lib/libc.so.6 (0x40014000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
bash-2.01$ dpkg -l libc6
Desired=Unknown/Install/Remove/Purge
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name            Version        Description
+++-===============-==============-============================================
ii  libc6           2.0.7v-1       The GNU C library version 2 (run-time files)
bash-2.01$


Reply to: