-
Notifications
You must be signed in to change notification settings - Fork 407
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
fix(stdune): fix TSAN warning in wait4_stubs #10554
Conversation
Fixes ocaml#10553 Quoting @jmid, using a local variable without the runtime lock in place, is against the rules. For integer values, sometimes the rules are bent, but this is not a good idea. See ocaml/ocaml#12737. Signed-off-by: Etienne Millon <me@emillon.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expect this to remove the TSan warning.
Yes, I'm double checking it does indeed. |
It's displaying another warning:
This seems to come from ocaml itself: https://github.com/ocaml/ocaml/blob/5.2.0/otherlibs/unix/mkdir.c#L36-L38 |
Good catch! I initially found one in |
As discussed in ocaml#12737, using `Int_val` inside blocking sections can cause data races and is now seen as a bad idea. (this causes a TSAN warning when using Dune, see ocaml/dune#10554)
As discussed in ocaml#12737, using `Int_val` inside blocking sections can cause data races and is now seen as a bad idea. (this causes a TSAN warning when using Dune, see ocaml/dune#10554)
Fixes ocaml#10553 Quoting @jmid, using a local variable without the runtime lock in place, is against the rules. For integer values, sometimes the rules are bent, but this is not a good idea. See ocaml/ocaml#12737. Signed-off-by: Etienne Millon <me@emillon.org>
Fixes ocaml#10553 Quoting @jmid, using a local variable without the runtime lock in place, is against the rules. For integer values, sometimes the rules are bent, but this is not a good idea. See ocaml/ocaml#12737. Signed-off-by: Etienne Millon <me@emillon.org>
Fixes #10553 Quoting @jmid, using a local variable without the runtime lock in place, is against the rules. For integer values, sometimes the rules are bent, but this is not a good idea. See ocaml/ocaml#12737. Signed-off-by: Etienne Millon <me@emillon.org>
CHANGES: ### Fixed - Fix interpretation of `exists_if` predicate in `META` files of installed libraries containing more than one element. (ocaml/dune#10564, fixes ocaml/dune#10563, @dbuenzli, @nojb) - Fix TSAN warning in wait4 stubs (ocaml/dune#10554, fixes ocaml/dune#10553, @emillon)
As discussed in ocaml#12737, using `Int_val` inside blocking sections can cause data races and is now seen as a bad idea. (this causes a TSAN warning when using Dune, see ocaml/dune#10554)
Fixes ocaml#10553 Quoting @jmid, using a local variable without the runtime lock in place, is against the rules. For integer values, sometimes the rules are bent, but this is not a good idea. See ocaml/ocaml#12737. Signed-off-by: Etienne Millon <me@emillon.org>
CHANGES: ### Fixed - Fix interpretation of `exists_if` predicate in `META` files of installed libraries containing more than one element. (ocaml/dune#10564, fixes ocaml/dune#10563, @dbuenzli, @nojb) - Fix TSAN warning in wait4 stubs (ocaml/dune#10554, fixes ocaml/dune#10553, @emillon)
Fixes #10553
Quoting @jmid, using a local variable without the runtime lock in place, is against the rules. For integer values, sometimes the rules are bent, but this is not a good idea. See ocaml/ocaml#12737.