Problem with cppunit: Segmentation Fault

Dave Korn
Thu Oct 18 19:26:00 GMT 2007

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
>> points to a very
>> small cppunit example at .

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

Can't think of a witty .sigline today....

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list