setup hangs during postinstall
Steve Fairbairn
steve.fairbairn@perwill.com
Tue Oct 14 16:50:00 GMT 2003
All,
Using the script below, provided by Hannu E K Nevalainen.
--
$ cat /etc/postinstall/t3.sh
#!/bin/bash -x
# CYGWIN_DEBUG=/bin/cygpath
# set CYGWIN_SLEEP=20000
echo -e "CYGWIN_DEBUG=${CYGWIN_DEBUG}\tCYGWIN_SLEEP=${CYGWIN_SLEEP}"
TOPFOLDER="$(cygpath -A -P)/Cygwin-XFree86"
echo $TOPFOLDER
--
I currently have my setup/cygpath is a hung state. To try and help out, I
decided to attach gdb to the process and hopefully see if I could get
anything useful. The first thing I did was a ps -W to obtain a process ID
to attach to, then did from my obj build directory I did 'gdb
/bin/cygpath.exe 1736'
--
Steve Fairbairn@stevefnec ~/obj
$ ps -W
PID PPID PGID WINPID TTY UID STIME COMMAND
4 0 0 4 ? 0 20:24:48 *** unknown ***
480 0 0 480 ? 0 15:51:12
\SystemRoot\System32\smss.exe
644 0 0 644 ? 0 15:51:14
\??\C:\WINDOWS\system32\winlogon.exe
688 0 0 688 ? 0 15:51:15
C:\WINDOWS\system32\services.exe
700 0 0 700 ? 0 15:51:15
C:\WINDOWS\system32\lsass.exe
880 0 0 880 ? 0 15:51:15
C:\WINDOWS\system32\svchost.exe
980 0 0 980 ? 0 15:51:15
C:\WINDOWS\System32\svchost.exe
1328 0 0 1328 ? 0 15:51:16
C:\WINDOWS\system32\spoolsv.exe
1864 0 0 1864 ? 0 15:51:25
C:\WINDOWS\Explorer.EXE
192 0 0 192 ? 0 15:51:28 C:\Program
Files\Sophos SWEEP for NT\SWEEPSRV.SYS
228 0 0 228 ? 0 15:51:29
C:\WINDOWS\System32\igfxtray.exe
232 0 0 232 ? 0 15:51:29
C:\WINDOWS\System32\hkcmd.exe
240 0 0 240 ? 0 15:51:29 C:\Program
Files\Java\j2re1.4.2_01\bin\jusched.exe
264 0 0 264 ? 0 15:51:29 C:\Program Files\MSN
Messenger\MsnMsgr.Exe
312 0 0 312 ? 0 15:51:29 C:\Program
Files\Sophos SWEEP for NT\ICMON.EXE
436 0 0 436 ? 0 15:51:34 C:\Program
Files\Sophos SWEEP for NT\SWUPDATE.EXE
1408 0 0 1408 ? 0 16:05:20 C:\Program
Files\Microsoft Visual Studio\VSS\win32\SSEXP.EXE
936 0 0 936 ? 0 16:05:43 C:\Program
Files\Popcorn\popcorn.exe
1052 0 0 1052 ? 0 16:05:43 C:\Program
Files\Popcorn\popcorn.exe
1128 0 0 1128 ? 0 16:09:53 C:\Program
Files\Microsoft Office\Office\OUTLOOK.EXE
1688 0 0 1688 ? 0 16:09:54 C:\Program
Files\Common Files\System\MAPI\1033\nt\MAPISP32.EXE
640 1 640 640 con 11125 16:22:07 /usr/bin/rxvt
988 0 0 988 ? 0 16:22:07
D:\cygwin\bin\bash.exe
1876 0 0 1876 ? 0 16:25:32
W:\Public\Installs\Installs\Cygwin\setup-2.415.exe
1276 1 1276 1276 con 11125 16:26:02 /usr/bin/sh
I 224 1276 1276 224 con 11125 16:26:02 /usr/bin/bash
164 224 1276 164 con 11125 16:26:02 /usr/bin/cygpath
1736 0 0 1736 ? 0 16:26:03
D:\cygwin\bin\cygpath.exe
448 1 448 448 con 11125 16:27:56 /usr/bin/rxvt
2080 0 0 2080 ? 0 16:27:56
D:\cygwin\bin\bash.exe
3272 1164 3272 3284 0 11125 16:28:30 /usr/bin/ps
3284 0 0 3284 ? 0 16:28:30 D:\cygwin\bin\ps.exe
--
gdb didn't complain, and appeared to attach to the process, but wouldn't
give me a prompt to use. No amount of CTRL-C, CTRL-Z, anything would gain a
response from gdb...
--
Steve Fairbairn@stevefnec ~/obj
$ gdb /bin/cygpath.exe 1736
GNU gdb 2003-09-02-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"...
Attaching to program `/usr/bin/cygpath.exe', process 1736
--
In the end I killed off gdb from another shell, and then did a plain and
simple 'ps'.
--
Steve Fairbairn@stevefnec ~
$ ps
PID PPID PGID WINPID TTY UID STIME COMMAND
640 1 640 640 con 11125 16:22:07 /usr/bin/rxvt
1164 640 1164 988 0 11125 16:22:07 /usr/bin/bash
1276 1 1276 1276 con 11125 16:26:02 /usr/bin/sh
I 224 1276 1276 224 con 11125 16:26:02 /usr/bin/bash
164 224 1276 164 con 11125 16:26:02 /usr/bin/cygpath
1576 1164 1576 904 0 11125 16:27:05 /usr/bin/gdb
448 1 448 448 con 11125 16:27:56 /usr/bin/rxvt
2064 448 2064 2080 1 11125 16:27:56 /usr/bin/bash
2744 2064 2744 2756 1 11125 16:28:01 /usr/bin/ps
--
I'm hoping this is relevant to the people in the know. As you can see, the
cygpath process ID according to this ps has nothing to do with 1736. So,
instead I have attached gdb to the process 164 reported here.
This is giving me a prompt, and I'm sure I can type lots of commands, but my
gdb knowledge is very limited and I don't know what I can request that could
be of any use. My cygwin1.dll and cygpath binaries were built using 'make
CFLAGS_FOR_TARGET=-g CFLAGS=-g > make.log 2>&1' so hopefully has all the
debug information wanted.
I'm leaving everything as is, in case anyone has a set of commands they'd
like run in gdb.
HTH,
Steve Fairbairn
Just for completeness I'll attach the cygcheck requested in the normal
problem reports.
--
-- LONG DISCLAIMER --
*******************************************************
This email has originated from Perwill plc (Registration No. 1906964)
Office registered at: 13A Market Square, Alton, Hampshire, GU34 1UR, UK
Tel: +44 (0)1420 545000
Fax: +44 (0)1420 545001
www.perwill.com
*******************************************************
Privileged, confidential and/or copyright information may be contained
in this email, and is only for the use of the intended addressee.
To copy, forward, disclose or otherwise use it in any way if you are not
the intended recipient or responsible for delivering to him/her is
prohibited.
If you receive this email by mistake, please advise the sender immediately,
by using the reply facility in your email software.
We may monitor the content of emails sent and received via our network
for the purposes of ensuring compliance with policies and procedures.
This message is subject to and does not create or vary any contractual
relationships between Perwill plc and the recipient.
*******************************************************
Any opinions expressed in the email are those of the sender and not
necessarily of Perwill plc.
*******************************************************
This email has been scanned for known viruses using
McAfee WebShield 4.5 MR1a
*******************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 34261 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20031014/8ab18f1b/attachment.obj>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list