Mail Archives: cygwin/2003/10/14/17:25:14
> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> Of Christopher Faylor
> Sent: Tuesday, October 14, 2003 10:20 PM
> To: cygwin AT cygwin DOT com
> Subject: Re: setup hangs during postinstall
>
>
> On Tue, Oct 14, 2003 at 02:13:44PM -0500, Brian Ford wrote:
> >FOO=`cygpath -S < /dev/null`
> >does not hang.
>
> I forget have you tried making this:
>
> FOO=`strace -owhereever cygpath -S`
>
> I seem to recall that this worked ok but I can't find this
> usage anywhere in this neverending thread.
>
> cgf
I have not managed to get output from a strace call like the one above.
FWIW:
A snippet of strace output from an earlier posting of mine.
This is PART of the output of scripting *similar* to:
$ cat etc/postinstall/t2.sh
#!/bin/sh
strace -o /t3.strace bash -c /t3.sh
$ cat /t3.sh
BLAH=$(cygpath -A -P)
This means:
$ find -type f | xargs grep -n 'spawned windows pid'
./spawn.cc:834: sigproc_printf ("spawned windows pid %d", pi.dwProcessId);
...that is one of the last things that happens before the hang.
i.e. just telling the same that you already know.
<snip>
478 714604 [main] bash 2348 build_env: envp 0x61600CB4, envc 56
16907 731511 [main] bash 2348 spawn_guts: 2348 = spawn_guts
(/usr/bin/cygpath, C:\Program\cygwin\bin\cygpath.ex
e -A -P)
328 731839 [main] bash 2348! fhandler_base::close: closing '/dev/piper'
handle 0x248
304 732143 [main] bash 2348! fhandler_base::close: closing '/dev/pipew'
handle 0x228
3311 735454 [main] bash 2348! fhandler_base::close: closing
'/var/log/setup.log.postinstallXa00364' handle 0x3
54
508 735962 [main] bash 2348! spawn_guts: spawned windows pid 2344
--- split --
It is here the cygpath "hang" is active...
It continues below after a "kill -9 ..."
--- split --
70578826 71314788 [sig] bash 2348! wait_sig: awake, rc 2
418 71315206 [sig] bash 2348! wait_sig: processing signal 9
249 71315455 [sig] bash 2348! wait_sig: Got signal 9
240 71315695 [sig] bash 2348! sig_handle: signal 9
271 71315966 [sig] bash 2348! sig_handle: signal 9, about to call do_exit
588 71316554 [sig] bash 2348! signal_exit: terminating captive process
259 71316813 [sig] bash 2348! signal_exit: about to call do_exit (10900)
248 71317061 [sig] bash 2348! do_exit: do_exit (67840)
238 71317299 [sig] bash 2348! void: 0x0 = signal (20, 0x1)
236 71317535 [sig] bash 2348! void: 0x0 = signal (1, 0x1)
234 71317769 [sig] bash 2348! void: 0x0 = signal (2, 0x1)
236 71318005 [sig] bash 2348! void: 0x0 = signal (3, 0x1)
240 71318245 [sig] bash 2348! sigproc_terminate: entering
340 71318585 [sig] bash 2348! proc_terminate: nchildren 0, nzombies 0
239 71318824 [sig] bash 2348! proc_terminate: leaving
444 71319268 [sig] bash 2348! __to_clock_t: dwHighDateTime 0,
dwLowDateTime 100144
241 71319509 [sig] bash 2348! __to_clock_t: total 00000000 0000000A
239 71319748 [sig] bash 2348! __to_clock_t: dwHighDateTime 0,
dwLowDateTime 400576
238 71319986 [sig] bash 2348! __to_clock_t: total 00000000 00000028
3325 71323311 [sig] bash 2348! _pinfo::exit: Calling ExitProcess 67840
70664047 71329926 [proc] bash 1116 proc_subproc: args: 2, 0
<snip>
/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/
- Raw text -