Page 1 of 1

/call CTD? full debug info included (solved/fixed)

Posted: Tue Apr 27, 2004 2:41 pm
by Preocts
Getting this crash on a simple /call. Can't see what is causing it. Here is the info. If I've missed something or need more just ask. Reproduced this problem about 10 times now, it will be easy to do again. :wink:

Edit: Fixed some debugger bugs and got the more complete info.
Redundant Info wrote: [MQ2]CCommandHook::Detour(/varset MakeSwitch "ArmDot")
[MQ2]Goto - went to label :LoopForEver
[MQ2]Call - Calling subroutine Switch with params "ArmDot"
First-chance exception in eqgame.exe (MQ2MAIN.DLL): 0xC0000005: Access Violation.
Disassembly in _DataIni: wrote: 017005EE mov cl,byte ptr ds:[1740C12h]
017005F4 mov word ptr [edi],ax
017005F7 mov byte ptr [edi+2],cl
017005FA mov eax,dword ptr [ebp+0Ch]
017005FD mov dword ptr [eax+4],175AF40h
01700604 mov edx,dword ptr ds:[175AEC8h]
0170060A mov dword ptr [eax],edx
0170060C mov eax,1
01700611 pop edi
01700612 pop esi
01700613 pop ebx
01700614 mov esp,ebp
01700616 pop ebp
01700617 ret
01700618 cmp byte ptr [esi],0 <--
0170061B je 0170064E
0170061D mov edx,175AF40h
01700622 mov eax,esi
01700624 sub edx,esi
01700626 mov cl,byte ptr [eax]
01700628 mov byte ptr [edx+eax],cl
0170062B inc eax
0170062C test cl,cl
0170062E jne 01700626
01700630 mov eax,dword ptr [ebp+0Ch]
01700633 mov dword ptr [eax+4],175AF40h
0170063A mov ecx,dword ptr ds:[175AEC8h]
01700640 mov dword ptr [eax],ecx
01700642 mov eax,1
01700647 pop edi
01700648 pop esi
01700649 pop ebx
0170064A mov esp,ebp
CallStack wrote: MQ2MAIN! dataIni + 535 bytes<--
MQ2MAIN! ParseMQ2DataPortion + 1415 bytes
MQ2MAIN! ParseMacroData + 314 bytes
MQ2MAIN! ParseMacroParameter + 38 bytes
MQ2MAIN! HideDoCommand + 811 bytes
MQ2MAIN! DoNextCommand(void) + 208 bytes
MQ2MAIN! Heartbeat(void) + 280 bytes
MQ2MAIN! Detour_ProcessGameEvents(void) + 5 bytes
EQGAME! 004acd5f()

Posted: Tue Apr 27, 2004 3:13 pm
by Lax
unfortunately since the crash was in MQ2 we need the function names not just the addresses. What version of visual studio are you using, and what zip?

Posted: Tue Apr 27, 2004 3:33 pm
by Preocts
[old and incorrect info]

Posted: Tue Apr 27, 2004 3:42 pm
by Charisa
Preocts wrote: VS 6, VC++ cause I'm a retarded monkey. SP5 installed.
Copied over the 2003 .NET files from Microsoft Visual C++ Toolkit 2003
Not that its much help at all but
Post subject: IMPORTANT: Visual Studio 6 (including Visual C 6) users
Download and install SERVICE PACK 6 before reporting any bugs.
as seen on the sticky thread at the top of this forum

http://macroquest2.com/phpBB2/viewtopic.php?t=6326

Posted: Tue Apr 27, 2004 3:55 pm
by Preocts
:wink: I know.

Posted: Tue Apr 27, 2004 4:55 pm
by Lax
we tracked this down in irc to a usage of ${Ini} that happened to crash. It is fixed in next zip.