[Mono-bugs] [Bug 78573][Cri] New - Stack traces line numbers always point to method start

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jun 3 13:34:16 EDT 2006


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 miguel at ximian.com.

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

--- shadow/78573	2006-06-03 13:34:16.000000000 -0400
+++ shadow/78573.tmp.22170	2006-06-03 13:34:16.000000000 -0400
@@ -0,0 +1,62 @@
+Bug#: 78573
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: debug
+AssignedTo: martin at ximian.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Stack traces line numbers always point to method start
+
+This is a large regression, now instead of getting the next line number on
+stack traces, we always get the first line of a method reported.
+
+Consider the following program:
+
+using System;
+class Foo {
+        int Zeng ()
+        {
+                Console.WriteLine ("Dingus");
+                Console.WriteLine ("Dingus");
+                Console.WriteLine ("Dingus");
+                Console.WriteLine ("Dingus");
+                Console.WriteLine ("Dingus");
+                return new Bar ().Baz ();
+        }
+
+public  class Bar {
+                public int Baz ()
+                {
+                Console.WriteLine ("Dingus");
+                Console.WriteLine ("Dingus");
+                Console.WriteLine ("Dingus");
+                        throw new Exception ();
+                }
+        }
+
+        static void Main ()
+        {
+                Console.WriteLine ("Dingus");
+                Console.WriteLine ("Dingus");
+                Console.WriteLine ("Dingus");
+                new Foo ().Zeng ();
+        }
+}
+
+The stack trace reported is:
+Unhandled Exception: System.Exception: Exception of type System.Exception
+was thrown.
+  at Foo+Bar.Baz () [0x00000] in /tmp/ju.cs:16
+  at Foo.Zeng () [0x00000] in /tmp/ju.cs:5
+  at Foo.Main () [0x00000] in /tmp/ju.cs:25
+
+Which does not correspond to anything remotely useful.


More information about the mono-bugs mailing list