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

Do not set context in global object. #418

Merged
merged 4 commits into from
Mar 28, 2023
Merged

Do not set context in global object. #418

merged 4 commits into from
Mar 28, 2023

Conversation

rkaminsk
Copy link
Member

@rkaminsk rkaminsk commented Mar 28, 2023

The context to call external functions in programs was set in a global object. When grounding in parallel, the context could get swapped out during grounding leading to undesired behavior and segfaults.

@rkaminsk rkaminsk added this to the v5.7.0 milestone Mar 28, 2023
@rkaminsk rkaminsk linked an issue Mar 28, 2023 that may be closed by this pull request
@rkaminsk rkaminsk added the bug label Mar 28, 2023
@rkaminsk rkaminsk self-assigned this Mar 28, 2023
@rkaminsk rkaminsk merged commit 3b8eb25 into wip Mar 28, 2023
@rkaminsk rkaminsk deleted the fix/global-context branch March 28, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Thread-safety of clingo_ground_callback
1 participant