bug-findutils
[Top][All Lists]
Advanced

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

Re: xargs: exec's with too many arguments


From: Tim Waugh
Subject: Re: xargs: exec's with too many arguments
Date: Tue, 22 Nov 2005 11:35:15 +0000
User-agent: Mutt/1.4.2.1i

On Sat, Nov 19, 2005 at 08:30:50AM +0000, James Youngman wrote:

> Thanks for discovering and fixing the bug.

With 4.2.26 I'm finding a test suite failure with the new tests on
x86_64:

Running 
/tmp/twaugh/findutils-4.2.26/xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp
 ...
FAIL: arg_max_32bit_linux_bug, wrong stdout output: xargs.out 
/tmp/twaugh/findutils-4.2.26/xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo
 differ: byte 32764, line 1
child process exited abnormally
Running 
/tmp/twaugh/findutils-4.2.26/xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp
 ...
FAIL: arg_max_64bit_linux_bug, wrong stdout output: xargs.out 
/tmp/twaugh/findutils-4.2.26/xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo
 differ: byte 32764, line 1
child process exited abnormally

The reason is that the expected output contains one line of 16383
'y's.  Of course, it is surely meant to be one line of 16382 'y's
followed by another line with just 'y' -- otherwise the fix hasn't
worked.

Same goes for the 32bit case.

HOWEVER, I have a 32-bit (x86) Linux installation here which still
fails arg_max_32bit_linux_bug:

Running 
/tmp/twaugh/findutils-4.2.26/xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp
 ...
FAIL: arg_max_32bit_linux_bug, unexpected failure, child process exited 
abnormally, /tmp/twaugh/findutils-4.2.26/xargs/testsuite/../xargs: echo: 
Argument list too long

Changing the buildcmd.c line to subtract 2, not 1, fixes this (but
again the expected output is different).

Tim.
*/

Attachment: pgpVvMqsnZK7b.pgp
Description: PGP signature


reply via email to

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