Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] valgrind complaint in openmpi 1.3 (mca_mpool_sm_alloc)
From: Eugene Loh (Eugene.Loh_at_[hidden])
Date: 2009-03-10 13:23:03


Åke Sandgren wrote:

>Hi!
>
>Valgrind seems to think that there is an use of uninitialized value in
>mca_mpool_sm_alloc, i.e. the if(mpool_sm->mem_node >= 0) {
>Backtracking that i found that mem_node is not set during initializing
>in mca_mpool_sm_init.
>The resources parameter is never used and the mpool_module->mem_node is
>never initalized.
>
>Bug or not?
>
>
Apparently George fixed this in the trunk in r19257
https://svn.open-mpi.org/source/history/ompi-trunk/ompi/mca/mpool/sm/mpool_sm_module.c
. So, the resources parameter is never used, but you call
mca_mpool_sm_module_init(), which has the decency to set mem_node to
-1. Not a helpful value, but a legal one.