Posix thread join causes a bus error

So, my code was working, but now when I try to join my threads I get a bus error!

//join the threads
pthread_attr_destroy(&attr);
for (int i = 0; i < numThreads; i++)
{
rc = pthread_join(threads[i], &status); <----BUS ERROR!
......
Thanks to anyone who can help! My college degree depends on it!
Here is all my code: https://gist.github.com/anonymous/5541239
The error occurs on line 119
Topic archived. No new replies allowed.