Newsgroups: comp.parallel.pvm
From: krbailey@eos.ncsu.edu (Kendall Robert Bailey)
Subject: Re: ILLEGAL INSTRUCTION !!HELP!!
Organization: North Carolina State University
Date: 22 Nov 1994 16:11:55 GMT
Message-ID: <3at58b$1sc@taco.cc.ncsu.edu>



-- 
   
I don't know the what the proble is, but I've got it too
The thing your code and mine have in common is
some file operations (The culprit might be fgets()).  I haven't a clue
as to why the file operations are causing pvm_mytid() to barf, but if
I take them out (specifically fgets(), it seems fscanf() causes no harm)
pvm is happy as can be.  
   The specific complaint pvm is making (within the debugger xde)
is:
segmentation violation in SQRT_CONST at 0x3eb0c6f4
0x3eb0c6f4 (???) 

The wierd thing is, I've run the code with pvm_mytid() both before and after
the file operations.  If it is before, I get an Illegal instruction
error at pvm_mytid().  If it is after, I get a segmentation fault error
at pvm_mytid().  If I do the file ops first, they conclude successfully,
but still cause pvm_mytid() to barf at me.
  The above segmentation violation message is from the case where
all file operations are completed (and files closed) before 
pvm_mytid() is ever called.

If anyone has any ideas... 

Thanks,
Kendall Bailey
NCSU Applied Mathematics
krbailey@eos.ncsu.edu

