Discussion:
An invalid HANDLE was specified: dumps when app verifier is runnin
(too old to reply)
John
2008-06-05 18:31:04 UTC
Permalink
I am using ssl in my application and when app verifier is running then my
application just crashesh when ssl tries to close the connection. it works
when app verifier is not running.

This error is thrown under AppVerifier -
ERROR_CODE: (NTSTATUS) 0xc0000008 - An invalid HANDLE was specified.

This is the stack.

0:007> kb
ChildEBP RetAddr Args to Child
0871f684 00393933 08ad76af 022aaff8 022aaff0 ntdll!DbgBreakPoint
0871f888 003d3001 003d7ba8 00000300 c0000008
vrfcore!VerifierStopMessageEx+0x4bd
0871f8ac 003c8f5b 00000300 003c3204 c0000008
vfbasics!VfBasicsStopMessage+0xd1
0871f8e0 7c84f937 0871f8f8 0871fc78 00000025
vfbasics!AVrfpVectoredExceptionHandler+0x9b
0871f908 7c813fb5 00000000 022aaff0 7c888f68
ntdll!RtlpCallVectoredHandlers+0x57
0871f91c 7c814055 0871fc78 0871f99c 000002b0
ntdll!RtlCallVectoredExceptionHandlers+0x15
0871f98c 7c82eda4 0871fc78 0871f99c 00010007 ntdll!RtlDispatchException+0x19
0871fc6c 7c82ed3b 0871fc78 c0000008 00000000 ntdll!RtlRaiseException+0x3d
0871fccc 7c821a34 77e91822 000002b0 00000004
ntdll!KiRaiseUserExceptionDispatcher+0x37
0871fcd0 77e91822 000002b0 00000004 0871fcf6 ntdll!ZwQueryObject+0xc
0871fcec 71c0be3a 000002b0 0871fd0c 00000000
kernel32!GetHandleInformation+0x5f
0871fd04 71c106f0 000002b0 0ae14fc0 0ae14fc0
WS2_32!DSOCKET::FindIFSSocket+0x1c
0871fd28 063033f2 000002b0 0a30c6f0 00000025 WS2_32!send+0x50
0871fd44 062f241f 0ae14fc0 0a30c6f0 00000025 ssl!sock_write+0x22
0871fd64 062e9333 0ae14fc0 0a30c6f0 00000025 ssl!BIO_write+0x6f

any one can tell me whats going on here? i m newbee on windows
applications.... :-(

thanks.
subba
2008-07-15 01:18:02 UTC
Permalink
Appverifier is complianing that invalid handle was passed in the current
stack trace. In most cases, the problem is that the handle specified as
parameter to BIO_write was incorrect. The first step is to see what handle
was passed and is it still valid ( not closed...)


These help topics might help:
1. From appverif.chm:
- Handles Stop Details
- Debugging Handles Errors
2. From debugger.chm
(http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx#a):
- !htrace

Subba Raju
Post by John
I am using ssl in my application and when app verifier is running then my
application just crashesh when ssl tries to close the connection. it works
when app verifier is not running.
This error is thrown under AppVerifier -
ERROR_CODE: (NTSTATUS) 0xc0000008 - An invalid HANDLE was specified.
This is the stack.
0:007> kb
ChildEBP RetAddr Args to Child
0871f684 00393933 08ad76af 022aaff8 022aaff0 ntdll!DbgBreakPoint
0871f888 003d3001 003d7ba8 00000300 c0000008
vrfcore!VerifierStopMessageEx+0x4bd
0871f8ac 003c8f5b 00000300 003c3204 c0000008
vfbasics!VfBasicsStopMessage+0xd1
0871f8e0 7c84f937 0871f8f8 0871fc78 00000025
vfbasics!AVrfpVectoredExceptionHandler+0x9b
0871f908 7c813fb5 00000000 022aaff0 7c888f68
ntdll!RtlpCallVectoredHandlers+0x57
0871f91c 7c814055 0871fc78 0871f99c 000002b0
ntdll!RtlCallVectoredExceptionHandlers+0x15
0871f98c 7c82eda4 0871fc78 0871f99c 00010007 ntdll!RtlDispatchException+0x19
0871fc6c 7c82ed3b 0871fc78 c0000008 00000000 ntdll!RtlRaiseException+0x3d
0871fccc 7c821a34 77e91822 000002b0 00000004
ntdll!KiRaiseUserExceptionDispatcher+0x37
0871fcd0 77e91822 000002b0 00000004 0871fcf6 ntdll!ZwQueryObject+0xc
0871fcec 71c0be3a 000002b0 0871fd0c 00000000
kernel32!GetHandleInformation+0x5f
0871fd04 71c106f0 000002b0 0ae14fc0 0ae14fc0
WS2_32!DSOCKET::FindIFSSocket+0x1c
0871fd28 063033f2 000002b0 0a30c6f0 00000025 WS2_32!send+0x50
0871fd44 062f241f 0ae14fc0 0a30c6f0 00000025 ssl!sock_write+0x22
0871fd64 062e9333 0ae14fc0 0a30c6f0 00000025 ssl!BIO_write+0x6f
any one can tell me whats going on here? i m newbee on windows
applications.... :-(
thanks.
Loading...