X-Spam-Check-By: sourceware.org Message-ID: <457A2DCB.3070706@byu.net> Date: Fri, 08 Dec 2006 20:30:19 -0700 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: xargs gives grep/gawk too much References: <31DDB7BE4BF41D4888D41709C476B65704169472 AT NIHCESMLBX5 DOT nih DOT gov> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Eric Blake on 12/8/2006 1:53 PM: > It looks like you are picking up the cygwin version of grep/gawk, so I'm not > sure why you are getting a failure. As it is, I think there might be a regression in cygwin's handling of arbitrary length argument handling between cygwin processes: $ /bin/echo `perl -e 'print "a "x15000'` >/dev/null Segmentation fault (core dumped) $ cat echo.exe.stackdump Exception: STATUS_ACCESS_VIOLATION at eip=610DE121 eax=00000000 ebx=0000225B ecx=FFFFFFFF edx=00000000 esi=0022D008 edi=00000000 ebp=0022CC28 esp=0022CC24 program=c:\cygwin\bin\echo.exe, pid 1600, thread main cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023 Stack trace: Frame Function Args 0022CC28 610DE121 (00000000, 611010E8, 0022CC50, 00000000) 0022CC78 610E5BD3 (0022D008, 00000000, 611010E8, 610EE94A) 0022CC98 610E5C61 (00000000, 611010E8, 0040539B, 004054AA) 0022CCE8 61092AA8 (0000225B, 61171BA8, 00660090, 00000000) 0022CD98 61006148 (00000000, 0022CDD0, 610054C0, 0022CDD0) 610054C0 61004416 (0000009C, A02404C7, E8611001, FFFFFF48) 4 [main] echo 1600 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack) In other words, I am starting to feel more inclined that there is a cygwin bug, rather than an xargs bug. :( If it helps any: $ /bin/echo `perl -e 'print "a "x2986'`>/dev/null && echo $? Segmentation fault (core dumped) $ /bin/echo `perl -e 'print "a "x2985'`>/dev/null && echo $? 0 - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFei3L84KuGfSFAYARAlHyAKDYKNZTIFnCVpP4gzhudw5oRLmywwCgih0w 2eAC1g5znYJl/m3EC9iUAaw= =LCtW -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/