Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: Brian W. Barrett (brbarret_at_[hidden])
Date: 2006-05-30 18:34:41


On Mon, 22 May 2006, Neil Ludban wrote:

> I'm getting a core dump when using openmpi-1.0.2 with the MPI extensions
> we're developing for the MATLAB interpreter. This same build of openmpi
> is working great with C programs and our extensions for gnu octave. The
> machine is AMD64 running Linux:
>
> Linux kodos 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:29:47 EST 2005 x86_64 x86_64 x86_64 GNU/Linux
>
> I believe there's a bug in that opal_memory_malloc_hooks_init() links
> itself into the __free_hook chain during initialization, but then it
> never unlinks itself at shutdown. In the interpreter environment,
> libopal.so is dlclose()d and unmapped from memory long before the
> interpreter is done with dynamic memory. A quick check of the nightly
> trunk snapshot reveals some function name changes, but no new shutdown
> code.

Can you try the attached patch and see if it solves your problem? I think
it will, but I don't have a great way of testing your exact situation.

Thanks,

Brian

-- 
   Brian Barrett
   Graduate Student, Open Systems Lab, Indiana University
   http://www.osl.iu.edu/~brbarret/