bug-glibc
[Top][All Lists]
Advanced

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

Problems with libio on ia64


From: Chris Ahna
Subject: Problems with libio on ia64
Date: Sat, 12 Jan 2002 04:56:40 -0800
User-agent: Mutt/1.3.19i

Hi,

I've been having pretty severe problems using libio from the CVS trunk
since

  http://sources.redhat.com/ml/glibc-cvs/2002-q1/msg00036.html

and subsequent patches were applied to that area.  Simple test cases
like

        int main(int argc, char **argv)
        {
                FILE *f;
                char buf[1024];

                f = fopen ("file", "r");
                read (fileno (f), buf, 1024);
                printf ("The file contains %s.\n", buf);

                fclose(f);

                return 0;
        }

work with a 020106 snapshot and fail with one taken on 020107.  I have
noticed that this testcase will start working if a

                lseek (fileno (f), 0, SEEK_SET);

line is added right after the call to fopen(3).

I'm seeing these problems on an ia64 Linux box with kernel version 2.4.16
and the latest CVS snapshots of both gcc and binutils.  Please cc: me on
any responses since I'm not subscribed to this list.  Thanks,

Chris



reply via email to

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