Old 9th December 2020, 05:15   #1
Junior Member
Join Date: Dec 2020
Posts: 1
nsexec.dll heap memory leak

My application crashes (which is built using NSIS 3.04) when I use it with microsoft appverif.exe, crash dump points to nsexec.dll heap memory leak.

A heap allocation was leaked.

INVALID_HEAP_ADDRESS: 14ecfbf8 (!heap -p -a 14ecfbf8)
IMAGE_NAME: nsExec.dll
ADDITIONAL_DEBUG_TEXT: Followup set based on attribute [Is_ChosenCrashFollowupThread] from Frame:[0] on thread:[PSEUDO_THREAD]
ERROR_CODE: (NTSTATUS) 0x80000003 -

Breakpoint A breakpoint has been reached.

00000000 00000000 nsExec.dll!Unknown+0x0
STACK_COMMAND: dt ntdll!LdrpLastDllInitializer BaseDllName ; dt ntdll!LdrpFailureData ; ** Pseudo Context ** ManagedPseudo ** Value: 7c12c28 ** ; kb
SYMBOL_NAME: nsExec.dll!Unknown
MODULE_NAME: Unknown_Module
FAILURE_BUCKET_ID: BREAKPOINT_AVRF_80000003_nsExec.dll!Unloaded
OS_VERSION: 10.0.20262.1
BUILDLAB_STR: fe_release
OSNAME: Windows 10

00 0019eb54 7773d55e 00000002 0019eb88 00000001 ntdll!NtWaitForMultipleObjects+0xc (FPO: [5,0,0])
01 0019eb98 7773cbd6 000000e4 00000000 fa2f7eef ntdll!WerpWaitForCrashReporting+0x88 (FPO: [Non-Fpo])
02 0019ec20 7773c651 00000000 00000000 0019ec78 ntdll!RtlReportExceptionHelper+0x220 (FPO: [Non-Fpo])
03 0019ec3c 6a4173b8 0019ed58 0019eda8 00000000 ntdll!RtlReportException+0x61 (FPO: [Non-Fpo])
04 0019ec5c 776ed422 0019ec78 0019eda8 0019ed58 vfbasics!AVrfpVectoredExceptionHandler+0xb8 (FPO: [Non-Fpo])
05 0019ecac 776e7de1 00000000 6a433df8 0d249bf8 ntdll!RtlpCallVectoredHandlers+0xf8 (FPO: [Non-Fpo])
06 0019ed40 776f5e66 0019ed58 0019eda8 0019ed58 ntdll!RtlDispatchException+0x6f (FPO: [Non-Fpo])
07 0019ed40 6a483bf8 0019ed58 0019eda8 0019ed58 ntdll!KiUserExceptionDispatcher+0x26 (FPO: [2,0,0]) (CONTEXT @ 0019eda8)
08 0019f418 6a41b7c3 6a4329c0 00000900 0d249bf8 vrfcore!VerifierStopMessageEx+0x5c8 (FPO: [Non-Fpo])
09 0019f454 6a41c185 6a1a0000 00000000 6a1a0000 vfbasics!AVrfpCheckDllLeaks+0xba (FPO: [Non-Fpo])
0a 0019f70c 6a41a6e1 777a5e40 0d1d2f48 6a41a580 vfbasics!AVrfLeakDllUnload+0x90 (FPO: [Non-Fpo])
0b 0019f728 7773a529 0d1d6fe4 6a1a0000 00005000 vfbasics!AVrfpDllUnloadCallback+0x161 (FPO: [Non-Fpo])
0c 0019f748 776dd2dd 00000000 0d1d4fd0 777a7164 ntdll!AVrfDllUnloadNotification+0x73 (FPO: [0,0,4])
0d 0019f770 776b818f 0d1d2f48 c000022d 00000000 ntdll!LdrpUnloadNode+0xaf (FPO: [0,5,4])
0e 0019f788 776b8126 776b80a0 6a1a105a 6a1a0000 ntdll!LdrpDecrementModuleLoadCountEx+0x56 (FPO: [Non-Fpo])
0f 0019f7ac 6a41accb 6a1a0000 6a1a0000 0d1d6fe4 ntdll!LdrUnloadDll+0x86 (FPO: [1,3,4])
10 0019f7c0 75a04e56 6a1a0000 00000000 6aac0000 vfbasics!AVrfpLdrUnloadDll+0x6b (FPO: [Non-Fpo])
11 0019f7d4 004020be 6a1a0000 00430000 00000282 KERNELBASE!FreeLibrary+0x16 (FPO: [Non-Fpo])
WARNING: Stack unwind information not available. Following frames may be wrong.
12 0019f9b4 004013a8 0040a418 004cf400 004014c5 InstallPEF+0x20be
13 0019fba4 004013a8 0c872aa4 00555400 004014c5 InstallPEF+0x13a8
14 0019fd94 004013a8 0c872724 0c86a630 004051d5 InstallPEF+0x13a8
15 0019fda0 004051d5 00000458 00000000 0042eba0 InstallPEF+0x13a8
16 0019fdb4 00403a66 00000000 77163c80 00436400 InstallPEF+0x51d5
17 0019fdd8 0040348c 00403522 0019ff84 0040320c InstallPEF+0x3a66
18 0019fddc 00403522 0019ff84 0040320c 0040320c InstallPEF+0x348c
19 0019fde0 0019ff84 0040320c 0040320c 00373000 InstallPEF+0x3522
1a 0019fde4 0040320c 0040320c 00373000 00000000 0x19ff84
1b 0019ff84 776e79bd 00373000 fa2f6d13 00000000 InstallPEF+0x320c
1c 0019ffdc 776e798b ffffffff 77715361 00000000 ntdll!__RtlUserThreadStart+0x2b (FPO: [Non-Fpo])
1d 0019ffec 00000000 0040320c 00373000 00000000 ntdll!_RtlUserThreadStart+0x1b (FPO: [Non-Fpo])
0:000> lmvm nsExec.dll

Any help on this ?

dshiva is offline   Reply With Quote
Old 9th December 2020, 05:50   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,539
Please provide a minimal example script.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump