Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Hannu E K Nevalainen \(garbage mail\)" To: Subject: RE: Postinstall hangs with bash Date: Wed, 1 Oct 2003 20:48:39 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 > From: Igor Pechtchanski > On Wed, 1 Oct 2003, Hannu E K Nevalainen (garbage mail) wrote: > > > > From: Igor Pechtchanski > > > > > On Wed, 1 Oct 2003, Hannu E K Nevalainen (garbage mail) wrote: > > > > > > > FWIW, if you're able to reproduce the hang, I'd be very interested in > > > seeing the results of the experiments outlined in the above message on > > > your machine... Maybe you could glean something from the > strace output as > > > well. > > > > $ for i in myPostinstall.sh.done myPostinstall2.sh.done > > myPostinstall3.sh.done; do echo -e "\n---" $i "---";cat $i;done > > > > --- myPostinstall.sh.done --- > > #!/bin/bash -x > > echo "$(cygpath -w /)" > > > > --- myPostinstall2.sh.done --- > > #!/bin/sh -x > > bash -c "echo $(cygpath -w /)" > > > > --- myPostinstall3.sh.done --- > > #!/bin/sh -x > > strace -o postinstall.strace bash -c "echo $(cygpath -w /)" > > > > myPostinstall.sh does the "hang". (i.e. the first of your > tests). The other > > two tests works just fine ;-) > > I've attached /postinstall.strace (name as it actually was created) > > Hannu, > > *If* you are able to reproduce the hang... Otherwise the strace is > perfectly normal, and thus a waste of bandwidth... 8-/ I must have been totally "off". > Hmm, I just realized that you can run setup under strace! It won't show > any Windows calls, obviously, but it will show calls to Cygwin programs, > which is what you want, anyway. If you could reproduce the hang under > strace, that output might actually be useful. You should only run the > first script, obviously. > Igor $ mv myPostinstall.sh.done myPostinstall.sh $ rm /postinstall.strace $ strace -o /postinstall.strace /install/setup.exe Hrm... The hang doesn't occur. Checking: $ mv /postinstall.strace /postinstall.strace-nohang $ mv myPostinstall.sh.done myPostinstall.sh $ /install/setup.exe No hang. 8-I Tried strace on postinstall/Xfree-bin-icons.sh - which have been doing the hang. -> No hang. Thinking about file/dir rights settings: With PI/Xfree...sh in mind; $ cygpath -AP /cygdrive/f/Documents and Settings/All Users/Start Menu/Programs $ cd /cygdrive/f/Documents\ and\ Settings/All\ Users/Start\ Menu/Programs/ $ getfacl . # file: . # owner: Administrators # group: SYSTEM user::rwx group::rwx group:Users:r-x group:Power Users:rwx mask:rwx other:r-x default:user:Administrators:--- default:group:SYSTEM:--- default:group:Users:--- default:group:Power Users:rwx default:mask:rwx default:other:--- $ command ls -dlan . drwxrwxr-x+ 12 544 18 4096 Oct 1 20:29 . $ command ls -ldan Cygwin-XFree86/ drwxrwxrwx+ 4 500 513 0 Oct 1 20:04 Cygwin-XFree86/ $ command ls -ldan Cygwin/XFree86/ drwxr-xr-x+ 7 500 513 4096 Sep 30 11:18 Cygwin/XFree86/ $ getfacl Cygwin-XFree86/ # file: Cygwin-XFree86/ # owner: Hannu # group: user user::rwx group::rwx mask:rwx other:rwx default:user::rwx default:group::rwx default:other:rwx $ getfacl Cygwin/XFree86/ # file: Cygwin/XFree86/ # owner: Hannu # group: user user::rwx group::r-x mask:rwx other:r-x default:user::rwx default:group::r-x default:other:r-x $ grep -i hannu /etc/passwd Hannu:unused_by_nt/2000/xp:500:513:U-P450\Hannu,S-1-5-21-842925246-764733703 -1343024091-500:/home/Hannu:/bin/bash Hannu:unused_by_nt/2000/xp:1006:513:U-P450\Hannu,S-1-5-21-842925246-76473370 3-1343024091-1006:/home/Hannu:/bin/bash $ grep -i hannu /etc/group group group-SAFE $ grep -i user /etc/group user:S-1-5-21-842925246-764733703-1343024091-513:513: Power Users:S-1-5-32-547:547: Users:S-1-5-32-545:545: users::544: $ mv XFree86-bin-icons.sh.done XFree86-bin-icons.sh Testing this one again... It hangs. cygpath and one instance of bash is left behind if one hits cancel. Killing cygpath makes them disappear. Any ideas? /Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E -- UTC+01, DST -> UTC+02 -- --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/