[Mono-bugs] [Bug 75891][Nor] Changed - _wapi_handle_share_release: assertion failed: (info->handle_refs > 0)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Sep 13 15:38:56 EDT 2005

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 trow at ximian.com.


--- shadow/75891	2005-09-13 07:43:13.000000000 -0400
+++ shadow/75891.tmp.14852	2005-09-13 15:38:56.000000000 -0400
@@ -51,6 +51,25 @@
 The problem this patch addresses is opening a file for a second time,
 when for some reason the file descriptor for the first time has been
 closed "behind the back" of io-layer.  It will now return a share
 violation because the file handle is still open, rather than wiping
 out the share info and crashing later when the handles are closed. 
 I'm not sure this is the best rememdy, but it fixes this particular case.
+------- Additional Comments From trow at ximian.com  2005-09-13 15:38 -------
+Dick: It shouldn't take *that* long to run.  Could the process be
+wedged, or does it seem to be doing something?
+I built mono with your latest patch.  The patch definitely
+helps --- bludgeon ran longer than ever --- but I got the exact same
+assertion again after a few minutes.  In the cases I've observed, it
+always seems to happen after a file has been deleted.
+I'm not sure what would cause a fd to get closed behind the io-layer's
+back... AFAIK, we never manipulate file descriptors directly.
+A good bludgeon test to run is:
+bludgeon --cycles 50 --total-time 10 Basic:*
+That will do 50 random operations on the file system, wait for the
+beagled to finish indexing, and then systematically check that the
+index and the file system are in sync.  It will keep doing this until
+10 minutes has passed or until it finds an inconsistency in the index.

More information about the mono-bugs mailing list