Hi, I am looking into openmp-related crashes that we've had into
blender. I see that the issue is known (
http://www.mail-archive.com/[email protected]/msg03982.html
) and that people from this mailing list have requested test files to
debug so I am sending a small program that should crash most of the
time.
Compile with g++ -fopenmp
#include <cstdio>
#include <omp.h>
#include <pthread.h>
void *do_thread(void *) {
printf("I am a thread!\n");
return NULL;
}
int main() {
int niterations = 200;
int i;
pthread_t id;
#pragma omp parallel for private(i)
for (i = 0; i < niterations; i++)
{
printf ("ducks\n");
}
pthread_create(&id, NULL, do_thread, NULL);
}
On my machine, "I am a thread!" will not be displayed even when there
is no crash.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public