Page 1 of 1

MQ2Bzsrch Crash

Posted: Mon Apr 17, 2006 3:40 pm
by cronic

Code: Select all

0:000> .sympath SRV*c:\winnt\symbols*http://msdl.microsoft.com/download/symbols
Symbol search path is: SRV*c:\winnt\symbols*http://msdl.microsoft.com/download/symbols
0:000> r
eax=cdcdcdcd ebx=00000000 ecx=02fd3fa8 edx=00000000 esi=00128694 edi=02fd3fa8
eip=03010a55 esp=00127dd0 ebp=00127e2c iopl=0         nv up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010206
MQ2Main!std::_Tree<std::_Tmap_traits<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,unsigned long,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,unsigned long> >,0> >::_Lbound+0x5:
03010a55 8b7004           mov     esi,[eax+0x4]     ds:0023:cdcdcdd1=????????
0:000> kv
ChildEBP RetAddr  Args to Child              
00127dd4 03011723 00127e2c 02fd3f60 00128694 MQ2Main!std::_Tree<std::_Tmap_traits<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,unsigned long,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,unsigned long> >,0> >::_Lbound+0x5 (FPO: [Non-Fpo]) (CONV: thiscall) [c:\program files (x86)\microsoft visual studio 8\vc\include\xtree @ 1170]
00127e14 03014766 00127e2c 00128693 0012869a MQ2Main!std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,unsigned long,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,unsigned long> > >::operator[]+0x13 (FPO: [Non-Fpo]) (CONV: thiscall) [c:\program files (x86)\microsoft visual studio 8\vc\include\map @ 168]
00127e44 030153d1 00128693 00000000 0012aef1 MQ2Main!MQ2Internal::MQ2Type::FindMember+0x46 (FPO: [Non-Fpo]) (CONV: thiscall) [c:\code\mq2\mq2main\mq2internal.h @ 636]
00128660 0301554d 0012868c 00128684 01d04948 MQ2Main!ParseMQ2DataPortion+0x4a1 (FPO: [Non-Fpo]) (CONV: cdecl) [c:\code\mq2\mq2main\mq2dataapi.cpp @ 467]
00128e88 03032316 0012aedc 00000000 01cdb0a8 MQ2Main!ParseMacroData+0x13d (FPO: [Non-Fpo]) (CONV: cdecl) [c:\code\mq2\mq2main\mq2dataapi.cpp @ 560]
00128e98 03006b95 0635d4c0 0012aedc ffffffff MQ2Main!ParseMacroParameter+0x26 (FPO: [Non-Fpo]) (CONV: cdecl) [c:\code\mq2\mq2main\mq2parseapi.cpp @ 125]
0012b6d8 005353f7 0635d4c0 0012bc4c 0000001c MQ2Main!CCommandHook::Detour+0x4e5 (FPO: [Non-Fpo]) (CONV: thiscall) [c:\code\mq2\mq2main\mq2commandapi.cpp @ 266]
WARNING: Stack unwind information not available. Following frames may be wrong.
0635d4c0 10923a88 00000000 0631aff0 00000000 eqgame+0x1353f7
I've caused this crash twice. The first time was by doing the following:

/bzsrch "bone chips"
/echo ${Bazaar.Count} (15)
/echo ${Bazaar.Item[1].Name} (crash)

The second:
/bzsrch "bone chips"
/echo ${Bazaar.Count} (16)
/echo ${Bazaar.Item[1].Name} (barbed bone chips)
/echo ${Bazaar.Item[0].Name} (crash)


I'm going to look at the code now to see if I can figure it out myself, but when these standard library things start popping up, I don't really know what to do.

cronic

Posted: Mon Apr 17, 2006 3:44 pm
by cronic
On second thought, I think that I'm using a copy of MQ2Bzsrch compiled against the latest zip and I may have forgotten to use the latest MQ2Main. Oops. I'll reply to this if the crash still happens after I update.

cronic

Posted: Mon Apr 17, 2006 9:08 pm
by cronic
cronic wrote:On second thought, I think that I'm using a copy of MQ2Bzsrch compiled against the latest zip and I may have forgotten to use the latest MQ2Main. Oops. I'll reply to this if the crash still happens after I update.

cronic
Negative. It still crashes with a fresh compile...

Posted: Mon Apr 17, 2006 11:47 pm
by dont_know_at_all
Post the macro that crashes...