Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: Gleb Natapov (glebn_at_[hidden])
Date: 2007-07-11 08:20:29

On Wed, Jul 11, 2007 at 01:17:02PM +0200, Christoph Niethammer wrote:
> Hello,
> Since some time I'm testing Open MPI at the HRLS. My main topic there is the
> thread support of Open MPI.
> Some time ago I found a segmentation fault when running the svn-trunk Version.
> Thanks to the help of Sven I could locate it now to be in the shared memory
> btl. (ompi/mca/btl/sm/btl_sm.c)
> There the addresses of the fifos were modified because of the different memory
> mapping for the threads. Unfortunately this modification was not applied for
> the head_locks.
> The attached patch should fix this problem.
> Maybe someone could have a look on it?

I see that Sven is already committed the fix to trunk r15291, but it
seems the better fix would be to allocate tail_lock and head_lock not
from shared memory at all but in a local memory of a process that is
going to use respective lock.