This is the mail archive of the
mailing list for the Cygwin project.
RE: Pause with make
- To: "Larry Hall (RFK Partners, Inc)" <lhall at rfk dot com>, cygwin at cygwin dot com
- Subject: RE: Pause with make
- From: Manisha Jain <MJain at docent dot com>
- Date: Mon, 30 Apr 2001 07:34:37 -0700
Thanks for your response.
Interestingly, when I run "strace -o make.stracelog make",
make doesn't pause as long in the directories it used to pause before.
Without strace, make still pauses for long time.
I have attached the systrace log. I wasn't able to get much out
of it. See if you see any error in the way I have my system configured.
Here is part of the log. I had attached the whole log but the message
I think, it's the thread *join*, that is pausing the make
108 23288 [main] sh 1840 mount_info::conv_to_win32_path: =
C:\cygwin\bin\mkdir(rel), C:\cygwin\bin\mkdir(abs) 0xA(flags) =3D =
228 23516 [main] sh 1840 symlink_info::check: GetFileAttributesA =
143 23659 [main] sh 1840 geterrno_from_win_error: windows error 2 =
=3D=3D errno 2
214 23873 [main] sh 1840 symlink_info::check: not a symlink
137 24010 [main] sh 1840 symlink_info::check: 0 =3D symlink.check =
(C:\cygwin\bin\mkdir.exe, 0x241F159) (0xA)
275 24285 [main] sh 1840 path_conv::check: =
GetVolumeInformation(C:\) =3D OK, full_path(C:\cygwin\bin\mkdir.exe), =
559 24844 [main] sh 1840 stat_worker: 32 =3D file_attributes for =
151 24995 [main] sh 1840 fhandler_base::open: =
479 25474 [main] sh 1840 fhandler_base::open: 0xE0 =3D CreateFileA =
(C:\cygwin\bin\mkdir.exe, 0x80000000, 0x7, 0x6108F13C, 0x3, 0x2000080, =
173 25647 [main] sh 1840 fhandler_base::open: filemode set to =
158 25805 [main] sh 1840 fhandler_base::open: 1 =3D =
fhandler_base::open (C:\cygwin\bin\mkdir.exe, 0x110000)
118 25923 [main] sh 1840 fhandler_disk_file::open: 1 =3D =
fhandler_disk_file::open (C:\cygwin\bin\mkdir.exe, 0x110000)
144 26067 [main] sh 1840 fhandler_disk_file::fstat: 1 =3D =
GetFileInformationByHandle (C:\cygwin\bin\mkdir.exe, 224)
143 26210 [main] sh 1840 fhandler_disk_file::fstat: 0 =3D fstat (, =
0x241FB64) st_atime=3D3AE9DAFE st_size=3D23552, st_mode=3D0x81ED, =
119 26329 [main] sh 1840 fhandler_base::close: handle 0xE0
164 26493 [main] sh 1840 stat_worker: 0 =3D stat (/usr/bin/mkdir, =
341 26834 [main] sh 1840 fork: entering
251 27085 [main] sh 1840 subproc_init: started wait_subproc thread =
204 27289 [main] sh 1840 _cygwin_istext_for_stdio: =
127 27416 [main] sh 1840 _cygwin_istext_for_stdio: _cifs: fd not =
111 27527 [main] sh 1840 _cygwin_istext_for_stdio: =
106 27633 [main] sh 1840 _cygwin_istext_for_stdio: _cifs: fd not =
106 27739 [main] sh 1840 _cygwin_istext_for_stdio: =
106 27845 [main] sh 1840 _cygwin_istext_for_stdio: _cifs: fd not =
126 27971 [main] sh 1840 stack_base: bottom 0x2420000, top =
0x420000, stack 0x241F544, size 2748, reserve 33554432
115 28086 [main] sh 1840 fork_parent: CreateProcess =
(C:\cygwin\bin\sh.exe, C:\cygwin\bin\sh.exe, 0, 0, 1, 20, 0, 0, =
709 28795 [proc] sh 1840 wait_subproc: starting
918 29713 [main] sh 1840 proc_subproc: args: 1, 37877156
200 29913 [main] sh 1840 proc_subproc: added pid 2028 to wait list, =
slot 0, winpid 0x7EC, handle 0x128
134 30047 [proc] sh 1840 wait_subproc: looping
124 30171 [main] sh 1840 proc_subproc: returning 1
121 30292 [main] sh 1840 sync_with_child: waiting for child. =
reason: waiting for longjmp, hang_child 1
From: Larry Hall (RFK Partners, Inc) [mailto:firstname.lastname@example.org]
Sent: Friday, April 27, 2001 12:49 PM
To: Manisha Jain; email@example.com
Subject: Re: Pause with make
At 02:00 PM 4/27/2001, Manisha Jain wrote:
>I have this peculiar problem. When I run "make", and I go 4 directories
>deep, make just pauses for 1/2 minute.
>If I change cygwin1.dll to cygwin1.dll ver 1.1.6, the pause is not there.
>make just zip along all the directories.
>I have the latest cygwin (ver 1.3.1). Also others in the engineering group
>does not have the same problem.
>I tries to watch the task manager and nothing much is going on with the
>Uninstall and reinstall of cygwin doesn't help. I know that the problem can
>be anywhere from makefile to somewhere in cygwin.
>The pause is distracting and I don't know how to go about figuring it out.
>Do you have any clues for me?
Try running make with strace, something like the following:
strace -o make.stracelog make
While this is proceeding, open another command window and do the following
from the same directory.
tail -f make.stracelog
When you hit a pause, note what's happening in the strace log file. This
should give you an idea of what Cygwin is doing with the time. If this
doesn't enlighten you, send an annotated version of the log file to the
list. Either way, please report back.
Larry Hall firstname.lastname@example.org
RFK Partners, Inc. http://www.rfk.com
118 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple