-
Notifications
You must be signed in to change notification settings - Fork 274
[Question] Mismatch Between pthread_create Declarations Causes Type Error #8635
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
Comments
Can you please provide the operating system (and maybe: GCC version) that you are using and the exact CBMC command line that you were using? Thank you! |
Thanks for the fast reply! I am using Manjaro 25.0.1 Zetar (Arch based distro).
Using this version resulted in the output above.
Without the pointer checks disabled, I get a result and this output here:
|
I believe you can avoid the initial warning that were seeing about mismatched types by naming your file with a We still need to review whether our warning about unsoundness in pointer handling is actually warranted for this sort of example. It is possible that we can fix this problem by making some of our instrumentation variables thread-local. |
Thanks for the response! I’m planning to use other C++ features later, so I’d prefer to avoid switching to .c. Do you think that there’s a way to fix the type mismatch in the current version of CBMC? |
Uh oh!
There was an error while loading. Please reload this page.
Dear CBMC developers,
I'm running into an issue using CBMC 6.6.0 to verify a basic multi-threaded Cpp program. When including
<pthread.h>
, CBMC reports a type mismatch forpthread_create
due to a difference in the parameter types forpthread_attr_t
.Minimal Reproducible Example
CBMC Output
Question
Is there a way to resolve this mismatch cleanly without ignoring pointer checks?
Ideally, I would like to:
Thank you in advance :)
The text was updated successfully, but these errors were encountered: