[Mono-bugs] [Bug 457439] New: Wrong Line Numbers in StackTraces

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 8 17:38:10 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=457439


           Summary: Wrong Line Numbers in StackTraces
           Product: Mono: Runtime
           Version: SVN
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: contact at i-nz.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


The line numbers in stack traces are wrong in SVN HEAD.

E.g the test case below generates:

Unhandled Exception: System.NotImplementedException: The requested feature is
not implemented.
  at Tests.Tester.SomeMethod () [0x00000] in
/home/ivanz/tmp/stacktrace-lines-test.cs:1 
  at Tests.Tester.Main (System.String[] args) [0x00000] in
/home/ivanz/tmp/stacktrace-lines-test.cs:1 



using System;

namespace Tests
{
        public class Tester
        {
                public static void Main (string[] args)
                {
                        SomeMethod ();
                }

                public static void SomeMethod ()
                {
                        int a = 2;
                        int b = 3;
                        ThrowException ();
                        ThrowException ();
                        if (true) { 
                                int c = 5;
                                c = 10;
                        }
                }

                public static void ThrowException ()
                {
                        throw new NotImplementedException ();
                }
        }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list