且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用LLVM/Clang编译会导致崩溃,而不是GCC 4.2

更新时间:2023-11-10 11:47:52

看起来像是内存中积蓄的东西.更具体地说,在堆栈上.

Looks like something pooped on memory. More specifically, on the stack.

在LLVM和GCC之间,在代码生成方面存在一些相当显着的(尽管非常微妙的)差异.请记住,LLVM-GCC实际上是GCC-> LLVM;也就是说,GCC解析器为LLVM代码生成引擎提供了动力.

There are some fairly significant, though entirely subtle, differences in code-gen between LLVM and GCC. Keep in mind that LLVM-GCC is really GCC->LLVM; that is, the GCC parser feeding the LLVM code generation engine.

因此,我怀疑您遇到了一个非常可爱的案件. LLVM的代码源中的错误或程序中表现为这种崩溃的错误.

Thus, I suspect you have hit a lovely edge case. Either a bug in LLVM's codegen or a bug in your program that manifests itself as this kind of a crash.

我想不到的是-复制一个块然后在另一个线程上执行该块失败可能显示为这样的崩溃.

Off the top of my head, I could imagine that a failure to -copy a block and then execute that block on a different thread might manifest as a crash like this.

在任何情况下,如果可以,请提交错误.

In any case, file a bug if you can.