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
Message-ID: <017201c20e1f$4fe1ac40$42a18c09@wdg.uk.ibm.com>
From: "Max Bowsher" <maxb@ukf.net>
To: <cygwin@cygwin.com>
References: <NEBBLGAIGOHCGFPEEBIMMEKEMNAA.ralfhauser@gmx.ch> <003601c20e08$41e0bd50$42a18c09@wdg.uk.ibm.com> <1577430955.20020607120539@syntrex.com> <6911522488.20020607131350@syntrex.com>
Subject: Re: Re[3]: cygwin download incomplete - try again - loop?
Date: Fri, 7 Jun 2002 13:31:56 +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

Pavel Tsekov <ptsekov@syntrex.com> wrote:
> MB>> This is caused to the presence of a setup.ini in the root of the local
package
> MB>> directory and a string-handling bug in the rfc1738 code.
>
> It appears that Max is right - without setup.ini in the local package
> directory everything is fine, if you put one, setup.exe crashes :(

Backtrace from the crash below.

strlen(url) is called with url = NULL on line 92.

Its easy to kludge round this, but it strikes me that the problem would be
better solved by finding out why a null pointer is being passed in the first
place. Maybe this weekend :-).

(gdb) bt
#0  0x004346d3 in rfc1738_do_escape (url=0x0, encode_reserved=1)
    at ../setup/rfc1738.cc:92
#1  0x0043484c in rfc1738_escape_part (url=@0x13785c8)
    at ../setup/rfc1738.cc:187
#2  0x0040c5ef in check_for_cached (pkgsource=@0x12f48e0)
    at ../setup/download.cc:91
#3  0x004043e6 in scan_downloaded_files () at ../setup/choose.cc:471
#4  0x004045f1 in ChooserPage::OnInit (this=0x23fb60) at ../setup/choose.cc:517
#5  0x00434112 in PropertyPage::DialogProc (this=0x23fb60, message=272,
    wParam=0, lParam=2461248) at ../setup/proppage.cc:114
#6  0x0043404d in PropertyPage::FirstDialogProcReflector (hwnd=0x30556,
    message=272, wParam=0, lParam=2461248) at ../setup/proppage.cc:86



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

