Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash while decoding Eurex #31

Closed
tbozoo opened this issue Jun 6, 2014 · 2 comments
Closed

crash while decoding Eurex #31

tbozoo opened this issue Jun 6, 2014 · 2 comments

Comments

@tbozoo
Copy link

tbozoo commented Jun 6, 2014

Hi,
I've tried to decode some Eurex Messages but it crash at the very first.
I'm using the mf_fixed_decoder on which I've added the generated files.

the message is composed of a header then a reset message (which is not present in the template file) then the messages.
I think Quickfast had added a default template 120, but the problem is not there
I've sjkipped the header (23 bytes) and 2 bytes for the template 120, but after having found a template 93 it crashes

Here are the template.xml the generated files and the test data :
https://drive.google.com/folderview?id=0B-8Io1lLd5gHNllqY1h2SEh5b3M&usp=sharing

@huangminghuang
Copy link
Contributor

Based on my testing, I don't see there's any problem with it unless you use -hfix 23 to skip the header bytes. That option is used for skip certain bytes for each SINGLE message. Based on your data, you should just modify the program to skip the first 25 bytes outside of the loop and then decode the stream from the 26th byte.

@tbozoo
Copy link
Author

tbozoo commented Jun 9, 2014

It might be on the windows version because if I use -hfix 25 the first message crash.
I've commented "first += skip_header_bytes;" to avoid the skip on each message. (but anyway it crashes before)

Unhandled exception at 0x505B4025 (msvcr120d.dll) in mf_fixed_decode.exe: 0xC0000005: Access violation writing location 0x005F2000.

ntdll.dll!_NtRaiseException@12�()   Unknown
ntdll.dll!_KiUserExceptionDispatcher@8�()   Unknown
msvcr120d.dll!memset(unsigned char * dst, unsigned char value, unsigned long count) Line 136    Unknown
mf_fixed_decode.exe!mfast::vector_mref_base<char>::resize(unsigned int n, char c) Line 364  C++
mf_fixed_decode.exe!mfast::vector_mref_base<char>::assign<char const *>(const char * first, const char * last) Line 408 C++
mf_fixed_decode.exe!mfast::vector_mref_base<char>::copy_from(const mfast::value_storage & v) Line 455   C++
mf_fixed_decode.exe!mfast::vector_mref_base<char>::to_initial_value() Line 302  C++
mf_fixed_decode.exe!mfast::decoder_detail::constant_operator::decode_impl<mfast::string_mref<char> >(const mfast::string_mref<char> & mref, mfast::fast_istream & __formal, mfast::decoder_presence_map & pmap) Line 219    C++
mf_fixed_decode.exe!mfast::decoder_detail::constant_operator::decode(const mfast::string_mref<char> & mref, mfast::fast_istream & stream, mfast::decoder_presence_map & pmap) Line 263  C++
mf_fixed_decode.exe!mfast::fast_decoder_impl::visit<mfast::string_mref<char> >(mfast::string_mref<char> & mref) Line 150    C++
mf_fixed_decode.exe!mfast::detail::field_mutator_adaptor<mfast::fast_decoder_impl>::visit(const mfast::ascii_field_instruction * inst, void * storage) Line 238 C++
mf_fixed_decode.exe!mfast::ascii_field_instruction::accept(mfast::field_instruction_visitor & visitor, void * context) Line 38  C++
mf_fixed_decode.exe!mfast::detail::field_mutator_adaptor<mfast::fast_decoder_impl>::visit(const mfast::make_aggregate_mref<mfast::aggregate_cref> & ref) Line 191   C++
mf_fixed_decode.exe!mfast::make_aggregate_mref<mfast::aggregate_cref>::accept_mutator<mfast::fast_decoder_impl>(mfast::fast_decoder_impl & mutator) Line 352    C++
mf_fixed_decode.exe!mfast::fast_decoder_impl::decode_segment(mfast::fast_istreambuf & sb) Line 336  C++
mf_fixed_decode.exe!mfast::fast_decoder::decode(const char * & first, const char * last, bool force_reset) Line 380 C++
mf_fixed_decode.exe!main(int argc, const char * * argv) Line 152    C++
[External Code] 

@tbozoo tbozoo mentioned this issue Jun 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants