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: setup hangs during postinstall


> From: Christopher Faylor

> On Wed, Oct 08, 2003 at 12:27:22PM -0500, Brian Ford wrote:
> >Christopher Faylor wrote:
> >>On Wed, Oct 08, 2003 at 12:49:44PM -0400, Igor Pechtchanski wrote:
> >>>This is a known bug (as a search of the recent archives would have
> >>>shown).  People are investigating.  As a short term workaround, you can
> >>>"mv /etc/postinstal/XFree86-bin-icons.sh{,.done}" and rerun setup.
> >>
> >>I sure wish I could duplicate this bug...
> >>
> >Well, I can.
> >
> >I've got an XP box running a current CVS compiled cygwin DLL,
> >a current CVS compiled cygpath, and a just downloaded setup stuck
> >reinstalling XFree86-bin-icons.  I attached gdb to cygpath and got the
> >following.
> >
> >It looks to me like the stack is corrupted, but I'm probably just being
> >naive.
>
> This is unfortunately a standard stack for a frame-pointerless function
> (probably *WaitForMultipleWindowsEx).  The laborious way to find the
> caller is to do something like a:
>
> x/200x $esp
>
> and then look for 0x6100xxxx addresses in the output, decoding them with
> something like:
>
> l *0x61041234
>
> There will be some garbage on the stack so some 0x6100xxxx addresses will
> not be useful.
>
> That's the only way I know of to deal with this.  If gcc produced dwarf2
> output, we could use the CFI to get more accurate information about the
> stack frame but that's not going to happen anytime soon.

 This is how it looks for me, when I try to follow the description above...
HTH (not really expecting it to) :-I

This is W2K adv server, SP4+ as I've told before... last and latest of all
cygwin packages - and setup2.416-1  (updated this evening from rcn.net)

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --


$ gdb cygpath
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) att  2212
Attaching to program `/usr/bin/cygpath.exe', process 2212
[Switching to thread 2212.0x9b0]
(gdb) l
501     cygpath (cygwin) %.*s\n\
502     Path Conversion Utility\n\
503     Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.\n\
504     Compiled on %s\n\
505     ", len, v, __DATE__);
506     }
507
508     int
509     main (int argc, char **argv)
510     {
(gdb) bt
#0  0x77fa144c in ntdll!DbgUiConnectToDbg () from
/cygdrive/f/WINNT/system32/NTDLL.DLL
#1  0x7c50dfdb in KERNEL32!DebugActiveProcess () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
#2  0x7c4e987c in SetThreadExecutionState () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
(gdb) f 0
#0  0x77fa144c in ntdll!DbgUiConnectToDbg () from
/cygdrive/f/WINNT/system32/NTDLL.DLL
(gdb) n
Single stepping until exit from function ntdll!DbgUiConnectToDbg,
which has no line number information.
0x7c50dfdb in KERNEL32!DebugActiveProcess () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
(gdb) l
511       int c, o = 0;
512       int options_from_file_flag;
513       char *filename;
514
515       prog_name = strrchr (argv[0], '/');
516       if (prog_name == NULL)
517         prog_name = strrchr (argv[0], '\\');
518       if (prog_name == NULL)
519         prog_name = argv[0];
520       else
(gdb) x/200x $esp
0xb6ffac:       0x77f98191      0xffffffff      0x00b6ffec      0x7c4e987c
0xb6ffbc:       0x00000000      0x03d4fcbc      0x77f98191      0x00000000
0xb6ffcc:       0x7ffdc000      0x03d4fccc      0x00b6ffc0      0x03d4fccc
0xb6ffdc:       0xffffffff      0x7c4ff0b4      0x7c4ed360      0x00000000
0xb6ffec:       0x00000000      0x00000000      0x7c50dfb2      0x00000000
0xb6fffc:       0x00000000      Cannot access memory at address 0xb70000
(gdb) f 1
#1  0x7c4e987c in SetThreadExecutionState () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
(gdb) x/200x $esp
0xb6ffbc:       0x00000000      0x03d4fcbc      0x77f98191      0x00000000
0xb6ffcc:       0x7ffdc000      0x03d4fccc      0x00b6ffc0      0x03d4fccc
0xb6ffdc:       0xffffffff      0x7c4ff0b4      0x7c4ed360      0x00000000
0xb6ffec:       0x00000000      0x00000000      0x7c50dfb2      0x00000000
0xb6fffc:       0x00000000      Cannot access memory at address 0xb70000
(gdb) f 2
#0  0x00000000 in ?? () from
(gdb) f
#0  0x00000000 in ?? () from
(gdb) f 0
#0  0x7c50dfdb in KERNEL32!DebugActiveProcess () from
/cygdrive/f/WINNT/system32/KERNEL32.DLL
(gdb) x/200x $esp
0xb6ffac:       0x77f98191      0xffffffff      0x00b6ffec      0x7c4e987c
0xb6ffbc:       0x00000000      0x03d4fcbc      0x77f98191      0x00000000
0xb6ffcc:       0x7ffdc000      0x03d4fccc      0x00b6ffc0      0x03d4fccc
0xb6ffdc:       0xffffffff      0x7c4ff0b4      0x7c4ed360      0x00000000
0xb6ffec:       0x00000000      0x00000000      0x7c50dfb2      0x00000000
0xb6fffc:       0x00000000      Cannot access memory at address 0xb70000
(gdb) i thre
* 3 thread 2212.0x9b0  0x7c50dfdb in KERNEL32!DebugActiveProcess ()
   from /cygdrive/f/WINNT/system32/KERNEL32.DLL
  2 thread 2212.0xa28  0x77f8c55d in ntdll!ZwReadFile () from
/cygdrive/f/WINNT/system32/NTDLL.DLL
  1 thread 2212.0x2f8  0x77f9323e in ntdll!ZwWaitForMultipleObjects ()
   from /cygdrive/f/WINNT/system32/NTDLL.DLL
(gdb) thr 1
[Switching to thread 1 (thread 2212.0x2f8)]#0  0x77f9323e in
ntdll!ZwWaitForMultipleObjects ()
   from /cygdrive/f/WINNT/system32/NTDLL.DLL
(gdb) x/200x $esp
0x22e4c4:       0x7c4ebdd7      0x00000003      0x0022e4e8      0x00000001
0x22e4d4:       0x00000000      0x00000000      0x0022e5f0      0x00000000
0x22e4e4:       0x0022e550      0x0000033c      0x00000370      0x00000274
0x22e4f4:       0x00000000      0x00000000      0x00000000      0x00000000
0x22e504:       0x00000000      0xffffffff      0x6163146c      0x0022e578
0x22e514:       0x7c4fabfb      0x0022e4e8      0x00000001      0x00000000
0x22e524:       0x00000000      0x00000000      0x610885a3      0x00000003
0x22e534:       0x0022e5f0      0x00000000      0xffffffff      0x61631474
0x22e544:       0x000008a4      0x0022e558      0x00000003      0x00000000
0x22e554:       0x000008a4      0x0022e578      0x6108d300      0x0a010008
0x22e564:       0x00000002      0x0022e578      0x00000000      0x00000003
0x22e574:       0x000008a4      0x0022f888      0x6108a7af      0xffffffff
0x22e584:       0x0022f75c      0x0022ee30      0x0022ee30      0x00000001
0x22e594:       0x04000020      0x0a0483f8      0x00000000      0x0022f4b0
0x22e5a4:       0x0022f230      0x00000000      0x00000000      0x00000000
0x22e5b4:       0x00000002      0x0022f75c      0x04000020      0x00000003
0x22e5c4:       0x00000000      0x00000000      0x00000274      0x00000000
0x22e5d4:       0x00000000      0x00000000      0x00000000      0x00000000
0x22e5e4:       0x0a0483f8      0x0022f779      0x00000000      0x0000033c
0x22e5f4:       0x00000370      0x00000274      0x00090028      0x00000000
0x22e604:       0x00000000      0x00000000      0x00000000      0x610897c0
0x22e614:       0x0022e620      0x00000000      0x00000000      0x00000000
0x22e624:       0x00000000      0x00000000      0x77f8c277      0x77fcf170
0x22e634:       0x77f91c38      0x77f91c1e      0x00000208      0x0000021a
0x22e644:       0x002321d0      0x0022e7ec      0x77fcc35c      0x00231348
0x22e654:       0x00234030      0x7ffde001      0x00000021      0x00000002
0x22e664:       0x00000000      0x00000000      0x00000000      0x00000000
0x22e674:       0x00000000      0x00000000      0x00000000      0x00000043
0x22e684:       0x0022e764      0x00000042      0x00000000      0x00000003
0x22e694:       0x00000000      0x02080042      0x00000000      0x00440042
0x22e6a4:       0x7ffdec00      0x00000000      0x00000043      0x0022e766
0x22e6b4:       0x00000000      0x00000000      0x00000042      0x00000000
0x22e6c4:       0x00000000      0x00000000      0x7ffde000      0x7ffde000
0x22e6d4:       0x0022e988      0x77f98191      0x77f91c58      0xffffffff
0x22e6e4:       0x0022e998      0x0000021a      0x00000008      0x0022e998
0x22e6f4:       0x77f8c277      0x77fcf170      0x77f91b5c      0x77f91b34
0x22e704:       0x00000000      0x0022f2bc      0x00000000      0x00000000
0x22e714:       0x00000000      0x0022e748      0x00000000      0x00000002
0x22e724:       0x003a0043      0x0050005c      0x006f0072      0x00720067
0x22e734:       0x006d0061      0x0063005c      0x00670079      0x00690077
0x22e744:       0x005c006e      0x00690062      0x005c006e      0x00790063
0x22e754:       0x00700067      0x00740061      0x002e0068      0x00780065
0x22e764:       0x00000065      0x00000000      0x00000000      0x00000000
0x22e774:       0x00000000      0x00000000      0x00000000      0x00000000
0x22e784:       0x00000000      0x00000000      0x00000000      0x00000000
0x22e794:       0x00000000      0x00000000      0x00000000      0x00000000
0x22e7a4:       0x00000000      0x00000000      0x00000000      0x00000000
0x22e7b4:       0x00000000      0x00000000      0x00000000      0x00000000
0x22e7c4:       0x00000000      0x00000000      0x00000000      0x00000000
0x22e7d4:       0x00000000      0x00000000      0x00000000      0x00000000
(gdb) l *0x6163146c
No source file for address 0x6163146c.
(gdb) l *0x610885a3
No source file for address 0x610885a3.
(gdb) l *0x61631474
No source file for address 0x61631474.
(gdb) l *0x6108d300
No source file for address 0x6108d300.
(gdb) i p
        Using the running image of child thread 2212.0x2f8.
Program stopped at 0x77f9323e.
It stopped after being stepped.
(gdb) l *0x6108a7af
No source file for address 0x6108a7af.
(gdb) l *0x610897c0
No source file for address 0x610897c0.
(gdb) thr 2
[Switching to thread 2 (thread 2212.0xa28)]#0  0x77f8c55d in
ntdll!ZwReadFile ()
   from /cygdrive/f/WINNT/system32/NTDLL.DLL
(gdb) x/200x $esp
0xb2fab4:       0x7c4e660d      0x00000358      0x00000000      0x00000000
0xb2fac4:       0x00000000      0x00b2fafc      0x00b2fb5c      0x00000010
0xb2fad4:       0x00000000      0x00000000      0x00b2fb5c      0x00b2fb54
0xb2fae4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2faf4:       0x00000000      0x7ffddbf8      0x00000000      0x00000010
0xb2fb04:       0x7c4f4d0a      0x610e6ca8      0x00b2fadc      0x01000101
0xb2fb14:       0x00b2ffa4      0x7c4ff0b4      0x7c4e6640      0xffffffff
0xb2fb24:       0x00b2ff84      0x61087d96      0x00000358      0x00b2fb5c
0xb2fb34:       0x00000010      0x00b2fb54      0x00000000      0x00000000
0xb2fb44:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fb54:       0x00000000      0x00000358      0x00000000      0x000008a4
0xb2fb64:       0x00000348      0x00b2fb50      0x0000000c      0x00b2fb78
0xb2fb74:       0x00000000      0x00040001      0x00000000      0x00000000
0xb2fb84:       0x00000000      0x00b2fb8c      0x00580002      0x00000003
0xb2fb94:       0x00240000      0x10000000      0x00000501      0x05000000
0xb2fba4:       0x00000015      0x323e04be      0x2d94e907      0x500cebdb
0xb2fbb4:       0x000001f4      0x00180000      0x10000000      0x00000201
0xb2fbc4:       0x05000000      0x00000020      0x00000220      0x00140000
0xb2fbd4:       0x10000000      0x00000101      0x05000000      0x00000012
0xb2fbe4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fbf4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fc04:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fc14:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fc24:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fc34:       0x00000001      0x7ffdf000      0x00b2fc74      0x00b2fc50
0xb2fc44:       0x6109d24b      0x00000006      0x61106028      0x00000001
0xb2fc54:       0x7ffdf000      0x00b2fc74      0x00b2fc74      0x00b2fc80
0xb2fc64:       0x77f86215      0x77d30000      0x00000002      0x00000000
0xb2fc74:       0x77d37740      0x7ffdf000      0x00234478      0x00b2fd1c
0xb2fc84:       0x77f8f786      0x77d37740      0x77d30000      0x00000002
0xb2fc94:       0x00000000      0x7ffdf000      0x7ffdd000      0x77f84ace
0xb2fca4:       0x77fcf348      0x77f84b98      0x00b2fd30      0x00230178
0xb2fcb4:       0x610e4b40      0x00000000      0x00000000      0x00000000
0xb2fcc4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fcd4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fce4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fcf4:       0x7ffdd000      0x00000000      0x00000000      0x00000000
0xb2fd04:       0x00b2fcac      0x0000021e      0xffffffff      0x77f98191
0xb2fd14:       0x77f84bd8      0xffffffff      0x00000000      0x77fa15d3
0xb2fd24:       0x77fa15db      0x00b2fd30      0x00000001      0x00010017
0xb2fd34:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fd44:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fd54:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fd64:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fd74:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fd84:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fd94:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fda4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fdb4:       0x00000000      0x00000000      0x00000000      0x00000038
0xb2fdc4:       0x00000023      0x00000023      0x00000000      0x00230178
(gdb) l *0x610e6ca8
No source file for address 0x610e6ca8.
(gdb) l *0x61087d96
No source file for address 0x61087d96.
(gdb) l *0x6109d24b
No source file for address 0x6109d24b.
(gdb) l *0x61106028
No source file for address 0x61106028.
(gdb) thr 2
[Switching to thread 2 (thread 2212.0xa28)]#0  0x77f8c55d in
ntdll!ZwReadFile ()
   from /cygdrive/f/WINNT/system32/NTDLL.DLL
(gdb) x/200x $esp
0xb2fab4:       0x7c4e660d      0x00000358      0x00000000      0x00000000
0xb2fac4:       0x00000000      0x00b2fafc      0x00b2fb5c      0x00000010
0xb2fad4:       0x00000000      0x00000000      0x00b2fb5c      0x00b2fb54
0xb2fae4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2faf4:       0x00000000      0x7ffddbf8      0x00000000      0x00000010
0xb2fb04:       0x7c4f4d0a      0x610e6ca8      0x00b2fadc      0x01000101
0xb2fb14:       0x00b2ffa4      0x7c4ff0b4      0x7c4e6640      0xffffffff
0xb2fb24:       0x00b2ff84      0x61087d96      0x00000358      0x00b2fb5c
0xb2fb34:       0x00000010      0x00b2fb54      0x00000000      0x00000000
0xb2fb44:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fb54:       0x00000000      0x00000358      0x00000000      0x000008a4
0xb2fb64:       0x00000348      0x00b2fb50      0x0000000c      0x00b2fb78
0xb2fb74:       0x00000000      0x00040001      0x00000000      0x00000000
0xb2fb84:       0x00000000      0x00b2fb8c      0x00580002      0x00000003
0xb2fb94:       0x00240000      0x10000000      0x00000501      0x05000000
0xb2fba4:       0x00000015      0x323e04be      0x2d94e907      0x500cebdb
0xb2fbb4:       0x000001f4      0x00180000      0x10000000      0x00000201
0xb2fbc4:       0x05000000      0x00000020      0x00000220      0x00140000
0xb2fbd4:       0x10000000      0x00000101      0x05000000      0x00000012
0xb2fbe4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fbf4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fc04:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fc14:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fc24:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fc34:       0x00000001      0x7ffdf000      0x00b2fc74      0x00b2fc50
0xb2fc44:       0x6109d24b      0x00000006      0x61106028      0x00000001
0xb2fc54:       0x7ffdf000      0x00b2fc74      0x00b2fc74      0x00b2fc80
0xb2fc64:       0x77f86215      0x77d30000      0x00000002      0x00000000
0xb2fc74:       0x77d37740      0x7ffdf000      0x00234478      0x00b2fd1c
0xb2fc84:       0x77f8f786      0x77d37740      0x77d30000      0x00000002
0xb2fc94:       0x00000000      0x7ffdf000      0x7ffdd000      0x77f84ace
0xb2fca4:       0x77fcf348      0x77f84b98      0x00b2fd30      0x00230178
0xb2fcb4:       0x610e4b40      0x00000000      0x00000000      0x00000000
0xb2fcc4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fcd4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fce4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fcf4:       0x7ffdd000      0x00000000      0x00000000      0x00000000
0xb2fd04:       0x00b2fcac      0x0000021e      0xffffffff      0x77f98191
0xb2fd14:       0x77f84bd8      0xffffffff      0x00000000      0x77fa15d3
0xb2fd24:       0x77fa15db      0x00b2fd30      0x00000001      0x00010017
0xb2fd34:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fd44:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fd54:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fd64:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fd74:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fd84:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fd94:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fda4:       0x00000000      0x00000000      0x00000000      0x00000000
0xb2fdb4:       0x00000000      0x00000000      0x00000000      0x00000038
0xb2fdc4:       0x00000023      0x00000023      0x00000000      0x00230178
(gdb) l *0x610e6ca8
No source file for address 0x610e6ca8.
(gdb) l *0x61087d96
No source file for address 0x61087d96.
(gdb) l *0x61106028
No source file for address 0x61106028.
(gdb) l *0x6109d24b
No source file for address 0x6109d24b.
(gdb) l *0x610e4b40
No source file for address 0x610e4b40.
(gdb) thr 3
[Switching to thread 3 (thread 2212.0x9b0)]#0  0x7c50dfdb in
KERNEL32!DebugActiveProcess ()
   from /cygdrive/f/WINNT/system32/KERNEL32.DLL
(gdb) x/200x $esp
0xb6ffac:       0x77f98191      0xffffffff      0x00b6ffec      0x7c4e987c
0xb6ffbc:       0x00000000      0x03d4fcbc      0x77f98191      0x00000000
0xb6ffcc:       0x7ffdc000      0x03d4fccc      0x00b6ffc0      0x03d4fccc
0xb6ffdc:       0xffffffff      0x7c4ff0b4      0x7c4ed360      0x00000000
0xb6ffec:       0x00000000      0x00000000      0x7c50dfb2      0x00000000
0xb6fffc:       0x00000000      Cannot access memory at address 0xb70000
(gdb)


--END OF MESSAGE--


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


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