bug-gnulib
[Top][All Lists]
Advanced

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

Re: ftell after fseeko on HP-UX


From: Eric Blake
Subject: Re: ftell after fseeko on HP-UX
Date: Mon, 14 Apr 2008 06:26:03 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 4/13/2008 1:44 PM:
| Hi Eric,
|
| On HP-UX 11, I got these test failures:
|
| test-ftell.c:85: assertion failed
| ./test-ftell.sh[3]: 9644 Abort
| FAIL: test-ftell.sh
|
| In fact, when reading from a regular file, after the fseek, the file
position
| is 120 instead of 3. Since none of ftell, fseek, ungetc are overridden
by glibc,
| this looks like a HP-UX bug to me.

It looks like the bug is limited to an incorrect position after reading
from the ungetc buffer, which in turn happens after the ungetc of
arbitrary data, so this probably doesn't impact much software (as most
programs don't unget arbitrary data).

|
| I'm categorizing it as "known bug", and disabling this part of the tests.

Wouldn't it be better to update the m4 test to detect this bug, and
override fseek on HP-UX to do as POSIX requires?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgDTVsACgkQ84KuGfSFAYDzkgCfSrtesDiKcAA36L/DX2bUh4y0
9d0AnjJbw6iklDlY0tEECxznEsG5Aubo
=dDiT
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]