Newsgroups: comp.parallel.pvm
From: adilger@enel.ucalgary.ca (Andreas Dilger)
Subject: Re: [HELP}: Bus Error doing PVM_SPAWN()
Organization: ECE Department, U. of Calgary, Calgary, Alberta, Canada
Date: 23 Nov 1995 00:32:25 GMT
Message-ID: <490fep$eta@ds2.acs.ucalgary.ca>

In article <48tcho$4c6@munin.cs.cornell.edu>,
La'szlo' Lada'nyi <ladanyi@cs.cornell.edu> wrote:
>If I have to guess where the error is, I'd say here:
>info = pvm_spawn("pxgj", (char**)0, 0, "", NTASKS-1, &tids[1]); 
>                                       ^^
>If you have no preference on which machine the slaves should be started then 
>you should just give (char *)NULL instead of "". I can imagine that the "" is
>taken as a character string of 0 length and pvm_spawn tries to rsh to the 
>machine "". And it is also possible that for the empty machine name rsh
>reacts with bus error instead of a normal error message.

int  numt  =  pvm_spawn( char *task, char **argv, int flag,
                         char *where, int ntask, int *tids )

Looking at the pvm_spawn man page, it says that the "where" parameter is
ignored when the "flag" parameter is zero, which it is in this case
(although it may be better to use PvmTaskDefault instead of zero).

Cheers, Andreas.
-- 
Andreas Dilger   University of Calgary  \"If a man ate a pound of pasta and
(403) 220-8792   Micronet Research Group \ a pound of antipasto, would they
Dept of Electrical & Computer Engineering \   cancel out, leaving him still
http://www-mddsp.enel.ucalgary.ca/People/adilger/       hungry?" -- Dogbert

