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 23:36:43 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0017_01C38874.DF561390" X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Note-from-DJ: This may be spam ------=_NextPart_000_0017_01C38874.DF561390 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit > 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 - 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 AT P450 /etc/postinstall bash (P)PID=(380)2296, s=0 $ mv part1.sh.done part1.sh $ 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 $ 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 AT 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 $ 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 :-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-- ------=_NextPart_000_0017_01C38874.DF561390 Content-Type: application/octet-stream; name="part1.sh" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="part1.sh" #!/bin/sh=0A= =0A= # Run the script to create icons for XFree86 programs=0A= # Tried: strace -o /part2.strace ...=0A= /part2.sh=0A= =0A= echo "part1, id: `id`"=0A= =0A= ------=_NextPart_000_0017_01C38874.DF561390 Content-Type: application/octet-stream; name="part2.sh" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="part2.sh" #! /bin/bash=0A= =0A= . /part3.sh=0A= =0A= echo "-${TOPFOLDER}-"=0A= =0A= # for (( i=3D0 ; $i <50; i=3D$(( $i + 1 )) ))=0A= # do=0A= # ii=3D"000$i"=0A= # echo ${ii: -3} ${X11proggies[$i]}=0A= # done=0A= ------=_NextPart_000_0017_01C38874.DF561390 Content-Type: application/octet-stream; name="part3.sh" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="part3.sh" # Yo! Emacs! Edit this in -*- shell-script -*- mode! # This is the root for the icon creation. TOPFOLDER=3D"$(cygpath -A -P)/Cygwin-XFree86" #format of an entry here: #executable name:Description:sub-folder:which function to call:icon = offset:arguments #If the sub-folder is empty, then the icon will be placed in $TOPFOLDER #the "function to call" should be either xapp or tapp #If the program provides its own icon in the executable, this is the = offset for it (0 based) #The arguments (if any) will be appended to the command. X11proggies=3D( bitmap:"Bitmap Editor"::xapp:: dpsexec:"Display PostScript command interface":Tools:tapp:: dpsinfo:"The Display PostScript extension":Information:tapp:: editres:"Xaw resource editor":Tools:xapp:: fc-list:"List available FreeType fonts":Information:tapp:: glxgears:"Gear Demo":Toys:xapp:: glxinfo:"GLX information":Information:tapp:: ico:"Bouncing Icosohedron":Toys:xapp:: oclock:"Shaped Clock"::xapp:: showrgb:"List rgb database":Information:tapp:: texteroids:"DPS demo asteroids game":Games:xapp:: viewres:"Xaw resource viewer":Tools:xapp:: vncviewer:"VNC viewer client"::xapp:: wmagnify:"magnifying glass":Tools:xapp:: xbiff:"mail checker"::xapp:: xcalc:"Calculator"::xapp:: xclock:"Clock"::xapp:: xconsole:"Console":Tools:xapp:: xcutsel:"Clipboard manipulator":Tools:xapp:: xditview:"Ditroff output viewer"::xapp:: xdpyinfo:"Display information":Information:tapp:: xdvi:"DVI viewer"::xapp:: xedit:"Simple file editor":Editors:xapp:: xev:"X11 event debugger":Tools:xapp:: xeyes:"Watches the Mouse":Toys:xapp:: xfontsel:"Pick a font":Tools:tapp:: xfsinfo:"The font server":Information:tapp:: xgc:"X11 demo":Toys:xapp:: xkill:"Kill an X11 window":Tools:xapp:: xlogo:"Display the X11 logo":Toys:xapp:: xlsatoms:"List available atoms":Information:tapp:: xlsclients:"List all connected clients":Information:tapp:: xlsfonts:"List all available fonts":Information:tapp:: xmag:"Magnifying glass":Tools:xapp:: xman:"Manual page reader"::xapp:: xmh:"GUI for the MH mail system"::xapp:: xprop:"Display the propertis of a window":Information:tapp:: xrefresh:"Refresh all X11 clients":Tools:xapp:: xterm:"X Terminal"::xapp:: xtrapinfo:"The TRAP extension":Information:tapp:: xvinfo:"The X-Video Extension":Information:tapp:: xwd:"Dump X11 window image to file":Tools:tapp:: xwininfo:"A single window":Information:tapp:: gvim:"GUI for VIM":Editors:xapp:: emacs:"Emacs":Editors:xapp:: xemacs:"XEmacs":Editors:xapp:0: idle:"Python IDE":Tools:xapp:: rxvt:"RXVT"::xapp:0: ) ------=_NextPart_000_0017_01C38874.DF561390 Content-Type: text/plain; charset=us-ascii -- 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/ ------=_NextPart_000_0017_01C38874.DF561390--