delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/24/17:31:47

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=G9zUruhuHl6i7zL0y9OKLlquA3TRcrRD4QzzWHcbcc4Y5K3UJYNtb
BI9HnmIG999O92Wi0NsYSo/8aI0NGm/+Y0uvjSVcgPCI9gVSRUheBmlfI+7DYgn9
xi+eIaCwcPOq/dvXLrTySTDxktoixczgMm6C8K/+Dgegxair8KDb1I=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=W0bnS7TulV6Sm+K8epku2rPH1Ho=; b=PEbZFRjSV0Ri+ngmwLEWBqvqcKii
4Ym93YdAF+4yU1OzeDneVnhdoXDvnVQ1ZjOGlVuvmW0blJfWThlORoDitWUrPhgV
Yc69fD1yCquvOR4jG0QilPSAQAi4SffcN68Zz6FNoRX4RQf5eT8K7FJKYji69ez0
K2u91hNtHZngeZs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1
Date: Fri, 24 May 2013 23:31:26 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: CppUTest generated executables hangs after cygwin auto-update
Message-ID: <20130524213126.GA29494@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <519E0450 DOT 60704 AT trackitsystems DOT de> <20130523122928 DOT GA23537 AT calimero DOT vinschen DOT de> <20130523150319 DOT GB7647 AT ednor DOT casa DOT cgf DOT cx> <519F2657 DOT 9040103 AT trackitsystems DOT de> <20130524090407 DOT GB5852 AT calimero DOT vinschen DOT de> <519F831B DOT 1010204 AT trackitsystems DOT de>
MIME-Version: 1.0
In-Reply-To: <519F831B.1010204@trackitsystems.de>
User-Agent: Mutt/1.5.21 (2010-09-15)

On May 24 17:11, Ralf Glaser, track IT wrote:
> I attached strace log:
> 2. failed when called from /cygdrive/c/Tools/... with 2012-11-23 DLL
> 
> Hope that helps.

Actually the straces didn't really help, but that's not your fault.
I grabbed CppUTest, built it and could immediately reproduce the
problem.  It's a Cygwin DLL build problem which has been introduced
between 1.7.17 and 1.7.18 when we made a pretty invasive changed to the
build system after switching from using Mingw-w64 instead of Mingw.org.

What happens is that the Cygwin DLL uses the wrong entry points for the
new and delete functions.  In theory the DLL is supposed to use its own
internal implementations, but accidentally it uses the external new and
delete entry points which are supposed to be used by the application.

The hang is not really the problem, rather it's just a followup effect
of that build time misbehaviour, combined with the fact that CppUTest
defines its own new and delete functions.

The actual bug is a gcc flag which has accidentally been used when
compiling object files, rather than when linking the DLL, where it
belonged.  I fixed that in CVS and I just generated a 2012-05-24
snapshot, which you can download from http://cygwin.com/snapshots/
Please give it a try.

For those already running the 64 bit Cygwin, I'm also generating a
1.7.19-6 64 bit cygwin package right now, which should be available
in half an hour at the latest, too.  The 64 bit Cygwin suffered the
same problem, I just couldn't test CppUTest because it doesn't build
cleanly on 64 bit Cygwin.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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