[Mono-bugs] [Bug 45730][Maj] New - mono --debug prints wrong line numbers for exception backtrace
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Wed, 2 Jul 2003 10:12:14 -0400 (EDT)
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 m.canini@libero.it.
http://bugzilla.ximian.com/show_bug.cgi?id=45730
--- shadow/45730 Wed Jul 2 10:12:14 2003
+++ shadow/45730.tmp.27734 Wed Jul 2 10:12:14 2003
@@ -0,0 +1,60 @@
+Bug#: 45730
+Product: Mono/Runtime
+Version: unspecified
+OS:
+OS Details: Debian sid
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: m.canini@libero.it
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mono --debug prints wrong line numbers for exception backtrace
+
+Description of Problem:
+mono --debug prints wrong line numbers for exception backtrace
+
+Steps to reproduce the problem:
+1. Compile the code below: mcs -g /target:exe /r:System.dll /out:bug.exe bug.cs
+2. Execute: mono --debug bug.exe
+
+Actual Results:
+The backtrace is wrong: line 22 is printed
+
+Expected Results:
+It should be line 16
+
+How often does this happen?
+Always
+
+Additional Information:
+Code:
+using System;
+
+public class Bug
+{
+ static void Main(string[] args)
+ {
+ Console.WriteLine("test");
+
+ raise();
+
+ Console.WriteLine("bye");
+ }
+
+ private static void raise()
+ {
+ throw new ArgumentException("A");
+ // useless stuff
+ int a = 1;
+ int b = 2;
+ int c;
+ c = a + b;
+ }
+
+}