I am having a problem with this library and I think it might be related to
this bug.
To reproduce my problem simply compile the following program:

#include <unittest++/DeferredTestResult.h>
#include <iostream>
int main() {
  UnitTest::DeferredTestResult s("a", "b");
  std::cout << s.suiteName << ":"<< s.testName<< std::endl;
}
//g++ unittest++segfault.cpp -lunittest++ -o /tmp/unittestsegfault &&
/tmp/unittestsegfault


I have tested this in two computers running Debian Stretch, one 32 bits and
the other 64 bits.
The readelf command in the 64 bit machine shows:
readelf -p .comment /usr/lib/libUnitTest++.a | grep GCC | uniq
  [     1]  GCC: (Debian 4.3.3-13) 4.3.3

After executing these commands, the above test program works fine:
apt-get source libunittest++-dev
cd unittest++-1.4.0/
make
cp libUnitTest++.a /usr/lib/

Reply via email to