Re: [Quickfix-developers] crashes with latest versions, sample code attached ...
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2006-09-13 16:59:04
|
1.12.2 introduced a lot of performance optimizations. One of the things
being done is that QuickFIX will look for the presence of a better
performaing allocator than the default std::allocator. My best guess is
there is a bug in the allocator that it is choosing on your system.
When it finds the best one, it will create a definition for it in
config.h. Possible definitions are HAVE_BITMAP_ALLOCATOR,
HAVE_BOOL_FAST_POOL_ALLOCATOR, HAVE_BOOST_POOL_ALLOCATOR,
HAVE_MT_ALLOCATOR, and HAVE_POOL_ALLOCATOR.
Go through config.h and comment out any of these definitions and see if
your sample application fairs better. We will probably need to update
the configure script to do a sanity check before deciding an allocator
is viable. Are your unit tests/acceptence tests passing?
--oren
> guys,
>=20
> i came accross some weired segfaults using the quickfix library. below
> you can see a simple code snippet which crashes versions 1.12.2,
1.12.3
> as well as current svn. the versions up to 1.12.1 work ok.
>=20
> could one of you guys explain whats either wrong with that code
snipped
> or what changes have been made to quickfix to crash it?
>=20
> #include <quickfix/fix42/Message.h>
>=20
> int main (int ac, char** av)
> {
> try{
> FIX42::Message m( FIX::MsgType("F") );
> }
> catch( ... ) {}
> return 0;
> } =20
|