[PATCH] D39038: Mark lld/test/ELF as flaky.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 20 11:06:12 PDT 2017


NAKAMURA Takumi via Phabricator via llvm-commits
<llvm-commits at lists.llvm.org> writes:

> chapuni added a comment.
>
> I guess the constructor std::thread(F) fails, then its method, detach() crashes.
> If we live with -fno-exceptions, I think we may rewrite Parallel.cpp w/o C++11 std::thread, but with pthreads, to catch failure in pthread_create.
>
> Or, could I increase any resources in ulimit/kernel? I tried idea that I knew.
> I will attempt to find out with -fexceptions which error would raise.
>
> FYI, I am using 36-core (72 logical processors) host.

What is the OS?

Can you check if

--------------------------------------
#include "llvm/Support/Parallel.h"
int main() {
  llvm::parallel::detail::TaskGroup TG;
  TG.spawn([](){});
  return 0;
}
--------------------------------------

will crash in your machine?

Cheers,
Rafael


More information about the llvm-commits mailing list