[Mono-bugs] [Bug 604486] New: JIT shows no respect for DebuggableAttribute

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 10 17:40:18 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=604486

http://bugzilla.novell.com/show_bug.cgi?id=604486#c0


           Summary: JIT shows no respect for DebuggableAttribute
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: x86-64
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: rodrigobamboo at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4
(KHTML, like Gecko) Chrome/5.0.375.29 Safari/533.4

Unlike the .net CLR, the mono JIT will still inline methods of an assembly even
though it contains a System.Diagnostics.DebuggableAttribute with
IsJITOptimizerDisabled set to true.

This causes incomplete stack traces for exceptions in debug mode as the
attached c# sample code shows.

Reproducible: Always

Steps to Reproduce:
gmcs -debug+ DebuggableBug.cs  && mono --debug DebuggableBug.exe
Actual Results:  
Unhandled Exception: System.Exception: Exception of type 'System.Exception' was
thrown.
  at Program.Main (System.String[] argv) [0x00000] in /tmp/DebuggableBug.cs:9 


Expected Results:  
Unhandled Exception: System.Exception: Exception of type 'System.Exception' was
thrown.
   at Test..ctor() [0x00000]  in /tmp/DebuggableBug.cs:17
   at Program.Main(String[] argv) [0x00000]  in /tmp/DebuggableBug.cs:8

-- 
Configure bugmail: http://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