[cfe-dev] Threading and Clang

Garrison Venn gvenn.cfe.dev at gmail.com
Sat Oct 9 11:23:12 PDT 2010


Has this issue been resolved, and if so what was the culprit?

Thanks in advance

Garrison

On Sep 14, 2010, at 7:22, Martin C. Martin wrote:

> Hi Chris,
>  
> I checked out the lastest LLVM and Clang from trunk last night.  It still crashes, here’s the backtrace.  Any other ideas?  Is the way we’re using it supposed to work?  If it is, we can dig in and see what’s going wrong.
>  
> Bes,
> Martin
>  
> *** glibc detected *** ./boom: double free or corruption (fasttop): 0x0000000004136370 ***
> ======= Backtrace: =========
> /lib/libc.so.6[0x7fc2fe7a92f6]

[snip]

> 
>  
>  
> From: Chris Lattner [mailto:clattner at apple.com] 
> Sent: Monday, September 13, 2010 6:43 PM
> To: Martin C. Martin
> Cc: Clang Dev; Owen Anderson
> Subject: Re: [cfe-dev] Threading and Clang
>  
>  
> On Sep 13, 2010, at 2:20 PM, Martin C. Martin wrote:
> 
> 
> Hi,
>  
> We’re considering using Clang as a just in time compiler.  It works great in a single thread, but we can’t get it working from multiple threads.
>  
> Here’s one attempt, where we create a single execution engine used by all threads, and one compiler instance per thread.  The result is corruption and a core dump.  We’ve also tried giving each thread its own execution engine, still no dice.  This is with Clang/LLVM 2.7 on Ubuntu 9.10.
>  
> I'm not sure, but I'd strongly recommend upgrading to llvm 2.8 prerelease.
>  
> -Chris
> 
> 
>  
> I’ve also attached a self contained zip file with the exact compile line and code that reproduces the problem.
>  
> Any idea what we’re doing wrong?
>  
> Thanks,
> Martin
>  
> Here’s an example stack trace:
>  
> *** glibc detected *** ./boom: double free or corruption (fasttop): 0x00007fb9b421c9b0 ***
> ======= Backtrace: =========
> /lib/libc.so.6[0x7fbabcf352f6]

[snip]

> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101009/14fa85a4/attachment.html>


More information about the cfe-dev mailing list