Newsgroups: comp.parallel.pvm
From: snozawa@helios1.sci.ibaraki.ac.jp (Satoshi Nozawa)
Subject: PVM for linux FORTRAN
Organization: Department of Earth Sciences in Ibaraki University
Date: 19 May 1995 02:49:54 GMT
Message-ID: <SNOZAWA.95May19114954@helios1.sci.ibaraki.ac.jp>

Hi, I'm Satoshi Nozawa. Help me!

The hitc.f(demo directory) and my pvm(parallel virtial machine)
Fortran program can not work at linux (in PVM-3.3.5), but C
program(demo) can work completely.

This is my pvm fortran program that I exchange hitc.f of demo directory.
-------------------------------------------------
      program hitc_master
      include '../include/fpvm3.h'
c ---------------------------------------------------------
c HiTc master program. Gets user input. spawns tasks.
c Uses pool-of-tasks dynamic load balancing
c ---------------------------------------------------------
      integer info, nhost
      integer mytid, tids(0:32)
      integer idummy
      character*12 hostname
      character*8 arch

c ------------ Starting up all the tasks ---------------------------

      call pvmfmytid( mytid )

      call pvmfconfig( nhost, narch, idummy, hostname, arch,
     >                 idummy, info )

      print *, nhost,' hosts detected in configuration'
      call pvmfspawn( 'hitc_slave', PVMDEFAULT, '*', nhost, tids, info )

      print *,'Program Finished'
      call pvmfexit(info) 
      stop
      end
-------------------------------------------------
This program can work at SunOS 4.1.3 (IPX,LX), when I compile this
program by f77(Sun),f2c+gcc and g77(0.5.10). This results is that
---
  2 hosts detected in configuration
Program Finished
---
But at Linux(kernel 1.1.64) system this compile messeges and results
are that
---
snozawa@helios3[227]f77 ./hitc.f -lfpvm3 -lpvm3 -L/home/snozawa/pvm3/lib/LINUX
f2ctmp_hitc.f:
   MAIN hitc_master:
snozawa@helios3[228]./a.out
Segmentation fault
---
When I work gdb(gnu db), 
---
snozawa@helios3[231]gdb ./a.out
(gdb) run
Starting program: /usr1/grp1/snozawa/pvm3/demof/./a.out 

Program received signal SIGSEGV, Segmentation fault.
0x31d in pvmfconfig_ (nhostp=0x1a7e4, narchp=0x1a7dc, tidp=0x1a7e8, name_ptr=0x1a740 "", 
    name_len=0x1a74c, arch_ptr=0x1a7e8 "", arch_len=0x1a754, speedp=0xc, infop=0x8)
    at pvmfconfig.c:60
pvmfconfig.c:60: No such file or directory.
----
This program exchange that this parts 
---
      call pvmfconfig( nhost, narch, idummy, hostname, arch,
     >                 idummy, info )
---
comment out, and I will work 'call pvmfspawn' part.
---
 0 hosts detected in configuration
libpvm [t4000f]: pvm_spawn(): Bad parameter
Segmentation fault
---
But I confirm that the child program(ex. hitc_slave.f) is completely
finished. Please help me. Thank you.

