OK, that's my fault. I'm running jitted code on linux x86.<br><br><div class="gmail_quote">2011/11/9 Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Semion,<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In my case the LLVM is built with assertions, but this doesn't help. From your<br>
answer I conclude that thread-local globals are fully implemented in x86 JIT.<br>
</blockquote>
<br></div>
you didn't mention the JIT.  You didn't give any details at all!  That's why I<br>
was only able to make a generic suggestion.  Don't read too much into it.<br>
<br>
Ciao, Duncan.<br>
<br>
 So<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
this is strange...<br>
<br>
2011/11/9 Duncan Sands <<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a> <mailto:<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>>><div class="im"><br>
<br>
    Hi Semion,<br>
<br>
     > Really strange situation: when I modify a thread-local GlobalVariable I get a<br>
     > segfault. It seems to be a bug, doesn't it? Can u suggest me some solution?<br>
<br>
    build LLVM with assertions enabled.  Then you may well get an assertion failure<br>
    with a helpful error message rather than an obscure crash.<br>
<br>
    Ciao, Duncan.<br>
    ______________________________<u></u>_________________<br>
    LLVM Developers mailing list<br></div>
    <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <mailto:<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>

    <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br>