MantisBT - Cheat Engine
View Issue Details
0000340Cheat Enginepublic2014-07-24 23:292014-12-10 02:12
Reporterpausebreak7 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Summary0000340: cheat engine 6.4 dbvm kernel debug process crash bug fix plz
Descriptionhello dark byte
cheat engine 6.4 dbvm kernel mode process debug crash bug

my video link:
https://www.dropbox.com/s/w50dz5ttgg61f45/bandicam%202014-07-25%2004-36-55-026.avi

1.dbvm debug mode process find what access this address

2.process exit

3.new process load find what access this address click crash cheat engine error
TagsNo tags attached.
Attached Files

Notes
(0000686)
Dark Byte   
2014-07-25 12:01   
does it also crash if you close cheat engine ,reopen it and target the new process ? (So I know if it's the usermode or kernelmode part that breaks)
And is this an AMD or Intel cpu? (so I know which section to look at)
And did you use any kind of patchguard override before? (in case dbvm has failed completely and it's falling back on stupid interrupt hooks which would normally bsod you instead without such an override)
(0000687)
pausebreak7   
2014-07-25 13:14   
(Last edited: 2014-07-25 13:20)
1.
--my computer info--
OS: Windows 7 x64(64bit) Ultimate K Service Pack 1
CPU: intel(R) Core(TM) i5-2500 CPU @ 3.30GHZ
Ram: 16GB

2.process no exit process list re open process cheat engine not error
so target process crash bug

3. cheat engine 6.2 or 6.3 ->not error
   cheat engine 6.4 ->error

4. no bsod target process crash and computer system very slow target
process cpu 99%

--my viedo link2:

https://www.dropbox.com/s/r5n29cbbx4ivgkj/bandicam%202014-07-25%2018-26-28-375.avi

(0000688)
pausebreak7   
2014-07-29 13:19   
--Intel i5 core cpu win7 x64--

crash:
debugger options -> user global debug routines check-> crash error

Not crash:
debugger options -> user global debug routines no check-> no error
(0000689)
pausebreak7   
2014-08-03 22:54   
Hi, dark byte
Cheat Engine Rev 2398 & 2634 compare code test

-> debugeventhandler.pas bug code fix plz

my test debugeventhandler.pas original code
 if (debugreg in [0..4]) and (bpp.breakpointMethod=bpmDebugRegister) and (bpp.debugRegister<>debugreg) then
continue; //this is not the correct breakpoint. Skip it

debugeventhandler.pas code edit

// if (debugreg in [0..4]) and (bpp.breakpointMethod=bpmDebugRegister) and //(bpp.debugRegister<>debugreg) then
//continue; //this is not the correct breakpoint. Skip it

debugeventhandler.pas 771-772 line Delete the code -> Dbvm global debug process Not Error!

Dont know about the Delphi Code

Code Fix Plz
(0000690)
Dark Byte   
2014-08-04 02:15   
(Last edited: 2014-08-04 02:19)
That will break properly deleting/resetting breakpoints.

anyhow, what happens if you close cheat engine as well and then reopen cheat engine and attach it to the new process and debug that ? (you haven't done that in the videos)
Also, check the threadlist and the debug registers to see if they are filled in before

you may want to do that fix with global debug only, or better fix the cause for the wrong debug reg

(0000691)
pausebreak7   
2014-08-04 03:35   
(Last edited: 2014-08-04 03:38)
dark byte
error does not go out when it is moved to the active under the code of if as follows deiphi code
Do you have any code that has been modified correctly this?

Original:
if InRangeX (address, bpp.address, bpp.address + bpp.size-1) then
begin

if (debugreg in [0..4]) and (bpp.breakpointMethod = bpmDebugRegister) and (bpp.debugRegister <> debugreg) then
continue; // this is not the correct breakpoint. Skip it
found: = true;
bpp2: = bpp;
active: = bpp ^ .active;


Edit:
if InRangeX (address, bpp.address, bpp.address + bpp.size-1) then
begin
found: = true;
bpp2: = bpp;
active: = bpp ^ .active;

if (debugreg in [0..4]) and (bpp.breakpointMethod = bpmDebugRegister) and (bpp.debugRegister <> debugreg) then
continue; // this is not the correct breakpoint. Skip it

(0000721)
pausebreak7   
2014-12-10 02:12   
dark byte
I Love You!
Rev 2629,2631 Source Code Thanks

After 1 months in advance Happy New Year 2015


Issue History
2014-07-24 23:29pausebreak7New Issue
2014-07-25 12:01Dark ByteNote Added: 0000686
2014-07-25 12:01Dark ByteStatusnew => acknowledged
2014-07-25 13:14pausebreak7Note Added: 0000687
2014-07-25 13:20pausebreak7Note Edited: 0000687
2014-07-29 13:19pausebreak7Note Added: 0000688
2014-08-03 22:54pausebreak7Note Added: 0000689
2014-08-04 02:15Dark ByteNote Added: 0000690
2014-08-04 02:17Dark ByteNote Edited: 0000690
2014-08-04 02:19Dark ByteNote Edited: 0000690
2014-08-04 03:35pausebreak7Note Added: 0000691
2014-08-04 03:38pausebreak7Note Edited: 0000691
2014-12-10 02:12pausebreak7Note Added: 0000721
2014-12-10 02:12pausebreak7Note Edited: 0000721