RE: [Myrinet] application hangs when using 'call system'

"Audet, Martin" <[email protected]>
Newsgroups gmane.network.myrinet.general
Message-ID <[email protected]>
Hi,

I had exactly the same problem with calling system() in Fortran. It was
producing very strange errors in later MPI calls. 

However by looking into the GM FAQ on Myricom site, it is stated that
using fork() and system() is a source of trouble on Linux. 

http://www.myri.com/scs/GM_FAQ.html#mpich14a


They suggested using vfork() but again, it did cause trouble.

Martin


Martin Audet
Tel:	450-641-5034 		Industrial Material Institute
Fax:	450-641-5106 		National Research Council, Canada
E-mail:[email protected]	75, de Mortagne, Boucherville, QC, J4B 6Y4.


-----Original Message-----
From: William Gropp [mailto:[email protected]]
Sent: Tuesday, June 04, 2002 10:54
To: Jeff Nucciarone
Cc: [email protected]
Subject: Re: [Myrinet] application hangs when using 'call system'


At 10:45 AM 6/4/2002 -0400, Jeff Nucciarone wrote:
>I am in the process of debugging an application that appears to hang 
>whenever a Fortran call to 'system' is made. In the following example code:
>...
>I suspect the 'system' call is somehow upsetting GM. Any ideas (other than 
>eliminating any calls to system)?

I have sometimes had trouble with such calls taking signals away from the 
application and failing to restore them on exit.  You might try writing a 
short C routine that does fork/exec/waitpid instead of the system call.

Bill

_______________________________________________
Myrinet mailing list
[email protected]
http://email.osc.edu/mailman/listinfo/myrinet
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.