Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Problems with thread library in OSF1 V3.2
@ 1996-07-19  4:00 Rajeev Kumar Ranjan
  1996-07-21  4:00 ` Steve Peltz
  1996-07-21  4:00 ` Rajeev Kumar Ranjan
  0 siblings, 2 replies; 4+ messages in thread
From: Rajeev Kumar Ranjan @ 1996-07-19  4:00 UTC (permalink / 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
-----------------------------------------------------



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-07-22  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-07-19  4:00 Problems with thread library in OSF1 V3.2 Rajeev Kumar Ranjan
1996-07-21  4:00 ` Steve Peltz
1996-07-21  4:00 ` Rajeev Kumar Ranjan
1996-07-22  4:00   ` Steve Peltz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox