[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] Re: tla on aix
From: |
tow21 |
Subject: |
Re: [Gnu-arch-users] Re: tla on aix |
Date: |
Tue, 10 Feb 2004 21:51:07 +0000 |
User-agent: |
Mutt/1.5.5.1+cvs20040105i |
address@hidden: [Tue, Feb 10, 2004 at 08:49:39PM +0000]:
> As promised, some results from the debugger. The hang seems to occur
> when trying to format and print the record of which "symlinks point at
> nonexistent files". The actual line the execution of which seems to
> cause the hang is vu-sys.c:635. Here is the stack trace immediately
> before the hang.
Bizarrely, the problem appears to be in write()ing out a zero-length
buffer. The following program fails in precisely the same fashion.
#include <stdio.h>
int main(void)
{
ssize_t rv;
char buf[4]="hih";
rv = write(2, buf, 0);
printf("rv %i\n", rv);
return 1;
}
If the length is any non-positive number, this program runs happily; for
length=zero, no output is produced, and it hangs.
Is this some weird corner of the C standard, or is AIX being
pathologically odd?
Toby
--
Dr. Toby White, Dept. of Earth Sciences, Downing Street, Cambridge CB2 3EQ. UK
Email: <address@hidden>
- [Gnu-arch-users] Re: tla on aix, tow21, 2004/02/09
- Re: [Gnu-arch-users] Re: tla on aix, Tom Lord, 2004/02/09
- Re: [Gnu-arch-users] Re: tla on aix, tow21, 2004/02/09
- Re: [Gnu-arch-users] Re: tla on aix, tow21, 2004/02/10
- Re: [Gnu-arch-users] Re: tla on aix,
tow21 <=
- Re: [Gnu-arch-users] Re: tla on aix, Robert Collins, 2004/02/10
- Re: [Gnu-arch-users] Re: tla on aix, Tom Lord, 2004/02/10
- Re: [Gnu-arch-users] Re: tla on aix, tow21, 2004/02/10
- Re: [Gnu-arch-users] Re: tla on aix, Tom Lord, 2004/02/10