[Mono-bugs] [Bug 71375][Nor] New - the runtime gives incomplete exception stack trace

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 18 Jan 2005 03:06: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 atsushi@ximian.com.

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

--- shadow/71375	2005-01-18 03:06:51.000000000 -0500
+++ shadow/71375.tmp.12313	2005-01-18 03:06:51.000000000 -0500
@@ -0,0 +1,87 @@
+Bug#: 71375
+Product: Mono: Runtime
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: atsushi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: the runtime gives incomplete exception stack trace 
+
+The latest runtime gives incomplete exception stack trace, at least mono on
+windows environment.
+
+Steps to reproduce the problem:
+Save these two files in the same directory:
+
+---- any-name-is-ok.cs ----
+using System;
+using System.Data;
+
+public class Test
+{
+        public static void Main ()
+        {
+                DataSet ds = new DataSet ();
+                ds.ReadXml ("70961.xml");
+        }
+}
+
+---- 70961.xml (from bug #70961) ----
+<?xml version="1.0" encoding="shift_jis"?>
+<DataSet>
+  <xs:schema xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="Quota"
+xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+    <xs:element name="Quota" msdata:IsDataSet="true" msdata:Locale="ja-JP">
+      <xs:complexType>
+        <xs:choice maxOccurs="unbounded">
+          <xs:element name="Dimension">
+            <xs:complexType>
+              <xs:attribute use="required" type="xs:int" name="Number" />
+              <xs:attribute use="required" type="xs:string" name="Title" />
+            </xs:complexType>
+          </xs:element>
+        </xs:choice>
+      </xs:complexType>
+      <xs:unique name="PK_Dimension" msdata:PrimaryKey="true">
+        <xs:selector xpath=".//Dimension" />
+        <xs:field xpath="@Number" />
+      </xs:unique>
+    </xs:element>
+  </xs:schema>
+  <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
+xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
+    <Quota>
+      <Dimension diffgr:id="Dimension1" msdata:rowOrder="0" Number="0"
+Title="Hospitals" />
+      <Dimension diffgr:id="Dimension2" msdata:rowOrder="1" Number="1"
+Title="Doctors" />
+    </Quota>
+  </diffgr:diffgram>
+</DataSet>
+
+Actual Results:
+
+$ mono exception-stacktrace.exe
+
+Unhandled Exception: System.Data.ConstraintException: Unique key violation
+in <0x00119> System.Data.Index:Insert
+(System.Data.Node,System.Data.DataRowVerson)
+in <0x00118> System.Data.DataTable:InitializeIndex (System.Data.Index)
+in <0x000f2> System.Data.UniqueConstraint:AssertConstraint ()
+
+Expected Results:
+
+In addition to the stack trace above, there must be a sequence of dumped
+stacks up to Main().
+
+How often does this happen? 
+Happens at least on this windows box.