[Mono-bugs] [Bug 74154][Maj] Changed - Mutex test causes shared_handle_data->type == type assert

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 19 Apr 2005 10:32:28 -0400 (EDT)


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 lupus@ximian.com.

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

--- shadow/74154	2005-04-19 06:14:32.000000000 -0400
+++ shadow/74154.tmp.26867	2005-04-19 10:32:28.000000000 -0400
@@ -11,13 +11,13 @@
 AssignedTo: dick@ximian.com                            
 ReportedBy: cgaisford@novell.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: grompf@sublimeintervention.com,jpallen@novell.com,miguel@ximian.com
-Summary: Mutex class locks on OS X in simple application
+Summary: Mutex test causes shared_handle_data->type == type assert
 
 The Mutex class appears to have some problems on OS X.  I will attach a
 sample app that starts up three processes, each process will start three
 threads that simple print to the screen.  The printing is protected by a
 mutex so only a full line of text (5 chars) should print at a time.  The
 app runs fine on Linux but hangs on OS X.
@@ -117,6 +117,16 @@
 Verified that this bug exists.
 
 ------- Additional Comments From dick@ximian.com  2005-04-19 06:14 -------
 Created an attachment (id=14969)
 Patch that should fix the mutex bug
 
+
+------- Additional Comments From lupus@ximian.com  2005-04-19 10:32 -------
+An update to the bug: Dick's patch fixes the mutex issue.
+The test case still exposes another issue: sometimes an assert is hit
+(it happens on the dual g5 once every 10-20 runs for me).
+The message is:
+** ERROR **: file handles.c: line 584 (_wapi_lookup_handle): assertion
+failed: (shared_handle_data->type == type)
+aborting...
+This is not ppc or osx specific, since it happens on x86, too.