Problem: packed executable crashes with AV

Issues related to Enigma Virtual Box
Post Reply
jenter
Posts: 2
Joined: Fri Apr 22, 2011 6:47 am

Problem: packed executable crashes with AV

Post by jenter »

Hi and first of all, thanks for the wonderful free product!

We need to package a quite hefty C++ Builder app using about 30 BPLs, DCPs and DLLs into a single executable.
Unfortunately running the resulting file displays the "has stopped working" message with the following info:
Problem signature:
Problem Event Name: APPCRASH
Application Name: TranslationTool_enigma.exe
Application Version: 1.0.0.0
Application Timestamp: 00000000
Fault Module Name: StackHash_7c33
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Code: c0000005
Exception Offset: 00000000
OS Version: 6.1.7600.2.0.0.256.48
Locale ID: 1049
Additional Information 1: 7c33
Additional Information 2: 7c3309f8624bd68613c49d1b1ec0f83a
Additional Information 3: be3e
Additional Information 4: be3e614c41baa6a3da32799ce5f1e626
Crash happens on both Windows 7 32 bit and Windows XP 32bit. I suspect the MadExcept library used by our app can have something to do with this, but I'm not sure.

Please help with this situation! We liked Enigma very much and it would be a real shame if we had to switch to other packers. Thanks!

P.S.
I've also taken a dump file. {link deleted by admin}
And here also is the list of standard/3rd party libraries used:
borlndmm.dll
cc3290mt.dll
dac120.bpl
dbrtl120.bpl
designide120.bpl
dsnap120.bpl
GridPackd2009.bpl
madBasic_.bpl
madDisAsm_.bpl
madExcept_.bpl
odac120.bpl
oraprov120.bpl
rtl120.bpl
RVPkgCB2009.bpl
Tee812.bpl
TranslationTool.exe
vcl120.bpl
vclactnband120.bpl
vcldb120.bpl
vclimg120.bpl
vclx120.bpl
xmlrtl120.bpl
Enigma
Site Admin
Posts: 2938
Joined: Wed Aug 20, 2008 2:24 pm

Re: Problem: packed executable crashes with AV

Post by Enigma »

Hi jenter, firstly, hope you are using latest version 2.10...?

Can you please send me a link in PM with the all files that included into this package (main .exe, all dll and bpl files), and .evb project file, so we can test it here? Dump file is useless, because to find a problem we have to have the real files for tests...
jenter
Posts: 2
Joined: Fri Apr 22, 2011 6:47 am

Re: Problem: packed executable crashes with AV

Post by jenter »

Unfortunately I can't send you the files without the approval of someone who is currently not in the office.

But I've managed to track the problem down a little bit: when the program is built without madExcept the AV goes away.
So I guess it is just incompatibility of Engima VB and madExcept (http://madshi.net). Could you check on it please?
Huge thanks in advance!
Enigma
Site Admin
Posts: 2938
Joined: Wed Aug 20, 2008 2:24 pm

Re: Problem: packed executable crashes with AV

Post by Enigma »

Ah, if without MadExcept boxed application is working well then the problem is due to compatibility and no need to send us files.

MaxExcept, as far as I know, allows to hook system functions, and, for example, run own code before some real system function is called. Probably, your MaxExcept is configured so, that it hooks some functions from ntdll.dll. If so, you have to disable these hooks (because Enigma Virtual Box also hooks these functions), and these systems will be working well together.

Enigma Virtual Box runs before MaxExcept, and looks like MaxExcept overwrites hooks of Enigma Virtual Box, and this is because packed file does not work.
Post Reply