mail-archives/mono-bugs/2003-July/006286.html

136 строки
5.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 46137][Wis] New - Odd things happen when mixing embeded mono and pthreads
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="006285.html">
<LINK REL="Next" HREF="006287.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 46137][Wis] New - Odd things happen when mixing embeded mono and pthreads
</H1>
<B>bugzilla-daemon@rocky.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
TITLE="[Mono-bugs] [Bug 46137][Wis] New - Odd things happen when mixing embeded mono and pthreads">bugzilla-daemon@rocky.ximian.com
</A><BR>
<I>Fri, 11 Jul 2003 02:39:36 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="006285.html">[Mono-bugs] =?ISO-8859-1?B?Q2FuknQgYg==?=elieve=?ISO-8859-1?B?IEkgZm91bmQgeQ==?=ou
</A></li>
<LI> Next message: <A HREF="006287.html">[Mono-bugs] [Bug 46137][Wis] Changed - Odd things happen when mixing embeded mono and pthreads
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6286">[ date ]</a>
<a href="thread.html#6286">[ thread ]</a>
<a href="subject.html#6286">[ subject ]</a>
<a href="author.html#6286">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="mailto:eric@5stops.com.">eric@5stops.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=46137">http://bugzilla.ximian.com/show_bug.cgi?id=46137</A>
--- 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: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+ReportedBy: <A HREF="mailto:eric@5stops.com">eric@5stops.com</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+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&amp;,object[]&amp;)
+in (unmanaged) 07 System.AppDomain:get_FriendlyName ()
+in &lt;0x00004&gt; 07 System.AppDomain:get_FriendlyName ()
+in &lt;0x00035&gt; 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.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="006285.html">[Mono-bugs] =?ISO-8859-1?B?Q2FuknQgYg==?=elieve=?ISO-8859-1?B?IEkgZm91bmQgeQ==?=ou
</A></li>
<LI> Next message: <A HREF="006287.html">[Mono-bugs] [Bug 46137][Wis] Changed - Odd things happen when mixing embeded mono and pthreads
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6286">[ date ]</a>
<a href="thread.html#6286">[ thread ]</a>
<a href="subject.html#6286">[ subject ]</a>
<a href="author.html#6286">[ author ]</a>
</LI>
</UL>
</body></html>