Closed jcondex closed 11 years ago
The ExceptionsThrownEverywhere test hit this using ServerSentEvents.
0:103> !gcroot 000000e69d607e38
Thread 17d0:
*** WARNING: Unable to verify checksum for C:\eth\68b51de0-3e56-453b-8a9f-9bb851280b85\Microsoft.Test.Stress.dll
000000e6968ae640 000007fb80616e34 Microsoft.Test.Stress.StressTest.WaitForTestToComplete() [c:\Stress\src\Microsoft.Test.Stress\StressTest.cs @ 918]
rbp+110: 000000e6968ae770
-> 000000e698bfbc00 Microsoft.Test.Stress.StressTest
-> 000000e698bffe28 Microsoft.Test.Stress.TimeoutManager
-> 000000e698c0fab0 System.Threading.Timer
-> 000000e698c0fbc0 System.Threading.TimerHolder
<CUT>
-> 000000e69d1453e0 System.Threading.TimerQueueTimer
-> 000000e69d1457b0 System.Threading.TimerQueueTimer
-> 000000e69d145750 System.Threading.TimerCallback
-> 000000e69d1456e8 System.Threading.Tasks.TaskCompletionSource`1[[System.Object, mscorlib]]
-> 000000e69d145700 System.Threading.Tasks.Task`1[[System.Object, mscorlib]]
-> 000000e69d1458b0 System.Threading.Tasks.StandardTaskContinuation
-> 000000e69d145860 System.Threading.Tasks.ContinuationTaskFromResultTask`1[[System.Object, mscorlib]]
-> 000000e69d145a30 System.Threading.Tasks.StandardTaskContinuation
-> 000000e69d1459e0 System.Threading.Tasks.ContinuationTaskFromTask
-> 000000e69d1459a0 System.Action`1[[System.Threading.Tasks.Task, mscorlib]]
-> 000000e69d145918 Microsoft.AspNet.SignalR.TaskAsyncHelper+<>c__DisplayClass2e
-> 000000e69d1458d8 System.Action
-> 000000e69d129d48 Microsoft.AspNet.SignalR.Client.Transports.ServerSentEventsTransport+<>c__DisplayClassf
-> 000000e69d0f7c78 Microsoft.AspNet.SignalR.Client.Transports.ServerSentEventsTransport
-> 000000e69d153a08 System.Threading.ManualResetEvent
Does this still happen?
The last run did not fail due to leaking handles, but because of a memory leak. It's likely that the leak is related to the leaking handles.
This issue reproduced again in yesterdays run.
The AbortStopDisconnect scenario leaks event handles.
I have uploaded the dump file here: \indigofs\commonshare\jconde\SignalR\Bugs\1717
Here is the investigation that will help you fix this:
0:203> !handle
0:203> !handle 00000000000025e4 ff
0:203> !dumpheap -type Event -stat
0:203> !dumpheap -mt 000007f7b9ab4e70
0:203> !gcroot 00000006c7f754d0