Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-WM-Posted-At: avacado.atomice.net; Sat, 4 May 02 16:54:19 +0100
Message-ID: <017c01c1f383$f3cda310$0100a8c0@advent02>
From: "Chris January" <chris@atomice.net>
To: <cygwin@cygwin.com>
References: <011901c1f2fb$1fbf5330$0100a8c0@advent02> <20020504042742.GI32261@redhat.com> <00a201c1f360$133f73a0$0100a8c0@advent02> <20020504154451.GE29229@redhat.com>
Subject: Re: Bug in ln / cygwin1.dll
Date: Sat, 4 May 2002 16:54:19 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> >> >When I run 'make -f Makefile.cvs' with QT3, I find that ln segfaults
> >trying
> >> >to create a symlink. I've included the output of strace showing the
> >problem,
> >> >output of cygcheck and also the stackdump ln produces. I can reproduce
> >this,
> >> >so if you need any more information, please ask. The problem occurs
with
> >the
> >> >latest Cygwin CVS.
> >> >ln is 'ln (fileutils) 4.1'.
> >> >cygwin is 'CYGWIN_NT-5.0 ADVENT02 1.3.11(0.52/3/2) 2002-05-03 15:18
i686
> >> >unknown'
> >>
> >> You're using a locally built version of cygwin.  Please run it under
gdb
> >> and pinpoint where the problem is occurring.  You may find the
techniques
> >> in how-to-debug-cygwin.txt useful.
> >As far as I can tell, it's caused by the fact that more than 1024
arguments
> >are being passed to ln and in exec.cc, argv is declared as 1024 elements.
Is
> >there any reason this limit shouldn't be upped to, say, 2048 elements? If
> >not, can this change be made in CVS please.
>
> Where, specifically, is the segv occurring?
My original guess at the cause was incorrect. See my post in cygwin-patches
for more details. Less than 1024 arguments were being passed to ln. However
the value _was_ more than the 256 limit in spawn.cc.

Regards
Chris



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

