X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.org>
Subject:  Re: Problem with cppunit: Segmentation Fault
Date:  Thu, 18 Oct 2007 14:10:09 -0500
Lines: 38
Message-ID: <ff8b2j$voj$1@ger.gmane.org>
References:  <20071018140150.131810@gmx.net>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  quoted-printable
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
In-Reply-To: <20071018140150.131810@gmx.net>
OpenPGP: url=hkp://wwwkeys.pgp.net
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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.
>=20
> Any help with this problem is greatly appreciated.
>=20
> For example, the cppunit home page=20
> http://cppunit.sourceforge.net/cppunit-wiki/FrontPage points to a very sm=
all
> cppunit example at http://pantras.free.fr/articles/helloworld.html .
>=20
> I can compile and run it on Linux (e.g. SuSE 10): $> g++ Hello.cpp  -lcpp=
unit
> -ldl $> ./a.out Test::testHelloWorldHello, world! : OK $>
>=20
> 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.
--=20
Ren=E9 Berber


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

