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

Data races #1

Open
wssgcsc58 opened this issue Apr 20, 2020 · 1 comment
Open

Data races #1

wssgcsc58 opened this issue Apr 20, 2020 · 1 comment

Comments

@wssgcsc58
Copy link

Data races among the following shared variables and functions.

shared variable function1 function2
_ZL11initialized sodium_init sodium_init
_ZL15_misuse_handler sodium_misuse sodium_set_misuse_handler
_ZL15_misuse_handler sodium_set_misuse_handler sodium_set_misuse_handler
@Maxul
Copy link
Owner

Maxul commented Jul 23, 2020

Thanks for the feedback!

sodium_init should be invoked only once, at the initial point. No worries.

sodium_misuse might encounter data races amongst multiple threads.
I suggest the invoker threads to use locks.

May I know the tools you used to detect the data race conditions?

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