pthread bug...?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

   This is the following code that I tried to execute in RH Linux 7.2(PIII
800Mhz) and 6.2(Intel II 662Mhz).

----------------------------------------------------

#include<pthread.h>
#include<stdio.h>
#include<unistd.h>

void* thrfunc(void *p)
{
 return(NULL);
}

int main()
{
  
  pthread_t tid1;
  int a = 1;
  pthread_create(NULL,NULL,thrfunc,NULL);
}

-----------------------------------------------------


	The executable receives Segmentation fault. This program is
theoritically correct. It works perfectly on Solaris 8 on Intel. 
       
	Am I seeing a bug in LinuxThread?

	Or is the answer RTFM?

	Please help.

Regards,
PTBabu. 
************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux