Skip to content

Fix compiler crashes when instrumenting programs with nested Cilk contexts and nested reducers #309

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

Merged
merged 3 commits into from
Feb 3, 2025

Conversation

neboat
Copy link
Collaborator

@neboat neboat commented Jan 15, 2025

@neboat neboat force-pushed the dev/19.x-issue306 branch from e929b19 to 79c7d98 Compare January 20, 2025 19:46
… to avoid hosting syncregions used within a taskframe inserted by loop-spawning outside of that taskframe. Improve logic for finding external uses of taskframes to fixup.
…r CilkSanitizer instrumentation.

If ASan inserts hooks into spawned tasks with other exception-handling logic, it either needs to mark that these hooks do not throw or it needs to invoke these hooks with unwinding blocks that connect with the unwind blocks of the enclosing task.  ASan does not currently do this and instead inserts these hooks naively.  This change works around ASan's behavior by marking that calls to ASan hook in spawned tasks do not throw.
@neboat neboat force-pushed the dev/19.x-issue306 branch from 79c7d98 to 8789ce7 Compare January 25, 2025 02:40
…ix promotion of calls to invokes when potentially-throwing calls are inside tasks with unwind destinations.
@neboat neboat merged commit d752b94 into OpenCilk:dev/19.x Feb 3, 2025
9 checks passed
@neboat neboat deleted the dev/19.x-issue306 branch February 3, 2025 17:58
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

Successfully merging this pull request may close these issues.

Nested reducer causes Cilksan crash at runtime and compiler crash when building for Cilkscale
1 participant