[llvm-commits] [llvm] r134907 - /llvm/trunk/utils/TableGen/

Francois Pichet pichet2000 at gmail.com
Mon Jul 11 18:34:24 PDT 2011


On Mon, Jul 11, 2011 at 7:48 PM, David A. Greene <greened at obbligato.org> wrote:
> Francois Pichet <pichet2000 at gmail.com> writes:
>
>> I started the VC++ debugger on tblgen and the pure function call is on
>> line 71 of file Support\Allocator.cpp:
>>>    Allocator.Deallocate(Slab);
>>
>> This is during doexit() after main has finished.. static variable
>> destructor i suppose.
>>
>> I suspect a memory corruption.
>
> I ran valgrind on a gcc-compiled tblgen on Linux and didn't see any
> obvious errors.  Lots of leaks, but that's a separate issue.  It doesn't
> mean there's not a problem, just that I can't see it at all.
>
> Is there a similar memory analysis tool available for Windows that you
> could run?
>
> Evan, could you go back to the old version of Clang you were using to
> build and do a valgrind run on the resulting executable?  That might
> help us track this down.
>

I tried to find the problem for half a hour earlier today, I am using
plain MSVC without any fancy tools.
Splitting the patch in many parts would help to find the problem. Huge
patch like that are very difficult to bisect for a problem.




More information about the llvm-commits mailing list