Hi! Are you using any file-IO? If you attempt to open a file that doesn't exist, and then try to read from it without checking that it was opened correctly (which it obviously wasn't since it didn't exist) you will get a segmentation fault. I think (correct me if I'm wrong) this has something to do with dereferencing a null-pointer, so it may be possible that you will get a segmentation fault every time you try to dereference a null pointer. But this is just a qualified guess based on my own experience.
Regards Tobias --- In [email protected], "nunoeei" <[EMAIL PROTECTED]> wrote: > > Hello, > I'm using pthread to make a program with 5 threads but when i create > the fifth thread, it comes with a segmentation fault. > I've tested all the paramenters that i insert in the pthread_create but > i can't figure it out... > Does anyone know about this problem? > MAX_THREAD_NUMBER(or something like this)...is 1024! > Can anyone give me a clue about where to start? > I would be very thankfull > Regards and thanks in advance! >
