From: rajeev@icw.EECS.Berkeley.EDU (Rajeev Kumar Ranjan)
Subject: Problems with thread library in OSF1 V3.2
Date: 1996/07/19 [thread overview]
Message-ID: <utfg26n3k8k.fsf@icw.EECS.Berkeley.EDU> (raw)
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<stdio.h>
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
-----------------------------------------------------
next reply other threads:[~1996-07-19 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-19 4:00 Rajeev Kumar Ranjan [this message]
1996-07-21 4:00 ` Problems with thread library in OSF1 V3.2 Steve Peltz
1996-07-21 4:00 ` Rajeev Kumar Ranjan
1996-07-22 4:00 ` Steve Peltz
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox