Menu

#6 Memory Leak on MPI_Recv

closed
None
5
2005-02-23
2004-07-09
No

Hello.

Extending previous Patch #647810, and answering Support
Request #974684, this path will (I hope) fix the memory
leak which when a process executes (for example)

msg, status = mpi.recv(0)

Reference counts for the PyObjects which eventually are
built into the (msg, status) tuple are not properly
decremented. Attached is a simple patch for
pyMPI_util.c and commhelpers.c. I haven't tested it
completely, but mpi.recv() still works and correctly
transmits both large lists and small lists of data, and
the pyMPI processes no longer leak huge amounts of memory.

I hope that you will find this useful and helpful, but
use at your own risk.

Discussion

  • Ted Carnahan

    Ted Carnahan - 2004-07-09

    Patch for pyMPI_util.c and commhelpers.c

     
  • Patrick Miller

    Patrick Miller - 2005-02-23
    • assigned_to: nobody --> patmiller
    • status: open --> closed
     
  • Patrick Miller

    Patrick Miller - 2005-02-23

    Logged In: YES
    user_id=30074

    Found this independently [I had not been lurking on
    patch and bug lists, so was unaware that it
    had been biting others]. Fixes went up in December 04.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.