Postinstall hangs with bash
Hannu E K Nevalainen (garbage mail)
garbage_collector@telia.com
Wed Oct 1 23:56:00 GMT 2003
> Hannu,
>
> Can you reproduce the hang under strace? If so, try to make a copy of the
> hanging script (and the one it calls) and pare them down to one or two
> commands (they should still reproduce the hang, though). Once you have
> that, please attach the strace output from the simple script.
> Igor
Running setup.exe from bash, or with strace, eliminates the problem. My
experience is that setup MUST be run from Explorer.
I've attached stripped down versions of Xfree-bin-icons.sh (and related
scripts).
I can reproduce it like this:
- Put "part1.sh" in /etc/postinstall
- put "part[23].sh" in /
- ...and run setup.exe from Explorer
Choose
- Leave virus scanner alone (I have F-secure)
- Install from local dir
- Select root install dir
Root dir "C:\Program\cygwin"
For All users
Unix text file type
- LPD: G:\cygwin-downloads
<parses ini file>
<checks MD5 sums - EVERY TIME. Is this REALLY necessary?>
- Select packages
* Curr
All @ Default
[ Next ]
When the "part1.sh" script gets executed, it hangs... which can look like
this from bash (in rxvt):
Hannu@P450 /etc/postinstall bash (P)PID=(380)2296, s=0
$ mv part1.sh.done part1.sh
<setup run, part1 hangs>
$ ps -a
PID PPID PGID WINPID TTY UID STIME COMMAND
380 1 380 880 con 500 15:59:28 /usr/bin/rxvt
2296 380 2296 2392 0 500 15:59:28 /usr/bin/bash
2220 1 2220 2220 con 500 23:21:00 /usr/bin/sh
768 2220 2220 768 con 500 23:21:00 /usr/bin/sh
I 2516 768 2220 2516 con 500 23:21:00 /usr/bin/bash
780 2516 2220 780 con 500 23:21:00 /usr/bin/bash
2532 780 2220 2532 con 500 23:21:01 /usr/bin/cygpath
1976 2296 1976 2388 0 500 23:21:13 /usr/bin/ps
<cancel setup>
$ kill -9 2532
$ ps -a
PID PPID PGID WINPID TTY UID STIME COMMAND
380 1 380 880 con 500 15:59:28 /usr/bin/rxvt
2296 380 2296 2392 0 500 15:59:28 /usr/bin/bash
2244 2296 2244 768 0 500 23:21:44 /usr/bin/ps
$ mv part1.sh.done part1.sh
mv: cannot stat `part1.sh.done': No such file or directory
$ tail /var/log/setup.log.full
2003/10/01 23:20:59 XFree86-vfb
2003/10/01 23:20:59 XFree86-xwinclip
2003/10/01 23:20:59 xinetd
2003/10/01 23:20:59 xmlto
2003/10/01 23:20:59 xpm-nox
2003/10/01 23:20:59 zip
2003/10/01 23:20:59 zsh
2003/10/01 23:21:00 running: C:\Program\cygwin\bin\sh.exe -c
/etc/postinstall/part1.sh
2003/10/01 23:21:08 mbox note: Nothing needed to be installed
2003/10/01 23:21:10 Ending cygwin install
This is with ONE extra bash+rxvt running while the test is done. No other
cygwin tasks exist at test time.
-- attempt from bash, this doesn't hang --
Hannu@P450 /etc/postinstall bash (P)PID=(380)2296, s=1
$ mv part1.sh.done part1.sh
mv: cannot stat `part1.sh.done': No such file or directory
$ /install/setup.exe
<same as above>
$ tail /var/log/setup.log.full
2003/10/01 23:32:41 xinetd
2003/10/01 23:32:41 xmlto
2003/10/01 23:32:41 xpm-nox
2003/10/01 23:32:41 zip
2003/10/01 23:32:41 zsh
2003/10/01 23:32:41 running: C:\Program\cygwin\bin\sh.exe -c
/etc/postinstall/part1.sh
-/cygdrive/f/Documents and Settings/All Users/Start
Menu/Programs/Cygwin-XFree86-
part1, id: uid=500(Hannu) gid=513(user)
groups=544(Administrators),513(user),545(Users)
2003/10/01 23:32:46 mbox note: Nothing needed to be installed
2003/10/01 23:32:47 Ending cygwin install
<shrug> :-L - I'm going to bed now.
BTW: setup - "Create icon on Desktop" is not remembered, I was wrong before.
/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02 --
--END OF MESSAGE--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part1.sh
Type: application/octet-stream
Size: 137 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20031001/0bec5661/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part2.sh
Type: application/octet-stream
Size: 155 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20031001/0bec5661/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part3.sh
Type: application/octet-stream
Size: 2503 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20031001/0bec5661/attachment-0002.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