[Quickfix-users] Error while parsing settings file(config file) for quickfix session
Brought to you by:
orenmnero
From: Reema G. <ree...@tc...> - 2011-01-25 06:56:17
|
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> <br><span class="ul-threaded" style="margin: 1em 0pt 0pt -20px;"><table class="medium-border-color classic-table"><tbody><tr style="vertical-align: top;" valign="top"><td class="column-right"><span class="text-cell"><div class="message-text" id="nabble.msgtxt30748302" style="cursor: text;"> Hi, <br>I am trying to create a quickfix session using a settings file. The code gets compiled properly but while executing it throws segmentation fault. After debugging using GDB found out that there is some error during parsing of settings file. <br><br><br><br>Here is my settings file: <br><br># default settings for sessions <br>[DEFAULT] <br>ConnectionType=initiator <br>ReconnectInterval=60 <br>SenderCompID=T3PM <br>[SESSION] <br>BeginString=FIX.4.2 <br>TargetCompID=INCA <br>StartTime=12:30:00 <br>EndTime=21:30:00 <br># overide default setting for RecconnectInterval <br>ReconnectInterval=30 <br>HeartBtInt=30 <br>SocketConnectPort=6523 <br>SocketConnectHost=172.29.19.197 <br><br><br>Here is the debug output of GDB: <br><br>#0 std::_Rb_tree<std::string, std::pair<std::string const, std::string>, std::_Select1st<std::pair<std::string const, std::string> >, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >::lower_bound (this=0x4, __k=@0xbf9818c8) <br> at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:466 <br>#1 0x0031886d in std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >::operator[] (this=0x4, <br> __k=@0xbf9818c8) at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_map.h:576 <br>#2 0x00315411 in FIX::Dictionary::setString (this=0x0, key=@0xbf9819b8, value=@0xbf9819b4) at Dictionary.cpp:137 <br>#3 0x002eca2f in FIX::operator>> (stream=@0xbf981c18, s=@0xbf981b50) at Settings.cpp:55 <br>#4 0x00330bc4 in FIX::operator>> (stream=@0xbf981c18, s=@0xbf982644) at SessionSettings.cpp:53 <br>#5 0x00331def in SessionSettings (this=0xbf982644, file=@0xbf98275c) at SessionSettings.cpp:46 <br>#6 0x080644a5 in main () <br>Current language: auto; currently c++ <br>(gdb) frame 2 <br>#2 0x00315411 in FIX::Dictionary::setString (this=0x0, key=@0xbf9819b8, value=@0xbf9819b4) at Dictionary.cpp:137 <br>137 m_data[ string_toUpper(key) ] = value; <br><br>(gdb<b>print key</b><br>$1 = (const string &) @0xbf9819b8: {static npos = 4294967295, <br> _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x992e12c <b>"BeginString"}</b>} <br>(gdb) <b>print value</b><br>$2 = (const string &) @0xbf9819b4: {static npos = 4294967295, <br> _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x992e14c <b>"FIX.4.2"</b>}} <br>(gdb) frame 1 <br>#1 0x0031886d in std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >::operator[] (this=0x4, <br> __k=@0xbf9818c8) at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_map.h:576 <br>576 { return _M_t.lower_bound(__x); } <br><br><br> <script type="text/javascript"><!-- if (Nabble.ads) Nabble.ads("banner"); //--></script><div class="ad" style="vertical-align: top;"><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div> </div> </span> </td> </tr> </tbody></table> <script type="text/javascript"> dropdownInit('dropdown30748302'); enableLinks30748302(); if (Nabble.searchterms != null && Nabble.searchterms.length > 0) { Nabble.hilt(Nabble.searchterms, Nabble.get("post-table0")); } </script> </span> <script> if( Nabble.prev ) Nabble.writeReturnToLink(Nabble.prev); </script><br>Thanks<br>Reema Goenka<br>Innovation Labs- Capital Markets<br>Tata Consultancy Services<br>Buzz:- 420 4535<br>Cell:- +91 9819016040<br>Mailto: ree...@tc...<br>Website: http://www.tcs.com<br>____________________________________________<br>Experience certainty. IT Services<br> Business Solutions<br> Outsourcing<br>____________________________________________<br><div></div></font><pre style="white-space:normal">=====-----=====-----=====<br>Notice: The information contained in this e-mail<br>message and/or attachments to it may contain <br>confidential or privileged information. If you are <br>not the intended recipient, any dissemination, use, <br>review, distribution, printing or copying of the <br>information contained in this e-mail message <br>and/or attachments to it are strictly prohibited. If <br>you have received this communication in error, <br>please notify us by reply e-mail or telephone and <br>immediately and permanently delete the message <br>and any attachments. Thank you<br><br><br></pre> |