|
From: | Kevin Brott |
Subject: | Re: [Bug-tar] [GNU tar 1.26] testsuite: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 25 26 27 28 30 31 34 36 38 39 40 42 43 44 45 46 47 48 49 51 52 53 54 55 57 58 59 60 61 62 64 65 66 67 68 69 71 72 73 74 79 80 81 82 83 84 85 87 90 91 92 |
Date: | Thu, 18 Aug 2011 15:24:31 -0700 |
Working on that debugging (using the system native tools because there's no working gcc for AIX 7.1 yet, and I'm not real familiar with adb or dbx) ... but doing some quick reading I suspect the issue stems from this:On Thu, Aug 18, 2011 at 10:28, Paul Eggert <address@hidden> wrote:
On 08/18/2011 09:46 AM, Kevin Brott wrote:Thanks for the truss output. I expect that it's this line
> Looks like tar isn't putting anything but zero-byte files into the archives
in src/create.c:1639
else if (fstatat (parentfd, name, &st->stat, fstatat_flags) != 0)
Could you please run a debugger like GDB and step through that line
with an offending test case? My suspicion is that fstatat is incorrectly
reporting that the file size is zero. If so, can you explain how fstatat
is implemented on your system? Is the code using the gnulib replacement,
or is fstatat implemented via system's C library, or what?
If you can't run a debugger, simply insert some printf statements
and print st->stat.st_size right after the successful fstatat.
"IBM AIX Version 7.1 Differences Guide" p7Table 1-2 Short list of new library functions and system calls
System calls System callsacessxat mknodatchownxat openatfaccessat openxatfchmodat readlinkatfchownat renameatfexecve stat64atfstatat statx64atfutimens statxatkopenat symlinkatlinkat ulinkatmkdirat utimensatmkfifoatWhich implies that fstatat wasn't available in earlier versions of AIX - but is now in 7.1 - which might end up just being a ./configure issue. The official reference for it seems to be here: http://publib.boulder.ibm.com/infocenter/aix/v7r1/index.jsp?topic=/com.ibm.aix.basetechref/doc/basetrf2/statx.htm
[Prev in Thread] | Current Thread | [Next in Thread] |