[LLVMdev] LLVM: segfault while modifying a thread-local global variable

Duncan Sands baldrick at free.fr
Wed Nov 9 04:18:30 PST 2011

Hi Semion,

> Really strange situation: when I modify a thread-local GlobalVariable I get a
> segfault. It seems to be a bug, doesn't it? Can u suggest me some solution?

build LLVM with assertions enabled.  Then you may well get an assertion failure
with a helpful error message rather than an obscure crash.

Ciao, Duncan.

More information about the llvm-dev mailing list