delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/01/20:53:09

Message-Id: <200506020053.j520r8FU011424@delorie.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
From: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>
To: <cygwin AT cygwin DOT com>
Subject: RE: pthreads, cygwin and pthread_mutex_lock not blocking
Date: Wed, 1 Jun 2005 19:52:56 -0500
MIME-Version: 1.0
In-Reply-To: <f04e96900f5730fd25a8baa1c70c8425@rehley.net>
X-IsSubscribed: yes

I'm coming to this particular party pretty late, so if my comments are
totally off-base or have been already covered, please disregard:

> On May 31, 2005, at 10:50 AM, David Rothenberger wrote:
> 
> > On 5/31/2005 10:15 AM, Peter Rehley wrote:
> >> Well, here is a simple test case, but turns out I wasn't using the 
> >> latest version.  I was having the problem on 1.5.12,  I 
> haven't been 
> >> able to get a good build with cygwin 1.5.17-1.  It builds 
> and I can 
> >> run the install script, but when I put the dll in place I see the 
> >> message "cygheap magic number mismatch detected", and gcc doesn't 
> >> want to work.
> >

On some occaisions I've had to reboot the machine for some reason (WinXP),
not just kill all Cygwin processes, in order to successfully replace the
cygwin1.dll with a different version.  I've had the file copy go fine,
indicating no process is currently using it, but then got the error you're
seeing when attempting to run any Cygwin apps.  If you're still set up to
build the Cygwin DLL, I'd suggest trying it again with your proposed
change(s) and see if this gets you over that hump.

FWIW, I get this running your fork_test.c app on snapshot 20050528, compiled
with the latest Cygwin "exp" gcc and binutils:

 GaryV AT 123456 ~
 $ ./a.exe 
 thread locked 0
 I'm the parent
 heh, I'm done 45
 I'm the child
 
 GaryV AT 123456 ~
 $ ahh, what a good nap
 << waits for CR >>

which I believe indicates the problem you reported is still present in that
snapshot.

-- 
Gary R. Van Sickle
 


--
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 -


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