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
Date: Mon, 10 Jun 2002 12:09:10 +0200
From: Pavel Tsekov <ptsekov@syntrex.com>
Reply-To: Pavel Tsekov <cygwin@cygwin.com>
Organization: Syntrex, Inc.
X-Priority: 3 (Normal)
Message-ID: <14910202790.20020610120910@syntrex.com>
To: "Max Bowsher" <maxb@ukf.net>
CC: cygwin@cygwin.com
Subject: Re: Diagnosis of setup crash (was: Re: Re[3]: cygwin download incomplete - try again - loop?)
In-Reply-To: <000401c2105b$dacd6f40$42a18c09@wdg.uk.ibm.com>
References: <000401c2105b$dacd6f40$42a18c09@wdg.uk.ibm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

MB> The crash occurs because rfc1738_do_escape is passed url=0x0. This zero pointer
MB> is gereated in rfc1738_escape_part by url.cstr_oneuse(), where url = String("").

MB> rfc_escape_part("") is called from check_for_cached(). The "" value comes from
pkgsource.sites[n]->>key. The site objects with a key of "" are created somewhere
MB> in the yacc/lex stuff (of which I know nothing) based upon the mirror value
MB> produced in IniParseFindVisitor::visitFile(). Changing < mirror = String (); >
MB> to < mirror = String ("."); > on line 69 of IniParseFindVisitor.cc eliminates
MB> the crash.

Well, it seems like this is a result of the fix applied for the
previous bug. Btw IMO this can be fixed by skipping the ini_init()
part and all its dependencies when the mirror is determined to be
empty. I.e. the previous fix is OK , but some more code has to be
moved to the block "prefix.size() > 0".


--
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/

