[LLVMbugs] [Bug 9270] New: Garbage collection intrinsics and debugging intrinsics don't mix

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 19 17:22:15 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=9270

           Summary: Garbage collection intrinsics and debugging intrinsics
                    don't mix
           Product: new-bugs
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: viridia at gmail.com
                CC: llvmbugs at cs.uiuc.edu


It appears that the presence of llvm.gcroot intrinsics cause the code generator
to emit improper DWARF debugging information. I have two sample files, one
which was generated with garbage collection enabled (Hello.ll) and another with
garbage collection disabled (Hello2.ll). I've also included the original source
file (Hello.tart).

To demonstrate the problem, compile both samples and enter the debugger,
setting a breakpoint on 'main'.

In the first sample, with GC, the debugger stops on line 3 "let s2 = s" which
is incorrect, because line 2 has not executed yet.

In the second sample, without GC, the debugger stops on the line 2 "var s =
getString()", which is correct.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list