This is the mail archive of the
mailing list for the glibc project.
Re: sparc 32-bit dirent broken
- From: David Miller <davem at davemloft dot net>
- To: fweimer at redhat dot com
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 10 Oct 2013 17:06:28 -0400 (EDT)
- Subject: Re: sparc 32-bit dirent broken
- Authentication-results: sourceware.org; auth=none
- References: <20131010 dot 153636 dot 1452723476959522893 dot davem at davemloft dot net> <52570475 dot 2050107 at redhat dot com> <20131010 dot 164308 dot 103134182855731464 dot davem at davemloft dot net>
From: David Miller <firstname.lastname@example.org>
Date: Thu, 10 Oct 2013 16:43:08 -0400 (EDT)
> From: Florian Weimer <email@example.com>
> Date: Thu, 10 Oct 2013 21:48:05 +0200
>> On 10/10/2013 09:36 PM, David Miller wrote:
>>> That didn't fix things, attached is the strace log with "-v" for a
>>> posix/tst-dir run.
>> Hmm. strace is decoding the kernel buffers, too, so it's not
>> particularly helpful. I'd rather see the raw bytes in this case.
>> I'll try to reproduce this on ppc32 (but I did test things there).
> Meanwhile I'll try to add some stderr tracing to readdir_r.c and
> see if I can get anything useful out of it during the test.
The very first call to getdents goes like this:
readdir_r: dirp->offset dirp->size
readdir_r: __GETDENTS() maxread bytes[-1] errno
errno 14 is -EFAULT on sparc.
I suspect the alignof needs to be adjusted in struct __dirstream so
that data is 64-bit aligned on platforms that need that.
I'll test out this theory.