Newsgroups: comp.parallel.pvm
From: Boyana Norris <radenska@cs.uiuc.edu>
Subject: Error when spawning threads
Organization: University of Illinois at Urbana
Date: Sat, 07 Sep 1996 20:41:42 -0500
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <32322456.91@cs.uiuc.edu>

Hello, 

I have been struggling for a while with the problem whose output you
can see below.  Basically, a process forks, and the child attempts to 
spawn 3 more threads.  The code for spawning is correct--I have no 
problem when running in as a process that was not forked by another. 
Also, it works fine when the program spawning the threads is exec-ed by
another.  This is not a solution, however, since another part of 
the program requires that an open TCP/IP socket descriptor be passed
from the father to the child process (and for now, I haven't been able
to get this to work for some administrative reasons).  

Anyway, I don't want to make it sound even more confusing, but if 
you have had a similar problem, I would really appreciate any 
comments/suggestions.  I am trying to execute this code on a shared
memory multiprocessor (SGI Power Challenge Array running IRIX 6.2
and a Sun with 8 processors running SOLARIS 2.4).  Here is the
error (I output the thread id's after the attempted spawn; the 
error message on the second line is my diagnostic output as well;
the last one is the PVM error):

TID[0]=262153 TID[1]=-7 TID[2]=-7 TID[3]=-7
 Error: some tasks could not be spawned
libpvm [t40009]: pvmendtask() shmctl RMID: Invalid argument

Thanks in advance,
Boyana

-- 
Boyana Radenska Norris                    University of Illinois
radenska@uiuc.edu                         2412 DCL, MC 258
http://www.students.uiuc.edu/~radenska/   1304 W. Springfield Ave.
(217) 333-0155, (217) 356-5283            Urbana, IL 61801

