Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-threading bug in compiler #22

Open
muellch opened this issue Jun 11, 2020 · 3 comments
Open

Multi-threading bug in compiler #22

muellch opened this issue Jun 11, 2020 · 3 comments

Comments

@muellch
Copy link
Collaborator

muellch commented Jun 11, 2020

To reproduce:

  • compile llvm in Release
  • compile OEC in release
  • maybe use gcc instead of clang

The bug only appears sometimes.
The bug goes away if multi threading is deactivated for OEC with --mlir-disable-threading

For error message see screenshot:

Screenshot from 2020-05-26 14-05-06

@jmgorius
Copy link
Collaborator

It may be useful to run a ThreadSanitizer build to see where exactly the data race is happening. I updated the standalone template to include sanitizer build support.

If you use the sanitizers.cmake module you can enable TSAN by adding -DUSE_SANITIZER=Thread to the CMake configuration.

@gysit
Copy link
Collaborator

gysit commented Jun 11, 2020

I fixed a gcc issue in the the development branch. We should retest this as soon as we can merge back... Thanks for the pointer to the thread sanitizer (didn't know it exists)

jmgorius added a commit that referenced this issue Jun 11, 2020
This could be helpful to solve issues like #22.
@gysit
Copy link
Collaborator

gysit commented Aug 27, 2020

does the problem still appear in the latest builds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants