MadExcept 5.0 crash - delphi 10.3 Rio

delphi package - automated exception handling
Post Reply
AndreL2
Posts: 3
Joined: Tue Oct 01, 2019 7:13 am

MadExcept 5.0 crash - delphi 10.3 Rio

Post by AndreL2 »

Hi,
Please find the debug file of Madexcept crash during an application exception running on windows 10 32bits (10.0.18362.387).
Application had to be cancel at windows level.

NB: The same application compiled with delphi 2007 is OK.

compiled with : Delphi 10.3 Rio
madExcept version : 5.0.0
callstack crc : $00000000, $a6c26978, $a6c26978
exception number : 2
exception class : Unknown
exception message : Unknown.

madExcept - HandleExceptionThread ($12d8): <priority:2>
00000000 +000 ???
771dd775 +005 ntdll.dll NtWaitForSingleObject
75650f2a +0aa KERNELBASE.dll WaitForSingleObjectEx
75650e6d +00d KERNELBASE.dll WaitForSingleObject
004b4677 +1e3 Avocompta.exe madExcept TIMEException.GetBugReport
004aea36 +09e Avocompta.exe madExcept CreateBugReport
009aa8db +0db Avocompta.exe DataModule 1619 +19 ExceptionHandler
0048ac58 +244 Avocompta.exe madExcept FireHandlers
0048b6a0 +254 Avocompta.exe madExcept DoFireHandlers
004ad8a8 +2a8 Avocompta.exe madExcept ReceiveHandleException
004adc3a +08a Avocompta.exe madExcept HandleExceptionThread
76772367 +017 KERNEL32.DLL BaseThreadInitThunk

Any help is welcome.
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: MadExcept 5.0 crash - delphi 10.3 Rio

Post by madshi »

Can you reproduce this on your development PC? Or was this a one-time-only crash?

It seems that something was so broken in your process that madExcept crashed while trying to analyze an earlier crash. Could be some kind of buffer overrun or something else, but it's hard to say. And it's weird that it only occurs if you compile with Rio but not with 2007.
AndreL2
Posts: 3
Joined: Tue Oct 01, 2019 7:13 am

Re: MadExcept 5.0 crash - delphi 10.3 Rio

Post by AndreL2 »

Thanks for your reply.

Yes I can reproduced it on my development pc but the application is frozen and Delphi in debug only allow the cancel process option (CTRL-F2) after a exception in Hex.

So yes something wrong in my code but hard to trace back.
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: MadExcept 5.0 crash - delphi 10.3 Rio

Post by madshi »

Can you try activating the "instantly crash on buffer overrun" feature in madExcept? It consumes a ton of extra RAM, though, so maybe it will not work for you. It could result in your process running out of RAM. But if it works, it might show a better code location which could be responsible for the problem.
AndreL2
Posts: 3
Joined: Tue Oct 01, 2019 7:13 am

Re: MadExcept 5.0 crash - delphi 10.3 Rio - Solved

Post by AndreL2 »

Solved !

"instantly crash on buffer overrun" did the job.

I fixed my code and no issue anymore. (root cause was from char (D7) to widechar (D10) compilation)

Thanks a lot.
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: MadExcept 5.0 crash - delphi 10.3 Rio

Post by madshi »

:D
Post Reply