STATUS_INVALID_HANDLE

C

Casper Hornstrup

I have created an ASP.NET webservice. The webservice is
accessed from
a flash movie created with Flash MX 2004 Professional. I'm
experiencing
random crashes in the webservice, but I have not been able
to reproduce
the crash on demand.

Is this a known issue and is Microsoft working on a fix
for this?

Casper Hornstrup
Csite.com

----------------------------------
Windows 2003 Enterprise Edition

Applied hotfixes:
(Fully upgraded via windows update on 14 jan. 2004)
KB 818529 KB 819696 KB 822925 KB 823182 KB 823559
KB 823980 KB 824105 KB 824141 KB 824145 KB 824146
KB 825119 KB 828035 KB 828750 KB 829558 KB 832483

----------------------------------
..NET Service Packs and Hotfixes:
None


----------------------------------
Debugger output:

*** wait with pending attach
Symbol search path is:
SRV*c:\Symbols*http://msdl.microsoft.com/download/symbols
Executable search path is:
ModLoad: 01000000 01004000 c:\windows\system32
\inetsrv\w3wp.exe
ModLoad: 77f40000 77ffa000 C:\WINDOWS\system32\ntdll.dll
ModLoad: 77e40000 77f34000 C:\WINDOWS\system32
\kernel32.dll
ModLoad: 77ba0000 77bf4000 C:\WINDOWS\system32\msvcrt.dll
ModLoad: 77da0000 77e30000 C:\WINDOWS\system32
\ADVAPI32.dll
ModLoad: 77c50000 77cf4000 C:\WINDOWS\system32\RPCRT4.dll
ModLoad: 77d00000 77d8f000 C:\WINDOWS\system32\USER32.dll
ModLoad: 77c00000 77c44000 C:\WINDOWS\system32\GDI32.dll
ModLoad: 77160000 77284000 C:\WINDOWS\system32\ole32.dll
ModLoad: 64700000 64731000 c:\windows\system32
\inetsrv\IISUTIL.dll
ModLoad: 5a390000 5a3e5000 c:\windows\system32
\inetsrv\w3core.dll
ModLoad: 770e0000 7715d000 C:\WINDOWS\system32
\OLEAUT32.dll
ModLoad: 76f50000 76f63000 C:\WINDOWS\system32
\Secur32.dll
ModLoad: 71bb0000 71bb9000 C:\WINDOWS\system32
\WSOCK32.dll
ModLoad: 71c00000 71c18000 C:\WINDOWS\system32\WS2_32.dll
ModLoad: 71bf0000 71bf8000 C:\WINDOWS\system32
\WS2HELP.dll
ModLoad: 761b0000 76248000 C:\WINDOWS\system32
\CRYPT32.dll
ModLoad: 76190000 761a2000 C:\WINDOWS\system32\MSASN1.dll
ModLoad: 5a400000 5a409000 c:\windows\system32
\inetsrv\W3CACHE.dll
ModLoad: 5a300000 5a307000 c:\windows\system32
\inetsrv\W3TP.dll
ModLoad: 5a360000 5a36c000 c:\windows\system32
\inetsrv\w3dt.dll
ModLoad: 67150000 6715a000 C:\WINDOWS\system32
\HTTPAPI.dll
ModLoad: 77290000 772d9000 C:\WINDOWS\system32
\SHLWAPI.dll
ModLoad: 5b640000 5b655000 C:\WINDOWS\system32
\strmfilt.dll
ModLoad: 5a3f0000 5a3f6000 c:\windows\system32
\inetsrv\W3COMLOG.dll
ModLoad: 62da0000 62da7000 c:\windows\system32
\inetsrv\LONSINT.dll
ModLoad: 647b0000 647d4000 C:\WINDOWS\system32\IisRTL.DLL
ModLoad: 71c40000 71c93000 C:\WINDOWS\system32
\NETAPI32.dll
ModLoad: 5a120000 5a130000 c:\windows\system32
\inetsrv\wamreg.DLL
ModLoad: 64830000 64840000 C:\WINDOWS\system32\IISMAP.dll
ModLoad: 647f0000 64810000 c:\windows\system32
\inetsrv\iisres.dll
ModLoad: 76f90000 7700e000 C:\WINDOWS\system32
\CLBCatQ.DLL
ModLoad: 77010000 770d6000 C:\WINDOWS\system32\COMRes.dll
ModLoad: 77b90000 77b98000 C:\WINDOWS\system32
\VERSION.dll
ModLoad: 71430000 71440000 C:\WINDOWS\system32
\ADMWPROX.DLL
ModLoad: 0ffd0000 0fffd000 C:\WINDOWS\system32\rsaenh.dll
ModLoad: 76b70000 76b7b000 C:\WINDOWS\system32\PSAPI.DLL
ModLoad: 79e50000 79e56000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
\aspnet_filter.dll
ModLoad: 7c340000 7c396000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\MSVCR71.dll
ModLoad: 5a320000 5a333000 c:\windows\system32
\inetsrv\w3isapi.dll
ModLoad: 71b20000 71b63000 C:\WINDOWS\System32
\mswsock.dll
ModLoad: 76ed0000 76ef7000 C:\WINDOWS\system32\DNSAPI.dll
ModLoad: 76f70000 76f77000 C:\WINDOWS\System32\winrnr.dll
ModLoad: 76f10000 76f3f000 C:\WINDOWS\system32
\WLDAP32.dll
ModLoad: 76f80000 76f85000 C:\WINDOWS\system32
\rasadhlp.dll
ModLoad: 685b0000 685b9000 C:\WINDOWS\system32
\inetsrv\gzip.dll
ModLoad: 76300000 76514000 C:\WINDOWS\system32\msi.dll
ModLoad: 71bd0000 71be1000 C:\WINDOWS\system32\mpr.dll
ModLoad: 79e60000 79ea1000 \\?
\C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
\aspnet_isapi.dll
ModLoad: 75970000 75a2a000 C:\WINDOWS\system32
\USERENV.dll
ModLoad: 79170000 79196000 C:\WINDOWS\system32
\mscoree.dll
ModLoad: 791b0000 79412000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll
ModLoad: 79040000 79085000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
ModLoad: 77380000 77b5d000 C:\WINDOWS\system32
\SHELL32.dll
ModLoad: 70ad0000 70bb6000
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.100.0_x-
ww_8417450B\comctl32.dll
ModLoad: 79780000 79980000
c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll
ModLoad: 79980000 79ca6000
c:\windows\assembly\nativeimages1_v1.1.4322
\mscorlib\1.0.5000.0__b77a5c561934e089_12864896
\mscorlib.dll
ModLoad: 7a090000 7a1c4000
c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d5
0a3a\system.web.dll
ModLoad: 7b0a0000 7b1cc000
c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089
\system.dll
ModLoad: 7b490000 7b506000
c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f
11d50a3a\system.drawing.dll
ModLoad: 7bc10000 7bd5a000
c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934
e089\system.xml.dll
ModLoad: 7a6e0000 7a81e000
c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c56193
4e089\system.data.dll
ModLoad: 79000000 7903e000
c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.
0__b03f5f7f11d50a3a\system.enterpriseservices.dll
ModLoad: 7a2a0000 7a2b2000
c:\windows\assembly\gac\system.web.regularexpressions\1.0.5
000.0__b03f5f7f11d50a3a\system.web.regularexpressions.dll
ModLoad: 10a70000 10a75000
c:\windows\assembly\gac\microsoft.visualc\7.0.5000.0__b03f5
f7f11d50a3a\microsoft.visualc.dll
ModLoad: 7a000000 7a018000
c:\windows\assembly\gac\system.directoryservices\1.0.5000.0
__b03f5f7f11d50a3a\system.directoryservices.dll
ModLoad: 79640000 79692000
c:\windows\assembly\gac\system.runtime.remoting\1.0.5000.0_
_b77a5c561934e089\system.runtime.remoting.dll
ModLoad: 79550000 79574000
c:\windows\assembly\gac\system.runtime.serialization.format
ters.soap\1.0.5000.0__b03f5f7f11d50a3a\system.runtime.seria
lization.formatters.soap.dll
ModLoad: 53760000 5376a000
c:\windows\assembly\gac\cscompmgd\7.0.5000.0__b03f5f7f11d50
a3a\cscompmgd.dll
ModLoad: 79430000 7947c000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\MSCORJIT.DLL
ModLoad: 7a020000 7a05e000
c:\windows\assembly\gac\system.messaging\1.0.5000.0__b03f5f
7f11d50a3a\system.messaging.dll
ModLoad: 79fe0000 79ff6000
c:\windows\assembly\gac\system.configuration.install\1.0.50
00.0__b03f5f7f11d50a3a\system.configuration.install.dll
ModLoad: 7b610000 7b806000
c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b7
7a5c561934e089\system.windows.forms.dll
ModLoad: 79e40000 79e48000
c:\windows\assembly\gac\accessibility\1.0.5000.0__b03f5f7f1
1d50a3a\accessibility.dll
ModLoad: 7a060000 7a082000
c:\windows\assembly\gac\system.serviceprocess\1.0.5000.0__b
03f5f7f11d50a3a\system.serviceprocess.dll
ModLoad: 79510000 79523000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorsn.dll
ModLoad: 01f10000 01f18000
c:\windows\microsoft.net\framework\v1.1.4322\temporary
asp.net files\root\94d90203\d6dadad0\ridlgbuv.dll
ModLoad: 11000000 1100e000
c:\windows\microsoft.net\framework\v1.1.4322\temporary
asp.net files\root\94d90203\d6dadad0\assembly\dl2
\4cfc070e\2a0e374c_e6c3c301\objecttreews.dll
ModLoad: 7a2c0000 7a34e000
c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03
f5f7f11d50a3a\system.web.services.dll
ModLoad: 01f80000 01f8a000
c:\windows\microsoft.net\framework\v1.1.4322\temporary
asp.net files\root\94d90203\d6dadad0\assembly\dl2\8f5c20d1
\fa3c4176_bfd7c301\demo9.dll
ModLoad: 01fa0000 01fa8000
c:\windows\microsoft.net\framework\v1.1.4322\temporary
asp.net files\root\94d90203\d6dadad0\assembly\dl2\36d52699
\fe10b04a_e6c3c301\objecttreeapi.dll
ModLoad: 7a1d0000 7a29c000
c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5
f7f11d50a3a\system.web.mobile.dll
ModLoad: 7ab90000 7ad32000
c:\windows\assembly\gac\system.design\1.0.5000.0__b03f5f7f1
1d50a3a\system.design.dll
ModLoad: 51a70000 51af0000
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
\diasymreader.dll
ModLoad: 08030000 08038000
c:\windows\microsoft.net\framework\v1.1.4322\temporary
asp.net files\root\94d90203\d6dadad0\wcscrr5o.dll
ModLoad: 71ae0000 71ae8000 C:\WINDOWS\System32
\wshtcpip.dll
ModLoad: 517e0000 517ee000 C:\Program Files\Common
Files\Microsoft Shared\VS7Debug\csm.dll
ModLoad: 08380000 0838a000
c:\inetpub\wwwroot\demo\objecttree.demo.csite.com\bin\demo9
..dll
ModLoad: 083b0000 083b8000
c:\inetpub\wwwroot\demo\objecttree.demo.csite.com\bin\objec
ttreeapi.dll
(2a2c.2024): Break instruction exception - code 80000003
(first chance)
eax=7ffdf000 ebx=00000001 ecx=00000002 edx=00000003
esi=00000004 edi=00000005
eip=77f43847 esp=083cffcc ebp=083cfff4 iopl=0 nv
up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038
gs=0000 efl=00000246
ntdll!DbgBreakPoint:
77f43847 cc int 3
0:023> gh
(2a2c.19bc): CLR exception - code e0434f4d (first chance)
(2a2c.19bc): CLR exception - code e0434f4d (first chance)
(2a2c.2808): Invalid handle - code c0000008 (first chance)
First chance exceptions are reported before any exception
handling.
This exception may be expected and handled.
eax=c0000008 ebx=000d11d8 ecx=01aafcb8 edx=77f43879
esi=01aafce8 edi=01aafe94
eip=77f438b0 esp=01aafc64 ebp=01aafcb4 iopl=0 nv
up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038
gs=0000 efl=00000202
ntdll!KiRaiseUserExceptionDispatcher+0x37:
77f438b0 8b0424 mov eax,[esp]
ss:0023:01aafc64=c0000008
0:018> .reload
Reloading current modules
............................................................
..............
0:018> kb
ChildEBP RetAddr Args to Child
01aafcb4 7ffe0304 77f42397 77e41cb3 000003d4 ntdll!
KiRaiseUserExceptionDispatcher+0x37
01aafcb8 77f42397 77e41cb3 000003d4 0195bc7e
SharedUserData!SystemCallStub+0x4
01aafcbc 77e41cb3 000003d4 0195bc7e 000003d4 ntdll!
ZwClose+0xc
01aafd3c 791f9118 01aafdb8 7920fc3f 01aafe94 kernel32!
CloseHandle+0x55
01aafdc8 791f91dd 060d09a8 000d11d8 001120a0 mscorwks!
MethodTable::CallFinalizer+0xee
01aafddc 791e1f08 060d09a8 00117f18 01aaff08 mscorwks!
CallFinalizer+0x84
01aafe74 792dd026 060d09a8 40000000 000d11d8 mscorwks!
CallFinalizer+0x245
01aafe88 792999a8 01aaff08 791b3ce4 01aafef0 mscorwks!
GCHeap::RestartEE+0x73
01aafed0 79262b66 00117f18 792dd013 01aaff08 mscorwks!
Thread::DoADCallBack+0x5c
01aaff70 7921d9b3 060a82dc 40000000 00000000 mscorwks!
CallFinalizer+0x2ea
01aaffb8 77e4a990 00000000 00000000 00000000 mscorwks!
GCHeap::FinalizerThreadStart+0x17c
01aaffec 00000000 791d0020 00000000 00000000 kernel32!
BaseThreadStart+0x34


Disassembly view:
77f43878 90 nop
ntdll!KiRaiseUserExceptionDispatcher:
77f43879 55 push ebp
77f4387a 8bec mov ebp,esp
77f4387c 83ec50 sub esp,0x50
77f4387f 8944240c mov [esp+0xc],eax
77f43883 64a118000000 mov eax,fs:[00000018]
77f43889 8b80a4010000 mov eax,[eax+0x1a4]
77f4388f 890424 mov [esp],eax
77f43892 c744240400000000 mov dword ptr [esp+0x4],0x0
77f4389a c744240800000000 mov dword ptr [esp+0x8],0x0
77f438a2 c744241000000000 mov dword ptr [esp+0x10],0x0
77f438aa 54 push esp
77f438ab e8081a0000 call ntdll!RtlRaiseException
(77f452b8)
77f438b0 8b0424 mov eax,[esp]
ss:0023:01aafc64=c0000008
77f438b3 8be5 mov esp,ebp
77f438b5 5d pop ebp
77f438b6 c3 ret
ntdll!LdrpAccessResourceDataNoMultipleLanguage:
77f438b7 90 nop
77f438b8 90 nop
77f438b9 90 nop
77f438ba 90 nop
77f438bb 90 nop
ntdll!__NtCurrentTeb:
77f438bc 64a118000000 mov eax,fs:[00000018]
77f438c2 c3 ret
77f438c3 90 nop
 
M

MSFT

Hi Casper,

As I understand, all clients of your web service are Flash movies and the
web service crashed randomly on server side. Is this correct? I think you
may check the system eventlog to see if there are any valuable information
recorded. Additionally, what the web service will do? some File I/O? If we
replace it with a simple web service, for example, only accept parameters
and return a simple string for test, will it also crash?

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
C

Casper Hornstrup

-----Original Message-----
Hi Casper,

As I understand, all clients of your web service are Flash movies and the
web service crashed randomly on server side. Is this
correct?

This is correct.
I think you may check the system eventlog to see if there are any valuable information
recorded.

The following event is recorded:

The description for Event ID ( 0 ) in Source ( .NET
Runtime ) cannot be found. The local computer may not have
the necessary registry information or message DLL files to
display messages from a remote computer. You may be able
to use the /AUXSOURCE= flag to retrieve this description;
see Help and Support for details. The following
information is part of the event: .NET Runtime version
1.1.4322.573- : Fatal Execution Engine Error (0x792dc413).

Additionally, what the web service will do? some File I/O?

The webservice uses only managed APIs. It does not crash
on a Windows 2000 Server with .NET framework 1.1. Basicly
the webservice is an intermediate layer between the client
(a flash movie in this case), and a data storage backend
assembly. The whole application is for manipulating a
multi-level category tree and associating objects to the
nodes in the tree. The backend assembly is loaded into a
separate application domain and can be unloaded if a newer
backend assembly is found. The backend assembly in this
case persists the data to an xml file on the webserver.
If we replace it with a simple web service, for example, only accept parameters
and return a simple string for test, will it also crash?

I can check this. I have however many other webservices
running on this server (some also doing file I/O). The
only thing different about this particular webservice is
that it hosts a backend assembly (that does I/O).
 
M

MSFT

Hi Casper,

From the information, there is a very similar known issue in .NET. This
error occurs if the .NET runtime cannot dispose of all of the threads when
the runtime tries to unload the application. This can occur if the .NET
application starts threads and then suspends them so that the threads are
in a suspended state or in a sleeping state when an application is
unloaded. Because the application (not the .NET runtime) starts these
threads, the runtime cannot dispose of these threads. In your case, I
suspect it may occur when the backend assembly is loaded/unload.

There is a hotfix for the known issue I mention. I recommend you submit a
support request to our technical support. Our engineer will assist you
confirm if this is the know issue and send you the hotfix. For detail, you
may browse to:

Http://support.microsoft.com

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
C

Casper Hornstrup

I see. I'm not sure where the correct place to place the
support request is. Please advice.

Thanks,
Casper
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top