[MPICH] problem net_send: could not write to fd=5, errno = 32

Rajeev Thakur thakur at mcs.anl.gov
Mon Jan 15 13:12:46 CST 2007


You need to add an MPI_Finalize.
 
Rajeev


  _____  

From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Luiz Mendes
Sent: Monday, January 15, 2007 12:22 PM
To: mpich-discuss at mcs.anl.gov
Cc: Geoff Jacobs
Subject: Re: [MPICH] problem net_send: could not write to fd=5, errno = 32


Hi Geoff,

i dont know Geoff, the code is below:

#include "mpi.h" 
#include <stdio.h> 
#include <string.h> 
int main(int argc, char* argv[])
{
    char mensagem[32];
    int numprocs, rank; 
    MPI_Status stat;
    MPI_Init(&argc,&argv); 
    MPI_Comm_size(MPI_COMM_WORLD,&numprocs); 
    MPI_Comm_rank(MPI_COMM_WORLD,&rank);
    if(rank==0)
    {
        sprintf(mensagem, "Message Text"); 
        MPI_Send(mensagem, 32, MPI_CHAR, 1, 0, MPI_COMM_WORLD);
    } 
    else
    {
        MPI_Recv(mensagem, 32, MPI_CHAR, 0, 0, MPI_COMM_WORLD, &stat);
    }
}

when i run with mpirun -np 2 it works, and when i run with mpirun -np 3 i
doesnt run and relates the following message below

p2_23214:  p4_error: net_recv read:  probable EOF on socket: 1 
bm_list_23184: (0.507200) wakeup_slave: unable to interrupt slave 0 pid
23183
rm_l_1_23213: (0.257494) net_send: could not write to fd=6, errno = 9
rm_l_1_23213:  p4_error: net_send write: -1
    p4_error: latest msg from perror: Bad file descriptor 
rm_l_2_23236: (0.045590) net_send: could not write to fd=5, errno = 32
p2_23214: (2.046247) net_send: could not write to fd=5, errno = 32


What it could  be?

I installed MPICH 1.2.7p1 with mode p4 i think. I am trying to run it on two
PCS. I installed MPI in /usr/share/MPI-1 folder and share this one by NFS
server with another PC. 

Well i was trying to run another standard example simpleio.c, and it doesnt
store things in other PC.

What is happening?

Thanks, 
Luiz Mendes


2007/1/15, Geoff Jacobs <gdjacobs at gmail.com>: 

Luiz Mendes wrote:
> HI all,
>
> i would like to know whats the reason for this error
>
> net_send: could not write to fd=5, errno = 32
>
> what should i do to correct this? I searched for this error in internet 
> but i didnt find anything about.
>
> Its strange, because this error is caused by the increase of number of
> processes in the execution of mpi program.
>
> Could you help me?
> 
> Thanks
> Luiz Mendes
Segfault?

--
Geoffrey D. Jacobs

Go to the Chinese Restaurant,
Order the Special



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20070115/2963a911/attachment.htm>


More information about the mpich-discuss mailing list