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

Archer does not correctly call RunningOnValgrind on OSX #76

Open
simoatze opened this issue May 20, 2018 · 3 comments
Open

Archer does not correctly call RunningOnValgrind on OSX #76

simoatze opened this issue May 20, 2018 · 3 comments

Comments

@simoatze
Copy link
Member

On Mac OSX "runOnTsan" is always initialized to 0 which consequently does not initialize the OMPT runtime. The races in the test suite are correctly reported but it reports false positives in the test with no races. On the other end if we force runOnTsan=1 no false positive is reported but Archer does not detect any race in the racy tests.

@jprotze
Copy link
Contributor

jprotze commented May 22, 2018

I cannot really test this, but I think it should be || instead of && in
https://github.com/PRUNERS/archer/blob/master/rtl/ompt-tsan.cpp#L173

I still don't understand what is going on with the tests. Are we sure, that the code is executed concurrently and not sequentially under OSX? I changed the tests to not use sleep, but signaling in: https://reviews.llvm.org/D45890
If these tests lead to deadlocks on OSX, execution is serialized.

@jprotze
Copy link
Contributor

jprotze commented May 24, 2018

I think, I found another issue with the current implementation:

Initialization of the static variable runOnTsan might be a problem. I pushed fixes for the two issues to fix-runOnTsan. Please test whether this fixes your issues.

@simoatze
Copy link
Member Author

I tried it, it seems better but it can't identify all the races in the task tests, and still a lot of false positives.
Here's the list:

Failing Tests (19):
libarcher :: barrier/barrier.c
libarcher :: critical/critical.c
libarcher :: critical/lock-nested.c
libarcher :: critical/lock.c
libarcher :: ompt/loadtool/tool_available.c
libarcher :: races/task-dependency.c
libarcher :: races/task-taskgroup-unrelated.c
libarcher :: races/task-taskwait-nested.c
libarcher :: races/task-two.c
libarcher :: reduction/parallel-reduction-nowait.c
libarcher :: reduction/parallel-reduction.c
libarcher :: task/task-barrier.c
libarcher :: task/task-create.c
libarcher :: task/task-dependency.c
libarcher :: task/task-taskgroup-nested.c
libarcher :: task/task-taskgroup.c
libarcher :: task/task-taskwait-nested.c
libarcher :: task/task-taskwait.c
libarcher :: worksharing/ordered.c

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

2 participants