[LLVMbugs] [Bug 6951] bugpoint crashes when debugging a miscompilation

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 12 10:20:23 PDT 2010


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

Jeffrey Yasskin <jyasskin at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #4 from Jeffrey Yasskin <jyasskin at google.com> 2010-05-12 12:20:22 CDT ---
Darn. If you're up to debugging this, you should look for leaked Module
objects. You may be able to find them by commenting out the llvm_shutdown_obj
in bugpoint.cpp and valgrinding the bugpoint invocation that otherwise crashes.
You can also track it down by gdb'ing to the crash, printing the address of the
Module containing that @.str, then setting a conditional breakpoint in Module's
constructor (b 'llvm::Module::Module' if this==0xaddr) and looking at the
backtrace to see if that shows where ownership is lost.

 I may be able to work from just the valgrind leak reports. I can definitely
fix it if you can send me a way to reproduce the problem on x86.

-- 
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