[Mono-bugs] [Bug 46137][Wis] New - Odd things happen when mixing embeded mono and pthreads
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Fri, 11 Jul 2003 02:39:36 -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 eric@5stops.com.
http://bugzilla.ximian.com/show_bug.cgi?id=46137
--- shadow/46137 Fri Jul 11 02:39:36 2003
+++ shadow/46137.tmp.21471 Fri Jul 11 02:39:36 2003
@@ -0,0 +1,72 @@
+Bug#: 46137
+Product: Mono/Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: eric@5stops.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Odd things happen when mixing embeded mono and pthreads
+
+When attempting to embed mono in my threaded C application, i've found many
+odd things happening.
+
+I have included 3 different versions of a test app, using pthreads in
+varying ways.
+
+oxide-1 is the version without using pthreads.
+
+oxide-2 is the most peculiar one--it displays an odd exception that doesn't
+make much sense.
+
+i found changing System.Web.Hosting/ApplicationHost.cs to print out
+AppDomain.FriendlyName induced odd exceptions in the marshaling:
+
+Exception in base domain:
+System.NullReferenceException: A null value was found where an object
+instance was required
+in [0x00000] (at
+/home/eric/src/mono/mcs/class/corlib/System.Runtime.Remoting.Messaging/CADMessages.cs:131)
+00 System.Runtime.Remoting.Messaging.CADMessageBase:UnmarshalArgument
+(object,System.Collections.ArrayList)
+in [0x00007] (at
+/home/eric/src/mono/mcs/class/corlib/System.Runtime.Remoting.Messaging/CADMessages.cs:325)
+00 System.Runtime.Remoting.Messaging.CADMethodReturnMessage:GetReturnValue
+(System.Collections.ArrayList)
+in [0x00048] (at
+/home/eric/src/mono/mcs/class/corlib/System.Runtime.Remoting.Messaging/MethodResponse.cs:95)
+00 System.Runtime.Remoting.Messaging.MethodResponse:.ctor
+(System.Runtime.Remoting.Messaging.IMethodCallMessage,System.Runtime.Remoting.Messaging.CADMethodReturnMessage)
+in [0x000ac] (at
+/home/eric/src/mono/mcs/class/corlib/System.Runtime.Remoting.Channels/CrossAppDomainChannel.cs:205)
+00 System.Runtime.Remoting.Channels.CrossAppDomainSink:SyncProcessMessage
+(System.Runtime.Remoting.Messaging.IMessage)
+
+
+Unhandled Exception: System.NullReferenceException: A null value was found
+where an object instance was required
+in [0x0000e] (at
+/home/eric/src/mono/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs:92)
+00 System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke
+(System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messaging.IMessage,System.Exception&,object[]&)
+in (unmanaged) 07 System.AppDomain:get_FriendlyName ()
+in <0x00004> 07 System.AppDomain:get_FriendlyName ()
+in <0x00035> 08 System.AppDomain:get_FriendlyName ()
+in [0x000e0] (at
+/home/eric/src/mono/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs:64)
+00 System.Web.Hosting.ApplicationHost:CreateApplicationHost
+(System.Type,string,string)
+in [0x0000c] (at
+/home/eric/src/oxide_test/managed/OxideApplicationHost.cs:46) 00
+Fivestops.Oxide.OxideApplicationHost:CreateApplicationHost (string,string)
+
+
+i will attach a tar after i submit this.