Skip to content

Patch for memory leaks in ompi-v4.0.x #8217

@ekeever1

Description

@ekeever1

Hello,

I have arrived at a git diff for the latest v.4.0.x git head that, combined with the fix for pmix_client_get.c in #8166, closes all but one definite loss (as well as one uninitialized value use) in a simple message-in-a-ring test.

To less complaining by valgrind!

mempatchsetB.txt

From my notes, the remaining lost block is

==3556007== 80 bytes in 1 blocks are definitely lost in loss record 39 of 86
==3556007==    at 0x4C30EDB: malloc (vg_replace_malloc.c:309)
==3556007==    by 0x5BA83B4: opal_malloc (malloc.c:101)
==3556007==    by 0x5B88F5F: opal_obj_new (opal_object.h:486)
==3556007==    by 0x5B88DFF: opal_obj_new_debug (opal_object.h:263)
==3556007==    by 0x5B8A133: mca_base_conmponent_repository_open (mca_base_component_repository.c:456)
==3556007==    by 0x5B88A7E: find_dyn_components (mca_base_component_find.c:264)
==3556007==    by 0x5B88664: mca_base_component_find (mca_base_component_find.c:135)
==3556007==    by 0x5B99F92: mca_base_framework_components_register (mca_base_components_register.c:55)
==3556007==    by 0x5B9AA4B: mca_base_framework_register (mca_base_framework.c:129)
==3556007==    by 0x5B9AABE: mca_base_framework_open (mca_base_framework.c:148)
==3556007==    by 0x5C13671: patcher_query (memory_patcher_component.c:542)
==3556007==    by 0x5C12CD1: opal_memory_base_open (memory_base_open.c:94)
==3556007==    by 0x5B9AB6B: mca_base_framework_open (mca_base_framework.c:176)
==3556007==    by 0x5C1BC30: mca_rcache_base_module_create (rcache_base_create.c:62)
==3556007==    by 0xF70EEFE: init_one_device (btl_openib_component.c:1878)

Somewhere in patcher_close (memory_patcher_component.c:624) it's not dumping the mitem created at mca_base_component_repository.c:456

Cheers!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions