Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Segmentation fault while using -dump-error-graph #62

Open
bifbof opened this issue Oct 30, 2024 · 0 comments
Open

Segmentation fault while using -dump-error-graph #62

bifbof opened this issue Oct 30, 2024 · 0 comments

Comments

@bifbof
Copy link

bifbof commented Oct 30, 2024

Code Sample

#include <assert.h>
#include <pthread.h>

int a = 0;

void *thread(void *unused)
{
	assert(a != 0);
	return NULL;
}

int main()
{
	pthread_t t1;
	pthread_create(&t1, NULL, thread, NULL);
	return 0;
}

Problem description
If I run this with ./genmc <filename> -dump-error-graph="foo" I reach a segfault.
Accessing the global non-atomic variable in the thread is apparently causing this.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant