[Quickfix-developers] crashes with latest versions, sample code attached ...
Brought to you by:
orenmnero
From: H. S. <st...@pa...> - 2006-09-13 16:05:30
|
guys, 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. could one of you guys explain whats either wrong with that code snipped or what changes have been made to quickfix to crash it? #include <quickfix/fix42/Message.h> int main (int ac, char** av) { try{ FIX42::Message m( FIX::MsgType("F") ); } catch( ... ) {} return 0; } gcc version 3.4.4 [FreeBSD] 20050518 FreeBSD 6.1-STABLE FreeBSD 6.1-STABLE backtrace: #0 0x280b6484 in __gnu_cxx::__mt_alloc<std::_Rb_tree_node<std::pair<int const, FIX::FieldBase> > >::deallocate (this=0xbfbfe698, __p=0x8058100, __n=0) at mt_allocator.h:430 #1 0x280b6615 in std::_Rb_tree<int, std::pair<int const, FIX::FieldBase>, std::_Select1st<std::pair<int const, FIX::FieldBase> >, FIX::message_order, __gnu_cxx::__mt_alloc<std::pair<int const, FIX::FieldBase> > >::_M_erase ( this=0xbfbfe698, __x=0x8058100) at stl_tree.h:360 #2 0x280b65e8 in std::_Rb_tree<int, std::pair<int const, FIX::FieldBase>, std::_Select1st<std::pair<int const, FIX::FieldBase> >, FIX::message_order, __gnu_cxx::__mt_alloc<std::pair<int const, FIX::FieldBase> > >::_M_erase ( this=0xbfbfe698, __x=0x80580c0) at stl_tree.h:494 #3 0x28127c9d in FIX::FieldMap::clear (this=0xbfbfe694) at stl_tree.h:462 #4 0x28127e65 in ~FieldMap (this=0xbfbfe694) at FieldMap.cpp:35 #5 0x080492c2 in FIX::Message::~Message () #6 0x0804924e in FIX42::Message::~Message () #7 0x08049194 in main () |