[Mono-bugs] [Bug 78570][Wis] New - Wrong/missing strack trace information for nested type method

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jun 2 15:11:51 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 rodrigobamboo at gmail.com.

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

--- shadow/78570	2006-06-02 15:11:51.000000000 -0400
+++ shadow/78570.tmp.2322	2006-06-02 15:11:51.000000000 -0400
@@ -0,0 +1,61 @@
+Bug#: 78570
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: Windows XP
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: debug
+AssignedTo: martin at ximian.com                            
+ReportedBy: rodrigobamboo at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Wrong/missing strack trace information for nested type method
+
+The following boo application:
+
+    class Foo:
+        def zeng():
+            return Bar().baz()
+
+    class Bar:
+        def baz():
+            raise "ai"
+            return 42
+
+    Foo().zeng()
+
+when compiled and ran with the latest mono (1.1.15) produces the following
+stack trace output:
+
+Unhandled Exception: System.ApplicationException: ai
+in [0x0000a] (at SimpleBoo.boo:6) Bar:baz ()
+in [0x00005] (at SimpleBoo.boo:3) Foo:zeng ()
+in [0x00005] (at SimpleBoo.boo:9) SimpleBooModule:Main (System.String[] argv)
+
+with correct line information. The basic same program but defining Bar as a
+nested type:
+
+    class Foo:
+        def zeng():
+            return Bar().baz()
+        class Bar:
+            def baz():
+                raise "ai"
+                return 42
+
+    Foo().zeng()
+
+
+fails to provide correct line numbers for the nested type method:
+
+Unhandled Exception: System.ApplicationException: ai
+in <0x0002e> Foo+Bar:baz ()
+in [0x00005] (at SimpleBoo.boo:3) Foo:zeng ()
+in [0x00005] (at SimpleBoo.boo:9) SimpleBooModule:Main (System.String[] argv)
+
+Both programs output the correct stack trace information on ms.net.


More information about the mono-bugs mailing list