[Mono-bugs] [Bug 72344][Maj] New - Remoting Stopper: System.Xml.XmlException: Document element did not appear

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 8 Feb 2005 11:09:51 -0500 (EST)

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 willibald.krenn@gmx.at.


--- shadow/72344	2005-02-08 11:09:51.000000000 -0500
+++ shadow/72344.tmp.6519	2005-02-08 11:09:51.000000000 -0500
@@ -0,0 +1,90 @@
+Bug#: 72344
+Product: Mono: Runtime
+Version: unspecified
+OS Details: SuSE 9.0 AMD64
+Status: NEW   
+Severity: 024 Three days
+Priority: Major
+Component: remoting
+AssignedTo: lluis@ximian.com                            
+ReportedBy: Willibald.Krenn@gmx.at               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Remoting Stopper: System.Xml.XmlException: Document element did not appear
+Description of Problem:
+1:N (Server:Client) does not work as expected: Any client N > 1 will die.
+Application tested on MS .NET in 1:4 config - so it's probably an error in
+mono. Simple testcase attached.
+Steps to reproduce the problem:
+1. Compile attached testcase. (NANT build script included)
+2. open at least three shells in the directory where you built the example;
+   shell 1: mono --profile=default:stat LiberCmd.exe
+   shell 2&3: mono LiberLastTest.exe (don't press return)
+3. It's important now to start the two (or more) client instances at the
+same time by pressing return.
+   The bug is more likely to happen if the clients are well-mixed served..
+(That's the reason to start the
+   server with sampling profiler on: Due to the signals it's more likely
+that the threads are executed intermixed.)
+Actual Results:
+Clients will die with
+Unhandled Exception: System.Xml.XmlException: Document element did not
+appear.  Line 1, position 1.
+in <0x0023b> System.Xml.XmlTextReader:Read ()
+in <0x00083> System.Xml.XmlReader:MoveToContent ()
+in <0x000cc>
+in <0x00108>
+in <0x00030>
+in <0x0009b>
+in <0x00159>
+in <0x00419> System.Runtime.Remoting.Proxies.RemotingProxy:Invoke
+in <0x0046a> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke
+Expected Results:
+No exception.
+How often does this happen?
+It depends on how good the server is switching between the clients. The
+more switches the more likely.
+If it can not be reproduced, I can send a modified version of mono that
+includes some early version of the
+continuious optimization framework: The bug will happen everytime more than
+one client is run.
+Additional Information:
+Small testcase with nant build script attached.
+Tested on AMD64.