delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/04/10:30:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <40210EA0.8070504@scytek.de>
Date: Wed, 04 Feb 2004 10:24:16 -0500
From: Volker Quetschke <quetschke AT scytek DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Program randomly hangs after upgrading to cygwin 1.5.7
References: <BAY12-DAV639DYccSN000018fa2 AT hotmail DOT com>
In-Reply-To: <BAY12-DAV639DYccSN000018fa2@hotmail.com>
X-Enigmail-Version: 0.83.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
X-Provags-ID: kundenserver.de abuse AT kundenserver DOT de auth:2938d8151112792a7619f0dcd7fff4e3
X-IsSubscribed: yes

--------------enig3C50FABAEFE282A3F2E59652
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi Rafael,

> Just an idea that may be worth trying:
> 
> Make something like a /usr/local/bin/tracedmake
> 
> #!/bin/sh
> strace -o /tmp/dmake-trace-$$ --flush-period=10 dmake $*
> 
> And try the build with MAKE=tracedmake, then when a make hangs, you should be
> able to see the trace output in the last /tmp/dmake-trace* file for where or in
> what process the dmake hangs.

Nice idea, I did something similar yesterday evening. I had to only keep
the last strace output, because each file was in the order of 50MB to
500MB and I implemented a counter to get an idea for the number of
started dmake processes. At the moment we are at 580, it is still
running.

But unfortunately the use of strace slows things down so that we are at
approx 30% of the build now (It normaly takes 10h to build OOo on that
system) and there wasn't a freeze yet. We'll see.

> Also if you compile dmake with debugging (gcc -g) you might then be able to
> attach with CYGWIN=notty gdb --pid=<dmake-pid>.
I already build dmake with -g.

> If it's stuck inside the Cygwin dll, which is likely, then it would help to
> compile the Cygwin dll from CVS, with --enable-debugging, and then you'd be
> able to see where things are hanging in gdb with "dll cygwin1".
I guess that will be the next step, but it takes a long time to
reproduce the problem. One try per night ;-)

> Also, any thoughts on how a smaller test case could be constructed without
> trying to compile the whole of openoffice? Any pattern you notice about the
> places where dmake hangs?
No, I only had three freezes right now (On each try with the 1.5.7 dll)
but they came at different places after a few hours in the build.

There was another mail today that was reporting a problem with make,
maybe that is a better way to reproduce the problem.

Volker
-- 
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

--------------enig3C50FABAEFE282A3F2E59652
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAIQ6iPTXJup+KeF0RAhGfAKDUbsMLb0BizHtlpnTHc6fh3WcadACeLNPf
enWtRZEwDfg+VObMFO9vw90=
=5zj6
-----END PGP SIGNATURE-----

--------------enig3C50FABAEFE282A3F2E59652--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019