[Mono-bugs] [Bug 53177][Nor] New - WaitHandles are not finalizing

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 21 Jan 2004 13:25:28 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by derek.mcumber@datamtnsol.com.

http://bugzilla.ximian.com/show_bug.cgi?id=53177

--- shadow/53177	2004-01-21 13:25:27.000000000 -0500
+++ shadow/53177.tmp.5275	2004-01-21 13:25:27.000000000 -0500
@@ -0,0 +1,110 @@
+Bug#: 53177
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: derek.mcumber@datamtnsol.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: WaitHandles are not finalizing
+
+WaitHandles are not being finalized until the application shuts down.
+
+Steps to reproduce the problem:
+1. Compile this test case and run with both csc.exe and mcs.exe
+2. Memory usage with MS.NET: <5Meg 
+3. Memory usage with mono.exe: 53Meg
+
+Actual Results:
+After hitting 'Enter' to stop the program in Mono (with
+debugging in gc.c turned on), the finzlizers are finally
+called on all WaitHandles (plus some undeclared objects?):
+Finalize run on 00E79B58 System.IO.FileStream
+Finalize run on 00E76750 System.Threading.WaitHandle
+Finalize run on 01632E58 System.Threading.WaitHandle
+Finalize run on 016308A0 System.Threading.WaitHandle
+Finalize run on 01632C78 System.Threading.WaitHandle
+Finalize run on 016328B8 System.Threading.WaitHandle
+Finalize run on 01630BD0 System.Threading.AutoResetEven
+Finalize run on 00E764E0 System.Threading.WaitHandle
+Finalize run on 016324F8 System.Threading.WaitHandle
+Finalize run on 01632180 System.Threading.WaitHandle
+Finalize run on 00E79F20 System.IO.FileStream
+Finalize run on 016309A8 System.Threading.WaitHandle
+Finalize run on 01632318 System.Threading.WaitHandle
+Finalize run on 01630408 System.Threading.WaitHandle
+Finalize run on 00E76450 System.Threading.WaitHandle
+Finalize run on 01630AF8 System.Threading.WaitHandle
+Finalize run on 01632CF0 System.Threading.WaitHandle
+Finalize run on 016305A0 System.Threading.WaitHandle
+Finalize run on 01632978 System.Threading.WaitHandle
+Finalize run on 00E76918 System.Threading.WaitHandle
+Finalize run on 00E7CBD0 System.IO.StreamWriter
+Finalize run on 00E76E28 System.Threading.WaitHandle
+Finalize run on 01632750 System.Threading.WaitHandle
+Finalize run on 00E7CC40 System.IO.StreamWriter
+Finalize run on 00E79BB0 System.IO.FileStream
+Finalize run on 00E76378 System.Threading.WaitHandle
+Finalize run on 01630A20 System.Threading.WaitHandle
+Finalize run on 01632DF8 System.Threading.WaitHandle
+Finalize run on 01630F30 System.Threading.WaitHandle
+Finalize run on 01630840 System.Threading.WaitHandle
+Finalize run on 016321B0 System.Threading.WaitHandle
+Finalize run on 00E76150 System.Threading.WaitHandle
+Finalize run on 01630108 System.Threading.WaitHandle
+Finalize run on 016302A0 System.Threading.WaitHandle
+Finalize run on 01632678 System.Threading.WaitHandle
+Finalize run on 01632B88 System.Threading.WaitHandle
+Finalize run on 00E76B28 System.Threading.WaitHandle
+Finalize run on 00E767B0 System.Threading.WaitHandle
+Finalize run on 01630E58 System.Threading.WaitHandle
+Finalize run on 00E765D0 System.Threading.WaitHandle
+Finalize run on 016325E8 System.Threading.WaitHandle
+Finalize run on 01630720 System.Threading.WaitHandle
+Finalize run on 01632AF8 System.Threading.WaitHandle
+Finalize run on 00E76210 System.Threading.WaitHandle
+Finalize run on 016306D8 System.Threading.WaitHandle
+Finalize run on 01630DC8 System.Threading.WaitHandle
+Finalize run on 01632048 System.Threading.WaitHandle
+Finalize run on 01632FC0 System.Threading.WaitHandle
+Finalize run on 01632378 System.Threading.WaitHandle
+Finalize run on 01630138 System.Threading.WaitHandle
+Finalize run on 01630BA0 System.Threading.WaitHandle
+Finalize run on 01632F78 System.Threading.WaitHandle
+Finalize run on 01632A20 System.Threading.WaitHandle
+Finalize run on 01630D38 System.Threading.WaitHandle
+Finalize run on 00E76BA0 System.Threading.WaitHandle
+Finalize run on 01630ED0 System.Threading.WaitHandle
+Finalize run on 01630CF0 System.Threading.WaitHandle
+Finalize run on 00E76648 System.Threading.WaitHandle
+Finalize run on 00E7CC08 System.IO.StreamWriter
+Finalize run on 00E769C0 System.Threading.WaitHandle
+Finalize run on 00E762D0 System.Threading.WaitHandle
+Finalize run on 01630288 System.Threading.WaitHandle
+Finalize run on 01630B10 System.Threading.WaitHandle
+Finalize run on 01630E88 System.Threading.WaitHandle
+Finalize run on 01632480 System.Threading.WaitHandle
+Finalize run on 01630420 System.Threading.WaitHandle
+Finalize run on 016327F8 System.Threading.WaitHandle
+Finalize run on 00E76978 System.Threading.WaitHandle
+Finalize run on 01630CA8 System.Threading.WaitHandle
+Finalize run on 00E760A8 System.Threading.WaitHandle
+Finalize run on 01630C60 System.Threading.WaitHandle
+Finalize run on 01630570 System.Threading.WaitHandle
+
+Expected Results:
+Finalizers should run when scope of for loop ends or
+when Close() is called.
+
+How often does this happen? 
+everytime
+
+Additional Information: