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


> I know this is acting a lot but would you be willing to use the
> SysInternals "Process Explorer" process to see if you can see anything
> funny about the DLLs that are loaded in the hung cygpath?
> 
> http://sysinternals.com/ntw2k/freeware/procexp.shtml
> 
> Or, actually anyone who's experiencing the problem could provide this
> info.  It would be interesting to see if the DLLs that a process are
> using look "funny" where "funny" would mean coming from a non system
> directory.

Hope this helps some...

-Samrobb

----------------------------------------

On my machine (debug version of cygwin1.dll and cygpath.exe built last week):

----------------------------------------

$ ps
      PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
      760       1     760        760  con 11626 15:16:04 /usr/bin/bash
     1296       1    1296       1296  con 11626 15:17:24 /usr/bin/sh
I     996    1296    1296        996  con 11626 15:17:25 /usr/bin/bash
     1224     996    1296       1224  con 11626 15:17:25 /usr/bin/cygpath
     1312     760    1312       1304  con 11626 15:17:41 /usr/bin/ps

sam.robb@claus /tmp
$ gdb --pid=1224
GNU gdb 5.3
Copyright 2002 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".
Attaching to process 1224
[Switching to thread 1224.0x50c]
(gdb) list
1       ../../../../src/winsup/cygwin/assert.cc: No such file or directory.
        in ../../../../src/winsup/cygwin/assert.cc
(gdb) where
#0  0x77fa144c in _system_dlls__ ()
#1  0x7c4e987c in _system_dlls__ ()
(gdb) info threads
* 3 thread 1224.0x50c  0x77fa144c in _system_dlls__ ()
  2 thread 1224.0x2e4  0x77f8c55d in _system_dlls__ ()
  1 thread 1224.0x4c0  0x77f9323e in _system_dlls__ ()
(gdb) thread 3
[Switching to thread 3 (thread 1224.0x50c)]#0  0x77fa144c in _system_dlls__ ()
(gdb) info stack
#0  0x77fa144c in _system_dlls__ ()
#1  0x7c4e987c in _system_dlls__ ()
(gdb) thread 2
[Switching to thread 2 (thread 1224.0x2e4)]#0  0x77f8c55d in _system_dlls__ ()
(gdb) info stack
#0  0x77f8c55d in _system_dlls__ ()
#1  0x6108acf6 in wait_sig(void*) (self=0x610e9b40)
    at ../../../../src/winsup/cygwin/sigproc.cc:1089
#2  0x61002d6e in cygthread::stub(void*) (arg=0x610e9b40)
    at ../../../../src/winsup/cygwin/cygthread.cc:69
#3  0x7c4e987c in _system_dlls__ ()
(gdb) thread 1
[Switching to thread 1 (thread 1224.0x4c0)]#0  0x77f9323e in _system_dlls__ ()
(gdb) info stack
#0  0x77f9323e in _system_dlls__ ()
#1  0x7c4fabfb in _system_dlls__ ()
#2  0x6108d7df in spawn_guts(char const*, char const* const*, char const* const*, int) (prog_arg=0xa04d1b0 "/usr/bin/cygpath", argv=0xa04d
0, envp=0xa04c280,
    mode=3) at ../../../../src/winsup/cygwin/spawn.cc:847
#3  0x6108ea3e in spawnve (mode=3, path=0xa04d1b0 "/usr/bin/cygpath",
    argv=0xa04d110, envp=0xa04c280)
    at ../../../../src/winsup/cygwin/spawn.cc:976
#4  0x61026e7b in execve (path=0xa04d1b0 "/usr/bin/cygpath", argv=0xa04d110,
    envp=0xa04c280) at ../../../../src/winsup/cygwin/exec.cc:35
#5  0x004143c5 in ?? ()
#6  0x0041419f in ?? ()
#7  0x00412f92 in ?? ()
#8  0x0041016f in ?? ()
#9  0x0044cb91 in ?? ()
#10 0x004253b1 in ?? ()
#11 0x00427a1d in ?? ()
#12 0x004285a3 in ?? ()
#13 0x004283ca in ?? ()
#14 0x004235c0 in ?? ()
#15 0x00423681 in ?? ()
#16 0x004236da in ?? ()
#17 0x0042333e in ?? ()
#18 0x00422eec in ?? ()
#19 0x00422f89 in ?? ()
#20 0x00429274 in ?? ()
#21 0x00428b99 in ?? ()
#22 0x00412db6 in ?? ()
#23 0x0041016f in ?? ()
#24 0x0040fb94 in ?? ()
#25 0x00403a09 in ?? ()
#26 0x0040195f in ?? ()
#27 0x610050c8 in dll_crt0_1() () at ../../../../src/winsup/cygwin/dcrt0.cc:793
#28 0x6100539d in _dll_crt0 () at ../../../../src/winsup/cygwin/dcrt0.cc:921
#29 0x0047b901 in ?? ()
#30 0x0040103c in ?? ()
#31 0x7c4e87f5 in _system_dlls__ ()
(gdb) info shared
DLL Name                                 Load Address
/cygdrive/c/WINNT/system32/NTDLL.DLL     77f81000
/usr/bin/cygwin1.dll                     61001000
/cygdrive/c/WINNT/system32/KERNEL32.DLL  7c4e1000
/cygdrive/c/WINNT/system32/USER32.DLL    77e11000
/cygdrive/c/WINNT/system32/GDI32.DLL     77f41000
/cygdrive/c/WINNT/system32/ADVAPI32.DLL  7c2d1000
/cygdrive/c/WINNT/system32/rpcrt4.dll    77d31000

----------------------------------------

Process	PID	CPU	Description	Company Name	Path
System Idle Process	0	97			
 System	8	00			
  SMSS.EXE	156	00	Windows NT Session Manager	Microsoft Corporation	C:\WINNT\system32\SMSS.EXE
   CSRSS.EXE	180	01	Client Server Runtime Process	Microsoft Corporation	C:\WINNT\system32\CSRSS.EXE
   WINLOGON.EXE	216	00	Windows NT Logon Application	Microsoft Corporation	C:\WINNT\system32\WINLOGON.EXE
    SERVICES.EXE	244	00	Services and Controller app	Microsoft Corporation	C:\WINNT\system32\SERVICES.EXE
     ibmpmsvc.exe	356	00			C:\WINNT\system32\ibmpmsvc.exe
     svchost.exe	456	00	Generic Host Process for Win32 Services	Microsoft Corporation	C:\WINNT\system32\svchost.exe
     spoolsv.exe	484	00	Spooler SubSystem App	Microsoft Corporation	C:\WINNT\system32\spoolsv.exe
     svchost.exe	520	00	Generic Host Process for Win32 Services	Microsoft Corporation	C:\WINNT\system32\svchost.exe
     WinMgmt.exe	616	00	Windows Management Instrumentation	Microsoft Corporation	C:\WINNT\system32\wbem\WinMgmt.exe
     svchost.exe	696	00	Generic Host Process for Win32 Services	Microsoft Corporation	C:\WINNT\system32\svchost.exe
    LSASS.EXE	256	00	LSA Executable and Server DLL (Export Version)	Microsoft Corporation	C:\WINNT\system32\LSASS.EXE
explorer.exe	464	00	Windows Explorer	Microsoft Corporation	C:\WINNT\explorer.exe
 tp4mon.exe	840	00	IBM TrackPoint Application	IBM	C:\WINNT\system32\tp4mon.exe
 PROMon.exe	912	00	Intel(R) PROSet Tray Icon	Intel Corporation	C:\WINNT\system32\PROMon.exe
 ltmsg.exe	888	00	ltmsg	LUCENT TECHNOLOGIES	C:\WINNT\system32\ltmsg.exe
 qttask.exe	876	00		Apple Computer, Inc.	C:\Program Files\QuickTime\qttask.exe
 OUTLOOK.EXE	884	00	Microsoft Outlook	Microsoft Corporation	C:\Program Files\Microsoft Office\Office\OUTLOOK.EXE
  MAPISP32.EXE	820	00	Microsoft Windows(TM) Messaging Subsystem Spooler	Microsoft Corporation	C:\Program Files\Common Files\System\Mapi\1033\NT\MAPISP32.EXE
 procexp.exe	1284	01	Sysinternals Process Explorer	Sysinternals	C:\Shared\Tools\Bin\procexpnt\procexp.exe
setup.exe	1224	00			C:\Program Files\Cygwin Setup\setup.exe
 sh.exe	664	00			c:\cygwin\bin\sh.exe
  bash.exe	1216	00			c:\cygwin\bin\bash.exe
   bash.exe	1232	00			c:\cygwin\bin\bash.exe
    cygpath.exe	1280	01			c:\cygwin\bin\cygpath.exe

----------------------------------------

Following the process tree from setup.exe:

----------------------------------------

Process: setup.exe Pid: 1224

Path	Description	Company Name	Version
C:\Program Files\Cygwin Setup\setup.exe			
C:\WINNT\system32\activeds.dll	ADs Router Layer DLL	Microsoft Corporation	5.00.2195.6601
C:\WINNT\system32\adsldpc.dll	ADs LDAP Provider C DLL	Microsoft Corporation	5.00.2195.6701
C:\WINNT\system32\ADVAPI32.DLL	Advanced Windows 32 Base API	Microsoft Corporation	5.00.2195.6710
C:\WINNT\system32\comctl32.dll	Common Controls Library	Microsoft Corporation	5.81.4916.0400
C:\WINNT\system32\ctype.nls			
C:\WINNT\system32\DHCPCSVC.DLL	DHCP Client Service	Microsoft Corporation	5.00.2195.6685
C:\WINNT\system32\dnsapi.dll	DNS Client API DLL	Microsoft Corporation	5.00.2195.6680
C:\WINNT\system32\GDI32.DLL	GDI Client DLL	Microsoft Corporation	5.00.2195.6660
C:\WINNT\system32\icmp.dll	ICMP DLL	Microsoft Corporation	5.00.2134.0001
C:\WINNT\system32\IPHLPAPI.DLL	IP Helper API	Microsoft Corporation	5.00.2195.6602
C:\WINNT\system32\KERNEL32.DLL	Windows NT BASE API Client DLL	Microsoft Corporation	5.00.2195.6688
C:\WINNT\system32\locale.nls			
C:\WINNT\system32\mprapi.dll	Windows NT MP Router Administration DLL	Microsoft Corporation	5.00.2181.0001
C:\WINNT\system32\msafd.dll	Microsoft Windows Sockets 2.0 Service Provider	Microsoft Corporation	5.00.2195.6602
C:\WINNT\system32\msvcrt.dll	Microsoft (R) C Runtime Library	Microsoft Corporation	6.01.9844.0000
C:\WINNT\system32\NETAPI32.DLL	Net Win32 API DLL	Microsoft Corporation	5.00.2195.6601
C:\WINNT\system32\netrap.dll	Net Remote Admin Protocol DLL	Microsoft Corporation	5.00.2134.0001
C:\WINNT\system32\NTDLL.DLL	NT Layer DLL	Microsoft Corporation	5.00.2195.6685
C:\WINNT\system32\OLE32.DLL	Microsoft OLE for Windows	Microsoft Corporation	5.00.2195.6810
C:\WINNT\system32\OLEAUT32.DLL		Microsoft Corporation	2.40.4522.0000
C:\WINNT\system32\rasadhlp.dll	Remote Access AutoDial Helper	Microsoft Corporation	5.00.2168.0001
C:\WINNT\system32\RASAPI32.DLL	Remote Access API	Microsoft Corporation	5.00.2195.6625
C:\WINNT\system32\RASMAN.DLL	Remote Access Connection Manager	Microsoft Corporation	5.00.2195.6738
C:\WINNT\system32\RNR20.DLL	Windows Socket2 NameSpace DLL	Microsoft Corporation	5.00.2195.6603
C:\WINNT\system32\rpcrt4.dll	Remote Procedure Call Runtime	Microsoft Corporation	5.00.2195.6802
C:\WINNT\system32\rtutils.dll	Routing Utilities	Microsoft Corporation	5.00.2168.0001
C:\WINNT\system32\samlib.dll	SAM Library DLL	Microsoft Corporation	5.00.2195.6666
C:\WINNT\system32\secur32.dll	Security Support Provider Interface	Microsoft Corporation	5.00.2195.6695
C:\WINNT\system32\SETUPAPI.DLL	Windows Setup API	Microsoft Corporation	5.00.2195.6622
C:\WINNT\system32\SHELL32.DLL	Windows Shell Common Dll	Microsoft Corporation	5.00.3700.6705
C:\WINNT\system32\shim.dll	Shim Engine DLL	Microsoft Corporation	5.00.2195.6717
C:\WINNT\system32\SHLWAPI.DLL	Shell Light-weight Utility Library	Microsoft Corporation	6.00.2800.1226
C:\WINNT\system32\sortkey.nls			
C:\WINNT\system32\sorttbls.nls			
C:\WINNT\system32\TAPI32.DLL	Microsoft® Windows(TM) Telephony API Client DLL	Microsoft Corporation	5.00.2195.6664
C:\WINNT\system32\unicode.nls			
C:\WINNT\system32\USER32.DLL	Windows 2000 USER API Client DLL	Microsoft Corporation	5.00.2195.6688
C:\WINNT\system32\USERENV.DLL	Userenv	Microsoft Corporation	5.00.2195.6711
C:\WINNT\system32\winrnr.dll	LDAP RnR Provider DLL	Microsoft Corporation	5.00.2160.0001
C:\WINNT\system32\WLDAP32.DLL	Win32 LDAP API DLL	Microsoft Corporation	5.00.2195.6666
C:\WINNT\system32\ws2_32.dll	Windows Socket 2.0 32-Bit DLL	Microsoft Corporation	5.00.2195.6601
C:\WINNT\system32\ws2help.dll	Windows Socket 2.0 Helper for Windows NT	Microsoft Corporation	5.00.2134.0001
C:\WINNT\system32\wshtcpip.dll	Windows Sockets Helper DLL	Microsoft Corporation	5.00.2195.6601
C:\WINNT\system32\wsock32.dll	Windows Socket 32-Bit DLL	Microsoft Corporation	5.00.2195.6603

Process: sh.exe Pid: 664

Path	Description	Company Name	Version
c:\cygwin\bin\cygwin1.dll	Cygwin® POSIX Emulation DLL	Red Hat	1005.05.0000.0000
c:\cygwin\bin\sh.exe			
C:\WINNT\system32\ADVAPI32.DLL	Advanced Windows 32 Base API	Microsoft Corporation	5.00.2195.6710
C:\WINNT\system32\GDI32.DLL	GDI Client DLL	Microsoft Corporation	5.00.2195.6660
C:\WINNT\system32\KERNEL32.DLL	Windows NT BASE API Client DLL	Microsoft Corporation	5.00.2195.6688
C:\WINNT\system32\locale.nls			
C:\WINNT\system32\NTDLL.DLL	NT Layer DLL	Microsoft Corporation	5.00.2195.6685
C:\WINNT\system32\rpcrt4.dll	Remote Procedure Call Runtime	Microsoft Corporation	5.00.2195.6802
C:\WINNT\system32\sortkey.nls			
C:\WINNT\system32\sorttbls.nls			
C:\WINNT\system32\unicode.nls			
C:\WINNT\system32\USER32.DLL	Windows 2000 USER API Client DLL	Microsoft Corporation	5.00.2195.6688

Process: bash.exe Pid: 1216

Path	Description	Company Name	Version
c:\cygwin\bin\bash.exe			
c:\cygwin\bin\cygwin1.dll	Cygwin® POSIX Emulation DLL	Red Hat	1005.05.0000.0000
C:\WINNT\system32\activeds.dll	ADs Router Layer DLL	Microsoft Corporation	5.00.2195.6601
C:\WINNT\system32\adsldpc.dll	ADs LDAP Provider C DLL	Microsoft Corporation	5.00.2195.6701
C:\WINNT\system32\ADVAPI32.DLL	Advanced Windows 32 Base API	Microsoft Corporation	5.00.2195.6710
C:\WINNT\system32\comctl32.dll	Common Controls Library	Microsoft Corporation	5.81.4916.0400
C:\WINNT\system32\ctype.nls			
C:\WINNT\system32\DHCPCSVC.DLL	DHCP Client Service	Microsoft Corporation	5.00.2195.6685
C:\WINNT\system32\dnsapi.dll	DNS Client API DLL	Microsoft Corporation	5.00.2195.6680
C:\WINNT\system32\GDI32.DLL	GDI Client DLL	Microsoft Corporation	5.00.2195.6660
C:\WINNT\system32\icmp.dll	ICMP DLL	Microsoft Corporation	5.00.2134.0001
C:\WINNT\system32\IPHLPAPI.DLL	IP Helper API	Microsoft Corporation	5.00.2195.6602
C:\WINNT\system32\KERNEL32.DLL	Windows NT BASE API Client DLL	Microsoft Corporation	5.00.2195.6688
C:\WINNT\system32\locale.nls			
C:\WINNT\system32\mprapi.dll	Windows NT MP Router Administration DLL	Microsoft Corporation	5.00.2181.0001
C:\WINNT\system32\msvcrt.dll	Microsoft (R) C Runtime Library	Microsoft Corporation	6.01.9844.0000
C:\WINNT\system32\NETAPI32.DLL	Net Win32 API DLL	Microsoft Corporation	5.00.2195.6601
C:\WINNT\system32\netrap.dll	Net Remote Admin Protocol DLL	Microsoft Corporation	5.00.2134.0001
C:\WINNT\system32\NTDLL.DLL	NT Layer DLL	Microsoft Corporation	5.00.2195.6685
C:\WINNT\system32\OLE32.DLL	Microsoft OLE for Windows	Microsoft Corporation	5.00.2195.6810
C:\WINNT\system32\OLEAUT32.DLL		Microsoft Corporation	2.40.4522.0000
C:\WINNT\system32\RASAPI32.DLL	Remote Access API	Microsoft Corporation	5.00.2195.6625
C:\WINNT\system32\RASMAN.DLL	Remote Access Connection Manager	Microsoft Corporation	5.00.2195.6738
C:\WINNT\system32\RNR20.DLL	Windows Socket2 NameSpace DLL	Microsoft Corporation	5.00.2195.6603
C:\WINNT\system32\rpcrt4.dll	Remote Procedure Call Runtime	Microsoft Corporation	5.00.2195.6802
C:\WINNT\system32\rtutils.dll	Routing Utilities	Microsoft Corporation	5.00.2168.0001
C:\WINNT\system32\samlib.dll	SAM Library DLL	Microsoft Corporation	5.00.2195.6666
C:\WINNT\system32\secur32.dll	Security Support Provider Interface	Microsoft Corporation	5.00.2195.6695
C:\WINNT\system32\SETUPAPI.DLL	Windows Setup API	Microsoft Corporation	5.00.2195.6622
C:\WINNT\system32\SHLWAPI.DLL	Shell Light-weight Utility Library	Microsoft Corporation	6.00.2800.1226
C:\WINNT\system32\sortkey.nls			
C:\WINNT\system32\sorttbls.nls			
C:\WINNT\system32\TAPI32.DLL	Microsoft® Windows(TM) Telephony API Client DLL	Microsoft Corporation	5.00.2195.6664
C:\WINNT\system32\unicode.nls			
C:\WINNT\system32\USER32.DLL	Windows 2000 USER API Client DLL	Microsoft Corporation	5.00.2195.6688
C:\WINNT\system32\USERENV.DLL	Userenv	Microsoft Corporation	5.00.2195.6711
C:\WINNT\system32\winrnr.dll	LDAP RnR Provider DLL	Microsoft Corporation	5.00.2160.0001
C:\WINNT\system32\WLDAP32.DLL	Win32 LDAP API DLL	Microsoft Corporation	5.00.2195.6666
C:\WINNT\system32\ws2_32.dll	Windows Socket 2.0 32-Bit DLL	Microsoft Corporation	5.00.2195.6601
C:\WINNT\system32\ws2help.dll	Windows Socket 2.0 Helper for Windows NT	Microsoft Corporation	5.00.2134.0001
C:\WINNT\system32\wsock32.dll	Windows Socket 32-Bit DLL	Microsoft Corporation	5.00.2195.6603

Process: bash.exe Pid: 1232

Path	Description	Company Name	Version
c:\cygwin\bin\bash.exe			
c:\cygwin\bin\cygwin1.dll	Cygwin® POSIX Emulation DLL	Red Hat	1005.05.0000.0000
C:\WINNT\system32\ADVAPI32.DLL	Advanced Windows 32 Base API	Microsoft Corporation	5.00.2195.6710
C:\WINNT\system32\GDI32.DLL	GDI Client DLL	Microsoft Corporation	5.00.2195.6660
C:\WINNT\system32\KERNEL32.DLL	Windows NT BASE API Client DLL	Microsoft Corporation	5.00.2195.6688
C:\WINNT\system32\locale.nls			
C:\WINNT\system32\NTDLL.DLL	NT Layer DLL	Microsoft Corporation	5.00.2195.6685
C:\WINNT\system32\rpcrt4.dll	Remote Procedure Call Runtime	Microsoft Corporation	5.00.2195.6802
C:\WINNT\system32\sortkey.nls			
C:\WINNT\system32\sorttbls.nls			
C:\WINNT\system32\unicode.nls			
C:\WINNT\system32\USER32.DLL	Windows 2000 USER API Client DLL	Microsoft Corporation	5.00.2195.6688

Process: cygpath.exe Pid: 1280

Path	Description	Company Name	Version
<Unable to query process module information>			
C:\WINNT\system32\locale.nls			
C:\WINNT\system32\sortkey.nls			
C:\WINNT\system32\sorttbls.nls			
C:\WINNT\system32\unicode.nls		

----------------------------------------

Handle information for cygpath.exe:

----------------------------------------

Process: cygpath.exe Pid: 1280

Type	Name
Desktop	\Default
Directory	\Windows
Directory	\KnownDlls
File	\Device\Afd\Endpoint
File	C:\cygwin
File	\Device\NamedPipe\Win32Pipes.000004c0.00000001
File	C:\cygwin\var\log\setup.log.postinstallXa00660
File	\Device\NamedPipe\Win32Pipes.000004c0.00000001
Key	HKLM
Mutant	\BaseNamedObjects\DBWinMutex
Process	bash.exe(1232)
Process	bash.exe(1232)
Process	bash.exe(1216)
Section	\BaseNamedObjects\cygpid.4D0
Section	\BaseNamedObjects\cygwin1S3.S-1-5-21-313501798-2004386012-1271835937-1626.27
Section	\BaseNamedObjects\cygwin1S3.shared.3
WindowStation	\Windows\WindowStations\WinSta0
WindowStation	\Windows\WindowStations\WinSta0

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