Newsgroups: comp.parallel.pvm
From: adriaan@lpac.ac.uk (Adriaan Joubert)
Subject: Q: Forwarding messages with 3.3.8
Organization: London Parallel Applications Centre, UK
Date: 24 Aug 1995 14:29:33 GMT
Message-ID: <ADRIAAN.95Aug24152933@nereid.lpac.ac.uk>

Hi,

	I've got a problem with forwarding messages under pvm 3.3.8 on
OSF/1 V3.2. I receive a message in a process which distributes work, read
the first two integers from the message, and then send it on:

    bufid = pvm_recv (-1, -1);
    info = pvm_bufinfo (bufid, &bytes, &msgtag, &tid);
	...
    info = pvm_upkint (&client, 1, 1);
    info = pvm_upkint (&jobno, 1, 1);

    info = pvm_setsbuf(bufid);
    info = pvm_send (server->TaskID, msgtag);


This works fine under 3.3.7, but I get a segmentation fault in enc_xdr_init
in lpvmpack.c in the call to xdrmem_create. 

lpvmpack.c:780
        xdrmem_create(&up->ub_encxdr,
                        fp->fr_dat,
                        (unsigned)(fp->fr_max - (fp->fr_dat - fp->fr_buf)),
                        XDR_ENCODE);

My question is: is unpacking the first two elements from the message my
problem? Because forwarding messages ought to work according to the
manual. Is this simply something that is not supported, or is it something
that can be fixed?

Thanks for any help!

Adriaan

-- 
--------------------------------------+-------------------------------
 Adriaan Joubert                      | Phone:  +44-171-975 5168
 London Parallel Applications Centre  | Fax:    +44-181-981 9803
 QMW, Mile End Road		      | e-mail: A.W.Joubert@lpac.ac.uk
 London E1 4NS			      |
--------------------------------------+-------------------------------

