[Quickfix-developers] unit test seg faults on RH Linux 7.2
Brought to you by:
orenmnero
|
From: Michael S. <mse...@ba...> - 2002-09-10 00:38:12
|
Hi -
I'm using x86 Red Hat Linux 7.2, gcc 2.96
I've built quickfix (./bootstrap, ./configure, make, make install),
and I'm running the unit tests from the test directory, using :
$ ./runut 9900
The FieldConvertorsTestCase unit test seg faults.
I pretty sure it's related to exceptions, in that I've tracked
it down to being in FieldConvertors.h, line 112:
if ( value > 255 || value < 0 ) throw FieldConvertError();
The test below is calling the CheckSumConvertor::convert( long value)
method which throws FieldConvertError() on the range check, which
is when I get the seg fault.
void FieldConvertorsTestCase::checkSumConvertTo::onRun( void*& )
{
. . .
try{ CheckSumConvertor::convert( -1 ); assert( false ); }
catch ( FieldConvertError& ) {}
}
The -fexceptions is being used for compiles. I'm not sure what
else to look at here. Any suggestions?
--
Michael Searles
mse...@ba...
|