Newsgroups: comp.parallel.pvm
From: tra@students.fct.unl.pt (Tiago Rodrigues Antao)
Subject: Problems with pvm3.3.11 - pvm_tasks
Organization: Faculdade de Ciencias e Tecnologia, Univ. Nova de Lisboa,Portugal
Date: 27 Oct 1996 13:43:43 GMT
Message-ID: <54voug$b9h@host.di.fct.unl.pt>

Hi!

please look at the following gdb output regarding a call to pvm_tasks:
----------
dbg_local_mtp (id=262151) at client.c:22
22        if (id<262144)
(gdb) n
24        if (pvm_tasks(id,&ntasks,&ti)>=0){
(gdb) n
25          pvm_tasks(ti->ti_host,&ntasks,&ti);
(gdb) print ti[0]
$2 = {
  ti_tid = 262147, 
  ti_ptid = 0, 
  ti_host = 262144, 
  ti_flag = 4, 
  ti_a_out = 0x41f88 "", 
  ti_pid = 4844
}
---
Please note that the call to which "print ti[0]" belongs is at line 24, line
25 has not yet been executed.
Which means that:
  I've called pvm_tasks with id=262151(a tid that DID NOT existed at that
time)
  pvm_tasks, DID NOT returned a error (the man page says that errors<0)
  and the ti_tid has changed from the requested 262151 to 262147

  Is this a bug on PVM or just a bug on my head?

--
tra@students.fct.unl.pt


