Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Segmentation fault - Address not mapped
From: Dorian Krause (doriankrause_at_[hidden])
Date: 2009-07-06 09:14:02


Hi,

>
> //Initialize step
> MPI_Init(&argc,&argv);
> //Here it breaks!!! Memory allocation issue!
> MPI_Comm_size(MPI_COMM_WORLD, &pool);
> std::cout<<"I'm here"<<std::endl; //this statement is never reached
> MPI_Comm_rank(MPI_COMM_WORLD, &myid);
>
> When trying to debug via gdb, the problem seems to be:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xb7524772 in ompi_comm_invalid (comm=Could not find the frame base
> for "ompi_comm_invalid".) at communicator.h:261
> 261 communicator.h: No such file or directory.
> in communicator.h
>
> which might indicate a problem with paths. For now, my LD_LIBRARY_PATH
> is set to "/users/cluster/cdavid/local/lib/" (the local folder in my
> home folder emulates the directory structure of the / folder).
>

and your PATH is also okay? (I see that you use plain mpicxx in the
build) ...

> Moreover, I wanted to see if the installation is actually ok and I
> tried running this program:
>
> http://en.wikipedia.org/wiki/Message_Passing_Interface#Example_program
>
> with exactly the same results; the code breaks when the memory address
> of variable pool is referenced.
>
>
> So, if you have any ideas or you think I might have missed something,
> please let me know.
>
>
>
> Thanks,
>
> Catalin
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users