> Date: Tue, 30 May 2006 18:34:41 -0400 (EDT)
> From: "Brian W. Barrett" <brbar...@open-mpi.org>
> Subject: Re: [OMPI devel] memory_malloc_hooks.c and dlclose()
> To: Open MPI Developers <de...@open-mpi.org>
> Message-ID: <pine.lnx.4.64.0605301833150.21...@milliways.osl.iu.edu>
> Content-Type: text/plain; charset="us-ascii"
> 
> 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/

Problem solved!

Thanks-

-Neil

Reply via email to