This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Re[3]: cygwin download incomplete - try again - loop?



> -----Original Message-----
> From: Max Bowsher [mailto:maxb@ukf.net] 
> Sent: Saturday, 8 June 2002 2:13 AM
> To: Robert Collins; cygwin@cygwin.com
> Subject: Re: Re[3]: cygwin download incomplete - try again - loop?
> 
> 
> Robert Collins <robert.collins@syncretize.net> wrote:
> > I can't duplicate this. Is this from HEAD or setup-200206?
> 
> HEAD, checked out from an rsync local replica of the cvs 
> tree. Updated within 15
> mins of this mail.
> 
> Placing a setup.ini file in the root of the local package 
> directory duplicates
> the crash reliably for me.
> 
> > Also, can you use 'bt full' not 'bt' when getting a back trace?
> 
> (gdb) bt full
> #0  0x004346d3 in rfc1738_do_escape (url=0x0, encode_reserved=1)
>     at ../setup/rfc1738.cc:92
>         url = 0x0
>         buf = 0x0
>         bufsize = 0
>         p = 0x12f4790 "hJ/\001"
>         q = 0x0
>         i = 0
>         do_escape = 0
> #1  0x0043484c in rfc1738_escape_part (url=@0x13784d0)
>     at ../setup/rfc1738.cc:187
>         url = (String &) @0x0: Cannot access memory at address 0x0
> (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=@0x13784d0)
>     at ../setup/rfc1738.cc:187
> #2  0x0040c5ef in check_for_cached (pkgsource=@0x12f47a0)
>     at ../setup/download.cc:91

In here, (pkgsource.sites[n]->key ) is apparently evaluating as a zero
length string. This should never happen (key must have a value).

However, I'm pretty sure the sites class allows key to have no value, so
what you need to do is to go to frame 2 or 3 and identify the package
and site count that it's got. And then work backwards to find out when
the invalid site is created. 

Can you do that? I'll offer what email assistance I can, but until we
have enough detail to reproduce here, that's all I can offer. I'm
obviously keen to get this bug fixed...

Rob


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]