Re: [Cppunit-devel] unexpected SIGSEGV on CPPUNIT_FAIL
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-07-30 07:25:04
|
Thomas Drillich wrote: > Hello, > > can anybody help me, to find the reason why CPPUNIT_FAIL > cause a SIGSEGV. > thx in advance. From experience such failure are caused by wrong or inconsistent compilation option. The CPPUNIT_FAIL throw an exception. I'd would recommend inlining the macro code and stepping into CPPUNIT_FAIL code with a debugger to see what is happening. Baptiste. > ---------------------------------------------------------------------------------------- > ostringstream ostr; > .... > > } catch (const Exception &e ) { > // if( e.Errno() != EINVAL ) { > ostr.str(""); > ostr << mesg.shortDescription() > << "\n-- Unexpected Dns::Exception received !! \n--" > << e.message() << "--\n"; > cout << endl << ostr.str() << endl << endl; // here's nice output > CPPUNIT_FAIL( ostr.str() ); // got sigsegv > // } > } > --------------------------------------------------------------------------------------- --- Baptiste Lepilleur <bl...@us...> CppUnit maintainer OpenTest and CppUnit 2 developer. |