Re: [Quickfix-developers] unit test seg faults on RH Linux 7.2
Brought to you by:
orenmnero
From: <OM...@th...> - 2002-09-10 13:36:10
|
I'm using x86 Red Hat Linux 7.2, ----> gcc 2.96 <---- There's you're problem. gcc 2.96 is not a real version of gcc and red-hat should never have released it with their distribution. See this announcement for more information on this (http://gcc.gnu.org/gcc-2.96.html). We know that this version has trouble handling exceptions and will not work with QuickFIX. I would recommend going either to one of the 2.95.x versions, or to the latest stable 3.x.x version. --oren |---------+-----------------------------------------------> | | "Michael Searles" | | | <mse...@ba...> | | | Sent by: | | | qui...@li...ur| | | ceforge.net | | | | | | | | | 09/09/2002 07:42 PM | | | | |---------+-----------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: <qui...@li...> | | cc: | | Subject: [Quickfix-developers] unit test seg faults on RH Linux 7.2 | >----------------------------------------------------------------------------------------------| 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... ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |