[Mono-bugs] [Bug 81438][Nor] New - Global vars in native code are shared across appdomain bounardies

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Apr 24 11:01:39 EDT 2007


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 j.heidenkamp at web.de.

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

--- shadow/81438	2007-04-24 11:01:39.000000000 -0400
+++ shadow/81438.tmp.18118	2007-04-24 11:01:39.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 81438
+Product: Mono: Runtime
+Version: 1.2
+OS: 
+OS Details: OpenSuse 10.1, mono runtime 1.2.3.1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: interop
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: j.heidenkamp at web.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Global vars in native code are shared across appdomain bounardies
+
+it seems that the mono runtime does not load seperate instances of native 
+code/memory for different application domains (at least when executing 
+asp.net apps).
+
+I've attached a small testcase for better explanation. The testcase has a  
+small .c file which holds a global int variable and 2 functions to read/
+write from it, a c# test class and a aspx page for output.
+
+when test.aspx is called it loads the int value from the native dll, 
+outputs it and set it to a new value. When same test.aspx installed in 
+different webapplication and run shortly afterwards, the value is the same 
+as set by the former call, though both webapps should run in different 
+application domains and thus be isolated from each other.
+
+I'm not sure if this is really a bug in the runtime (but in the mod-mono-
+server/xsp?), because mono might only seperate managed memory in 
+application domains, not native memory.
+
+
+
+
+Steps to reproduce the problem:
+see above 
+
+Actual Results:
+value of global variable in native memory is shared across appdomain 
+boundaries
+
+Expected Results:
+native memory is seperated and isolated within each application domain
+
+How often does this happen? 
+always


More information about the mono-bugs mailing list