delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/10/18/15:26:24

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <20071018140150 DOT 131810 AT gmx DOT net> <ff8b2j$voj$1 AT ger DOT gmane DOT org>
Subject: RE: Problem with cppunit: Segmentation Fault
Date: Thu, 18 Oct 2007 20:26:03 +0100
Message-ID: <002e01c811bc$b8c45ea0$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <ff8b2j$voj$1@ger.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l9IJQDxN028980

On 18 October 2007 20:10, René Berber wrote:

> Heiko Selber wrote:
> 
>> I have a problem with cppunit and cygwin: Whenever I try to run a cppunit
>> test, all I get is a core dump.

>> For example, the cppunit home page
>> http://cppunit.sourceforge.net/cppunit-wiki/FrontPage points to a very
>> small cppunit example at http://pantras.free.fr/articles/helloworld.html .

>> When I try the same under cygwin, it compiles apparently well, but calling
>> ./a.exe produces "Segmentation fault (core dumped)". The dump [snip]
> 
> Can't reproduce the problem, look:
> 
> $ g++ Hello.cpp  -lcppunit
> Info: resolving vtable for CppUnit::TestSuiteBuilderContextBaseby linking to
> __imp___ZTVN7CppUnit27TestSuiteBuilderContextBaseE (auto-import)
> 
> $ ./a.exe
> Test::testHelloWorldHello, world!
>  : OK
> 
> I'm using cppunit 1.12.0 (latest release, it builds out of the box), did not
> test with the version distributed as Cygwin package.

  I did and it reproduces.

  I wonder if the distro version of cppunit was built with the older version
of gcc that had problems with strings and dlls, because I got as far as some
kind of std::string c-tor before it blew up on me.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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