[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
{f,}printf-posix test failure
From: |
Ian Beckwith |
Subject: |
{f,}printf-posix test failure |
Date: |
Thu, 22 Apr 2010 22:39:03 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi,
printf-posix and fprintf-posix fail the test suite on debian stable and
unstable, i386 and ia64.
The problem seems to be the same, test-printf-posix2 and
test-fprintf-posix2 fail at the same place. Looking at
test-fprintf-posix2:
gltests/test-fprintf-posix2.sh runs "test-fprintf-posix2 1"
which fails:
(gdb) n
83 ret = fprintf (stdout, "%.5000000f", 1.0);
(gdb) n
84 return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
(gdb) p ret
$1 = -1
(gdb) p errno
$2 = 22
(22 == EINVAL)
The problem seems to be in vasnprintf.c.
vasnprintf.c:5023 calls SNPRINTF_BUF(arg);
The expansion of SNPRINTF_BUF includes at vasnprintf.c:4919:
retcount = SNPRINTF ((TCHAR_T *) (result + length), \
maxlen, buf, \
arg, &count); \
which, if I'm understanding it right (USE_SNPRINTF is defined), calls
the system's snprintf(), which returns -1.
Ian.
--
Ian Beckwith - address@hidden - http://erislabs.net/ianb/
GPG fingerprint: AF6C C0F1 1E74 424B BCD5 4814 40EC C154 A8BA C1EA
Listening to: Vampire Weekend - Contra - Giving Up The Gun
signature.asc
Description: Digital signature
- {f,}printf-posix test failure,
Ian Beckwith <=