public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: setup crashes
       [not found] <200405051406.QAA02007@gsnet0.lngs.infn.it>
@ 2004-05-05 16:04 ` user
  0 siblings, 0 replies; 8+ messages in thread
From: user @ 2004-05-05 16:04 UTC (permalink / raw)
  To: cygwin

-------------------
> Have you got setup.ini as well as setup.exe in d:\cygkit\?
> You'll need it.

Yes, I have it... but
setup.exe 2.427  crashes again.
I think that the problem may be a corrupted package  
because setup did not complete the MD5 checking.
Now I have just deleted xorg-x11-bin
and it looks more friendly.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setup crashes
@ 2004-05-05 14:06 fergus
  0 siblings, 0 replies; 8+ messages in thread
From: fergus @ 2004-05-05 14:06 UTC (permalink / raw)
  To: cygwin; +Cc: user, fergus

Have you got setup.ini as well as setup.exe in d:\cygkit\?
You'll need it.
Fergus


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* setup crashes
@ 2004-05-05 13:18 user
  0 siblings, 0 replies; 8+ messages in thread
From: user @ 2004-05-05 13:18 UTC (permalink / raw)
  To: cygwin


 Hello,
        I am trying to install cygwin on win2k+sp4+...
 ... + latest patch.
 I am using the current cygwin setup.exe
 in two steps, first download to local directory 
 d:\cygkit then install from local directory to d:\cygwin
 My win2k is in C:,  D: is a NTFS partition with 1,6 GB
 of free space.

 It always deads with:

 Microsoft Visual C++ Runtime Library
 
 Runtime Error!
 
 program: D:\cygkit\setup.exe

 abnormal termination!

 

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* setup crashes
@ 2004-02-12 19:39 james pentland
  0 siblings, 0 replies; 8+ messages in thread
From: james pentland @ 2004-02-12 19:39 UTC (permalink / raw)
  To: cygwin

a crash in setup occurs at install.cc:657 in function
md5_one():
void md5_one (const packagesource& source)
      io_stream *thefile = io_stream::open
(source.Cached (), "rb");

the class String constructor String::String (const
char *acString) at String++.cc:46
is passed a null argument acString, causing an
exception in memcpy() at String++.cc:48.

the memory dump of class packagesource source,
argument to md5_one(), is at 0xa20a718, shown below;
the memory dump of contained class String cached is at
0x0a22a880, shown below.
(gdb does not understand class packagesource in this
frame.)
String::_data::cstr has a value of 0x0.

what is the semantics of String::_data::cstr?
what is the semantics of String::Cached() in class
packagesource?

something is broken in there.

this event pertains to the class packagesource
instance for package zlib.
this packagesource instance for zlib at this point is
a different one from the one used by
validateCachedPackage() at download.cc:74, during the
initial md5 checks.

i am not clear if the packagesource instance is being
stepped on or if it is not being properly set up.

is this enough information for you to understand where
the problem is?
i can do more work on the problem if need be.

the crash happens with setup 2.415, 2.416 and 2.418.
i am debugging setup 2.415.

i include some useful parts of the debug session
below.









$ gdb setup.exe
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General
Public License, and you are
welcome to change it and/or distribute copies of it
under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) break install.cc:503
Breakpoint 1 at 0x41bf89: file install.cc, line 503.

...

(gdb)
Continuing.
warning: LOG: 1 For file
file://I:\cygwin/release/which/which-1.5-2.tar.bz2 ini
digest is 01685c4933406033f0931b57d7754644 file digest
is 01685c4933406033f0931b
57d7754644

Breakpoint 1, do_install_thread(HINSTANCE__*, HWND__*)
(h=0x0, owner=0x1)
    at install.cc:503
503                       md5_one (*pkg.desired.source
());
(gdb) s
packageversion::source() (this=<incomplete type>)
    at /usr/include/c++/3.2/bits/stl_vector.h:261
261         { return size_type(end() - begin()); }
(gdb)
292     {
(gdb)
261         { return size_type(end() - begin()); }
(gdb)
584           __normal_iterator(const _Iterator& __i)
: _M_current(__i) { }
(gdb)
633           base() const { return _M_current; }
(gdb)
261         { return size_type(end() - begin()); }
(gdb)
584           __normal_iterator(const _Iterator& __i)
: _M_current(__i) { }
(gdb)
296     }
(gdb)
md5_one(packagesource const&) (source=@0xa20a718) at
MD5++.h:31
31        bool isSet() const {return _set;}
(gdb)
653     {
(gdb)
31        bool isSet() const {return _set;}
(gdb)
packagesource::Cached() const (this=0xa20a718) at
package_source.h:99
99          return cached.cstr_oneuse();
(gdb)
String::cstr_oneuse() const (this=0xa20a74c) at
String++.cc:103
103       if (theData->length == 0)
(gdb)
104         return NULL;
(gdb)
111     }
(gdb)
String::String(char const*) (this=0x16afe0c,
acString=0x0) at String++.cc:47
47      {
(gdb)
0x0043d200      49      }
(gdb)
0x0043d036 in String::_data::_data(unsigned)
(this=0xa0423d8, aLength=0)
    at String++.cc:35
35      String::_data::_data(size_t aLength): count
(1), theString(new unsigned
char[aLength]), cstr(0), length (aLength) {}
(gdb)
String::String(char const*) (this=0x16afe0c,
acString=0x0) at String++.cc:48
48        memcpy (theData->theString, acString,
theData->length);
(gdb)  bt
#0  String::String(char const*) (this=0x16afe0c,
acString=0x0)
    at String++.cc:48
#1  0x0041c52d in md5_one(packagesource const&)
(source=@0xa20a718)
    at install.cc:657
#2  0x0041bf9f in do_install_thread(HINSTANCE__*,
HWND__*) (h=0x0, owner=0x1)
    at install.cc:503
#3  0x0a05e950 in ?? ()
(gdb) x/16xw 0xa20a718
0xa20a718:      0x0049dbe8      0x0000f315     
0x3d19a1e0      0x49df1186
0xa20a728:      0x8f1ddd11      0x0b073144     
0x00000001      0x0a227830
0xa20a738:      0x0a227830      0x0a227834     
0x0a22a820      0x0a22a848
0xa20a748:      0x0a22a860      0x0a22a880     
0x00000000      0x00000000
(gdb) x/s 0x0a22a820
0xa22a820:       "release/zlib/zlib-1.1.4-4.tar.bz2"
(gdb) x/s  0x0a22a848
0xa22a848:       "zlib-1.1.4-4"
(gdb) x/s  0x0a22a860
0xa22a860:       "zlib-1.1.4-4.tar.bz2"
(gdb) x/4xw 0x0a22a880
0xa22a880:      0x00000001      0x0a22a898     
0x00000000      0x00000000
(gdb) x/s   0x0a22a898
0xa22a898:       ""


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setup crashes
  2004-01-31  6:04 james pentland
@ 2004-01-31  6:24 ` Robert Collins
  0 siblings, 0 replies; 8+ messages in thread
From: Robert Collins @ 2004-01-31  6:24 UTC (permalink / raw)
  To: james pentland; +Cc: cygwin

[-- Attachment #1: Type: text/plain, Size: 404 bytes --]

On Sat, 2004-01-31 at 11:20, james pentland wrote:
> i want to compile setup 2.415-1 so i can debug it,
> since it crashes nearly every time i use it.
> make wants a file RECTWrapper.h, which is missing from
> the distribution.
> where should i find it?

You can download it from the setup-snapshot source, or from CVS.

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* setup crashes
@ 2004-01-31  6:04 james pentland
  2004-01-31  6:24 ` Robert Collins
  0 siblings, 1 reply; 8+ messages in thread
From: james pentland @ 2004-01-31  6:04 UTC (permalink / raw)
  To: cygwin

i want to compile setup 2.415-1 so i can debug it,
since it crashes nearly every time i use it.
make wants a file RECTWrapper.h, which is missing from
the distribution.
where should i find it?




if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKA
GE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"setup\" -DVERSION=\"0\" -DST
DC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_S
TRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT
_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_ALLOCA_H=1 -DHAVE_ERRNO_H=1 -DHAV
E_STRING=1 -DHAVE_STRING_H=1  -I. -I. -I./bz2lib
-I./libgetopt++/include   -Werr
or -Wall -Wpointer-arith -Wcomments -Wcast-align
-Wwrite-strings -Wstrict-protot
ypes -Wmissing-prototypes -g -O2 -MT window.o -MD -MP
-MF ".deps/window.Tpo" \
  -c -o window.o `test -f 'window.cc' || echo
'./'`window.cc; \
then mv -f ".deps/window.Tpo" ".deps/window.Po"; \
else rm -f ".deps/window.Tpo"; exit 1; \
fi
window.cc:23:25: RECTWrapper.h: No such file or
directory
window.cc: In member function `bool
Window::MoveWindow(const RECTWrapper&,
   bool)':
window.cc:216: invalid use of undefined type `struct
RECTWrapper'
window.h:26: forward declaration of `struct
RECTWrapper'
window.cc:216: invalid use of undefined type `struct
RECTWrapper'
window.h:26: forward declaration of `struct
RECTWrapper'
window.cc:216: invalid use of undefined type `struct
RECTWrapper'
window.h:26: forward declaration of `struct
RECTWrapper'
window.cc:216: invalid use of undefined type `struct
RECTWrapper'
window.h:26: forward declaration of `struct
RECTWrapper'
make[2]: *** [window.o] Error 1
make[2]: Leaving directory `/ntd/setup/setup-0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/ntd/setup/setup-0'
make: *** [all] Error 2

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: setup crashes
  2004-01-02 19:17 james pentland
@ 2004-01-02 21:18 ` Larry Hall
  0 siblings, 0 replies; 8+ messages in thread
From: Larry Hall @ 2004-01-02 21:18 UTC (permalink / raw)
  To: james pentland, cygwin

At 02:17 PM 1/2/2004, james pentland you wrote:

>Setup.exe version 2.416
>
>Setup fails almost always to install from my local
>cygwin archive.
>
>in each case the crash occurs during the install step
>  checking MD5 for _update-info-dir-00221-1
>this is the first procedure after the Select Packages
>screen.

<snip>

>i also have Setup.exe version 2.415.
>this behaves in an almost identical fashion to 2.416,
>although it crashes with a warning popup, as follows:
>
>  Runtime error!
>  Program: F:\cygwin\setup.exe
>  abnormal program termination
>


You may want to investigate this issue with one of the setup
snapshots at <http://cygwin.com/setup-snapshots/>.  I don't
really expect that 2.418 will solve the problem but it's worth
trying.  Also, you could try debugging setup with the debug
snapshot version of 2.415, since you're seeing a crash with that.
Just some ideas...


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* setup crashes
@ 2004-01-02 19:17 james pentland
  2004-01-02 21:18 ` Larry Hall
  0 siblings, 1 reply; 8+ messages in thread
From: james pentland @ 2004-01-02 19:17 UTC (permalink / raw)
  To: cygwin


Setup.exe version 2.416

Setup fails almost always to install from my local
cygwin archive.

in each case the crash occurs during the install step
  checking MD5 for _update-info-dir-00221-1
this is the first procedure after the Select Packages
screen.


the crash occurs in these cases:
1) check install for all category
2) check install individually for all categories but
not the all category
3) choose all package items individually
4) choose many package items individually, including
all development and interpreter packages


the crash does not occur and setup completes
successfully only in this case:
1) check default for all category


this is a complete archive downloaded from
http://mirror.mcs.anl.gov/cygwin/.
in each case, all MD5 checks complete before the
Select Packages screen is presented.


i also have Setup.exe version 2.415.
this behaves in an almost identical fashion to 2.416,
although it crashes with a warning popup, as follows:

  Runtime error!
  Program: F:\cygwin\setup.exe
  abnormal program termination

again, the crash occurs in
  checking MD5 for _update-info-dir-00221-1
following the Select Packages screen.

again, the crash occurs in this case:
1) check install for all category

and not in this case:
1) check default for all category


however, i have used 2.415 successfully with my
previous archive snapshot from 12 months ago numerous
times.



how can setup crash when the md5 checks have
completed?


__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-05-05 16:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200405051406.QAA02007@gsnet0.lngs.infn.it>
2004-05-05 16:04 ` setup crashes user
2004-05-05 14:06 fergus
  -- strict thread matches above, loose matches on Subject: below --
2004-05-05 13:18 user
2004-02-12 19:39 james pentland
2004-01-31  6:04 james pentland
2004-01-31  6:24 ` Robert Collins
2004-01-02 19:17 james pentland
2004-01-02 21:18 ` Larry Hall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).