Newsgroups: comp.parallel.pvm
From: Reinaldo Augusto da Costa Bianchi <rbianchi@lsi.usp.br>
Subject: Bug in function pvm_task?
Organization: Lab. Sistemas Integraveis - LSI-EPUSP
Date: Tue, 01 Oct 1996 16:31:51 -0300
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <325171A7.48B4@lsi.usp.br>

Hello There.

I am trying to use the function pvm_task and I am only getting problems. I am trying to use it
 in this way:

  info = pvm_tasks (0, &ntask, taskp);

where taskp is defined as

  struct pvmtaskinfo *taskp[50];  

This is the only way I can compile without the incompatible pointer type
message.

Doing so, I can print the only the first ti_tid and ti_host. Everything after
ti_a_out, is just garbage, and I often get a Segmentation Fault message, like
this:


Hello, I'm t40007, assembler agent.
from t40008: hello, world from nausika
from t40009: hello, world from nausika
from t4000a: hello, world from nausika
from t4000b: hello, world from nausika
 info = 0; ntask = 6
40001
40000
 
1181
10000
35ef4
Segmentation Fault (core dumped)



I am running the program with pvm3 version 3.3.11, in a Sun SPARCstation5,
SUN4SOL2. I tried everything, and the only thing I imagine now is that there
is a bug in this pvm version, that scrambles everything after the ti_a_out
field.


Anybody please help me! 

Thanks in advance,

Reinaldo Bianchi and Denise Iguma.

-- 
-=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=-
Reinaldo Bianchi                              (rbianchi@lsi.usp.br)
Division of Artificial Intelligence and Automation
Laboratory of Integrated Systems - University of Sao Paulo - Brasil
http://www.lsi.usp.br/~rbianchi/rbianchi.html
-=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=- -=-

