From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f9bc273cd76dcd51,start X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,f9bc273cd76dcd51,start X-Google-Attributes: gidf678f,public From: rajeev@icw.EECS.Berkeley.EDU (Rajeev Kumar Ranjan) Subject: Problems with thread library in OSF1 V3.2 Date: 1996/07/19 Message-ID: #1/1 X-Deja-AN: 168921166 sender: rajeev@icw.EECS.Berkeley.EDU organization: University of California, Berkeley newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc I am new to this group. Please pardon any mistakes. I am trying to use the thread library but have not been successful. Strangely, the error shows up even in following simple program: ---------------------------- #include main() { printf("hello world\n"); } --------------------------- The compile command I used is: cc -g test.c -lpthreads After I run the program, it gives segmentation fault. The stack has the following alternating function calls. #0 0x3ff81808f5c in port_allocate () #1 0x3ff81804a38 in mig_get_reply_port () #2 0x3ff81808f94 in port_allocate () #3 0x3ff81804a38 in mig_get_reply_port () #4 0x3ff81808f94 in port_allocate () #5 0x3ff81804a38 in mig_get_reply_port () #6 0x3ff81808f94 in port_allocate () #7 0x3ff81804a38 in mig_get_reply_port () ...................... This stack goes on for few hundreds depth. This is occuring even before the program enters the "main" function. I got the exact same error trace in the original application program. Following is the uname output: OSF1 susie.EECS.Berkeley.EDU V3.2 41.64 alpha I would appreciate any light on this problem. Thanks in advance. -rajeev -- ------------------------------------------------------ Rajeev K. Ranjan internet address: rajeev@eecs.berkeley.edu URL: http://www-cad.eecs.berkeley.edu/~rajeev phone no: 510-642-3234 Department of EECS, University of California, Berkeley -----------------------------------------------------