bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Problem with fstatat on AIX 7.1


From: Kevin Brott
Subject: Re: [Bug-tar] Problem with fstatat on AIX 7.1
Date: Sun, 4 Sep 2011 18:14:48 -0700

On Sun, Sep 4, 2011 at 10:00, Paul Eggert <address@hidden> wrote:
Thanks.  A few things.  First, the truss output says
that 'tar' is using 'kopen' (whatever that is) rather than openat.
But the config.log you sent for an earlier build suggests that
tar is using openat.  Can you please check this, by sending the
config.log for the last 'tar' you built most recently?
 

Attached the config.log from the second tarball you asked me to use
 
Second, can you please compile and send the truss output of the following
program so that we can see what the truss output for a true
'openat' looks like?

 #define _LARGE_FILES 1
 #include <fcntl.h>

 int
 main (void)
 {
   return openat (AT_FDCWD, ".", O_RDONLY) < 0;
 }


tar-1.26-experimental$ mkdir otest
tar-1.26-experimental$ cd otest
otest$ vi otest.c
otest$ xlc -o otest otest.c
otest$ truss -o otest.truss -f ./otest

Truss output compressed and attached.
 
... 
Here, file descriptor 4 is a message-catalog file descriptor, which is
sort of getting in the way, but it appears that 'tar' is simply giving up
when EMFILE occurs.  Let's try to figure that out, by applying the following
patch to the latest 'tar' distribution I sent you, and seeing how the test
does with that.  Please run this with LC_ALL=C in your environment.

Thanks.


Fresh extract of the second experimental tar archive ...

tar-1.26-experimental$ export LC_ALL=C LANG=C
tar-1.26-experimental$ locale
LANG=C
LC_COLLATE="C"
LC_CTYPE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=C
tar-1.26-experimental$ vi create.patch
tar-1.26-experimental$ gpatch -p1 -i create.patch
patching file src/create.c
tar-1.26-experimental$ ./configure && gmake

...
tar-1.26-experimental$ cp -pr /var/tmp/stest .
tar-1.26-experimental$ cd stest
stest$ truss -f -o test-scarce-2.truss sh ./test-scarce
tar: a/b/c/d/e/f/X: Too many open files
tar: a/b/c/d/e/f/Y: Too many open files
tar: a/b/c/d/e/f/Z: Too many open files
tar: a/b/c/d/e/f/g: directory read error
diff: dest3/a: No such file or directory
stest$

Truss output compressed and attached.

--
# include <stddisclaimer.h>
/* Kevin  Brott <address@hidden> */


Attachment: test-scarce-2.truss.gz
Description: GNU Zip compressed data

Attachment: config.log.gz
Description: GNU Zip compressed data

Attachment: otest.truss.gz
Description: GNU Zip compressed data


reply via email to

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