Discussion:
WinDbg:6.11.0001.404 AMD64, appverf and a 32bit debugee
(too old to reply)
pete
2011-07-14 02:21:03 UTC
Permalink
Raw Message
I'm not sure if I have al the configurations right on my Windows 7
Ultimate (x64) box to try and use windbg and appverif to find a heap
corruption problem in a 32bit C++ app.

I found 2 appverif.exe on my system:

C:\Windows\SysWOW64\appverif.exe
C:\Windows\system32\appverif.exe

The one in system32 is the 64bit version which I used initially to
configure my app for heap debugging, but never managed to get it
going. I then used the 32but version from SysWOW64.

When I fire up windbg with appverif configured and open my app, I get
the stuff at the end of this message in the output window. The
application doesn't run because of an odbc error which I don't get if
I don't run my app under appverif.exe.

Is there anything obvious I'm getting wrong?

===== WinDbg Output ====>
CommandLine: D:\Development\APAL6-CVS-HEAD\D3Test\Debug_DREYERS\D3Test-
DREYERS.exe
Symbol search path is: srv*d:\windbg\symbols*http://msdl.microsoft.com/
download/symbols;srv*
Executable search path is:
ModLoad: 00000000`00ac0000 00000000`03adc000 D3Test-DREYERS.exe
ModLoad: 00000000`778c0000 00000000`77a69000 ntdll.dll
ModLoad: 00000000`77aa0000 00000000`77c20000 ntdll32.dll
ModLoad: 00000000`00090000 00000000`000fe000 C:\Windows
\system32\verifier.dll
Page heap: pid 0x2010: page heap enabled with flags 0x20003.
AVRF: D3Test-DREYERS.exe: pid 0x2010: flags 0x80000001: application
verifier enabled
ModLoad: 00000000`74fe0000 00000000`7501f000 C:\Windows
\SYSTEM32\wow64.dll
ModLoad: 00000000`74f80000 00000000`74fdc000 C:\Windows
\SYSTEM32\wow64win.dll
ModLoad: 00000000`74f70000 00000000`74f78000 C:\Windows
\SYSTEM32\wow64cpu.dll
(2010.16e4): Break instruction exception - code 80000003 (first
chance)
ntdll!LdrpDoDebuggerBreak+0x30:
00000000`7796cb60 cc int 3
0:000> g
ModLoad: 00000000`771e0000 00000000`772ff000 WOW64_IMAGE_SECTION
ModLoad: 00000000`75640000 00000000`75750000 WOW64_IMAGE_SECTION
ModLoad: 00000000`771e0000 00000000`772ff000 NOT_AN_IMAGE
ModLoad: 00000000`77460000 00000000`7755a000 NOT_AN_IMAGE
ModLoad: 00000000`71b90000 00000000`71bf0000 C:\Windows
\syswow64\verifier.dll
Page heap: pid 0x2010: page heap enabled with flags 0x20003.
AVRF: D3Test-DREYERS.exe: pid 0x2010: flags 0x80000001: application
verifier enabled
ModLoad: 00000000`73390000 00000000`733b9000 C:\Windows
\SysWOW64\vrfcore.dll
ModLoad: 00000000`75640000 00000000`75750000 C:\Windows
\syswow64\kernel32.dll
ModLoad: 00000000`76e30000 00000000`76e76000 C:\Windows
\syswow64\KERNELBASE.dll
ModLoad: 00000000`64d00000 00000000`64d34000 C:\Program Files\Alwil
Software\Avast5\snxhk.dll
ModLoad: 00000000`10000000 00000000`10061000 D:\Development\APAL6-
CVS-HEAD\D3Test\Debug_DREYERS\oci.dll
ModLoad: 00000000`75c80000 00000000`75d80000 C:\Windows
\syswow64\USER32.dll
ModLoad: 00000000`75830000 00000000`758c0000 C:\Windows
\syswow64\GDI32.dll
ModLoad: 00000000`77a70000 00000000`77a7a000 C:\Windows
\syswow64\LPK.dll
ModLoad: 00000000`75440000 00000000`754dd000 C:\Windows
\syswow64\USP10.dll
ModLoad: 00000000`751f0000 00000000`7529c000 C:\Windows
\syswow64\msvcrt.dll
ModLoad: 00000000`77140000 00000000`771e0000 C:\Windows
\syswow64\ADVAPI32.dll
ModLoad: 00000000`758c0000 00000000`758d9000 C:\Windows
\SysWOW64\sechost.dll
ModLoad: 00000000`76be0000 00000000`76cd0000 C:\Windows
\syswow64\RPCRT4.dll
ModLoad: 00000000`75190000 00000000`751f0000 C:\Windows
\syswow64\SspiCli.dll
ModLoad: 00000000`75180000 00000000`7518c000 C:\Windows
\syswow64\CRYPTBASE.dll
ModLoad: 00000000`7c340000 00000000`7c396000 C:\Windows
\SysWOW64\MSVCR71.dll
ModLoad: 00000000`0a250000 00000000`0a648000 D:\Development\APAL6-
CVS-HEAD\D3Test\Debug_DREYERS\ice33d.dll
ModLoad: 00000000`08bf0000 00000000`08c75000 D:\Development\APAL6-
CVS-HEAD\D3Test\Debug_DREYERS\iceutil33d.dll
ModLoad: 00000000`71ab0000 00000000`71b87000 C:\Windows\WinSxS
\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb
\MSVCP90D.dll
ModLoad: 00000000`717a0000 00000000`718c3000 C:\Windows\WinSxS
\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb
\MSVCR90D.dll
ModLoad: 00000000`002f0000 00000000`00308000 D:\Development\APAL6-
CVS-HEAD\D3Test\Debug_DREYERS\bzip2d.dll
ModLoad: 00000000`76e80000 00000000`76eb5000 C:\Windows
\syswow64\WS2_32.dll
ModLoad: 00000000`76bd0000 00000000`76bd6000 C:\Windows
\syswow64\NSI.dll
ModLoad: 00000000`74940000 00000000`7495c000 C:\Windows
\SysWOW64\IPHLPAPI.DLL
ModLoad: 00000000`74930000 00000000`74937000 C:\Windows
\SysWOW64\WINNSI.DLL
ModLoad: 00000000`63d50000 00000000`63ddc000 C:\Windows
\SysWOW64\ODBC32.dll
ModLoad: 00000000`0a650000 00000000`0a79a000 D:\Development\APAL6-
CVS-HEAD\D3Test\Debug_DREYERS\cximagecrtd-vc90-mt-gd.dll
ModLoad: 00000000`740c0000 00000000`740f2000 C:\Windows
\SysWOW64\WINMM.dll
(2010.16e4): WOW64 breakpoint - code 4000001f (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
ntdll32!LdrpDoDebuggerBreak+0x2c:
77b40f3b cc int 3
0:000:x86> g
ModLoad: 76af0000 76b50000 C:\Windows\SysWOW64\IMM32.DLL
ModLoad: 75570000 7563c000 C:\Windows\syswow64\MSCTF.dll
ModLoad: 0a8a0000 0a8d8000 C:\Windows\SysWOW64\odbcint.dll
ModLoad: 738d0000 738e7000 C:\Windows\SysWOW64\bcrypt.dll
ModLoad: 74b40000 74b7d000 C:\Windows\SysWOW64\bcryptprimitives.dll
ModLoad: 5d7c0000 5d87e000 C:\Windows\SysWOW64\SQLSRV32.dll
ModLoad: 769d0000 76aed000 C:\Windows\syswow64\CRYPT32.dll
ModLoad: 75750000 7575c000 C:\Windows\syswow64\MSASN1.dll
ModLoad: 74ae0000 74af1000 C:\Windows\SysWOW64\NETAPI32.dll
ModLoad: 74ad0000 74ad9000 C:\Windows\SysWOW64\netutils.dll
ModLoad: 74ab0000 74ac9000 C:\Windows\SysWOW64\srvcli.dll
ModLoad: 74bf0000 74bff000 C:\Windows\SysWOW64\wkscli.dll
ModLoad: 74d70000 74d79000 C:\Windows\SysWOW64\VERSION.dll
ModLoad: 71930000 7194a000 C:\Windows\SysWOW64\sqlsrv32.rll
ModLoad: 71950000 7196e000 C:\Windows\SysWOW64\odbccp32.dll
ModLoad: 71740000 71761000 C:\Windows\SysWOW64\DBNETLIB.DLL
ModLoad: 748d0000 748d3000 C:\Windows\SysWOW64\security.dll
ModLoad: 748c0000 748c8000 C:\Windows\SysWOW64\SECUR32.DLL
ModLoad: 74a90000 74aa6000 C:\Windows\SysWOW64\cryptsp.dll
ModLoad: 73cb0000 73cb8000 C:\Windows\SysWOW64\credssp.dll
ModLoad: 00000000`73c60000 00000000`73ca2000 C:\Windows
\SysWOW64\msv1_0.DLL
ModLoad: 00000000`73c40000 00000000`73c51000 C:\Windows
\SysWOW64\cryptdll.dll
ModLoad: 00000000`73890000 00000000`738a8000 C:\Windows
\SysWOW64\ntdsapi.dll
ModLoad: 00000000`74a10000 00000000`74a4c000 C:\Windows
\SysWOW64\mswsock.dll
ModLoad: 00000000`74a00000 00000000`74a05000 C:\Windows
\SysWOW64\wshtcpip.dll
ModLoad: 00000000`738b0000 00000000`738b6000 C:\Windows
\SysWOW64\wship6.dll
ModLoad: 00000000`0ac30000 00000000`0ac41000 C:\Program Files
(x86)\Juniper Networks\Secure Application Manager\samnsp.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
ModLoad: 00000000`74970000 00000000`749b4000 C:\Windows
\SysWOW64\DNSAPI.dll
(2010.16e4): C++ EH exception - code e06d7363 (first chance)
(2010.16e4): C++ EH exception - code e06d7363 (first chance)
(2010.16e4): C++ EH exception - code e06d7363 (first chance)
(2010.16e4): C++ EH exception - code e06d7363 (first chance)
(2010.16e4): C++ EH exception - code e06d7363 (first chance)
pete
2011-07-14 05:39:14 UTC
Permalink
Raw Message
I can answer my own question: I need to use the WinDbg (x86).

So I installed this on a WinXP machine and simply copied the entire
folder:

Program Files\Debugging Tools for Windows (x86)

from my WinXP machine to the folder:

C:\Program Files (x86)\Debugging Tools for Windows (x86)

on my Windows 7 machine. This works fine now.

Loading...