You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cilksan is reporting a race condition for when I free memory allocated by malloc. I have a small working example. My malloc/realloc/free manual specifies safe for multithreading:
> man mallocATTRIBUTES For an explanation of the terms used in this section, see attributes(7). ┌─────────────────────┬───────────────┬─────────┐ │Interface │ Attribute │ Value │ ├─────────────────────┼───────────────┼─────────┤ │malloc(), free(), │ Thread safety │ MT-Safe │ │calloc(), realloc() │ │ │ └─────────────────────┴───────────────┴─────────┘
Maybe it has to do with reuse of addresses by malloc after free. I could also be wrong and this is a race condition, but I don't see how.
Describe the bug
Cilksan is reporting a race condition for when I free memory allocated by malloc. I have a small working example. My malloc/realloc/free manual specifies safe for multithreading:
Maybe it has to do with reuse of addresses by
malloc
afterfree
. I could also be wrong and this is a race condition, but I don't see how.Expected behavior
No race conditions detected.
OpenCilk version
Steps to reproduce (include relevant output)
cilksan.c
The text was updated successfully, but these errors were encountered: