Bug 1397177 - memory leak when using libgfapi
Summary: memory leak when using libgfapi
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: libgfapi
Version: mainline
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: rjoseph
QA Contact: Sudhir D
URL:
Whiteboard:
Depends On: 1399584 1425623
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-21 19:32 UTC by rjoseph
Modified: 2017-05-02 11:20 UTC (History)
10 users (show)

Fixed In Version: glusterfs-3.10.0
Clone Of: 1370417
Environment:
Last Closed: 2017-03-06 17:35:27 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description rjoseph 2016-11-21 19:32:10 UTC
+++ This bug was initially created as a clone of Bug #1370417 +++

Description of problem:

valgrind reports memory leaks in simple C program using libgfapi

Version-Release number of selected component (if applicable):
3.8.3 (and I believe all previous versions, 3.8.X , 3.7.X , ...)

How reproducible:

just run valgrind on a compiled program

Steps to Reproduce:
1. simple C code:

# cat hellogluster-basic.c
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <glusterfs/api/glfs.h>

int main (int argc, char** argv) {
        glfs_t *fs = NULL;

        fs = glfs_new ("pool");
        if (!fs) {
          fprintf (stderr, "glfs_new: returned NULL\n");
          return 1;
        }

        glfs_fini (fs);

        return 0;
}


2. compile 

gcc hellogluster-basic.c -lgfapi

3. run valgrind

# valgrind --leak-check=full --show-reachable=yes --show-leak-kinds=all ./a.out
==13758== Memcheck, a memory error detector
==13758== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==13758== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==13758== Command: ./a.out
==13758==
==13758==
==13758== HEAP SUMMARY:
==13758==     in use at exit: 12,598,862 bytes in 57 blocks
==13758==   total heap usage: 141 allocs, 84 frees, 25,119,811 bytes allocated
==13758==
==13758== 8 bytes in 1 blocks are still reachable in loss record 1 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A8B576: __gf_default_calloc (mem-pool.h:118)
==13758==    by 0x5A8B576: __glusterfs_this_location (globals.c:147)
==13758==    by 0x4E3DA7C: glfs_new@@GFAPI_3.4.0 (glfs.c:724)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 82 bytes in 1 blocks are definitely lost in loss record 2 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A625BF: gf_strdup (mem-pool.h:185)
==13758==    by 0x5A625BF: gf_log_init (logging.c:735)
==13758==    by 0x4E3DE35: glfs_set_logging@@GFAPI_3.4.0 (glfs.c:862)
==13758==    by 0x4E3DACC: glfs_new@@GFAPI_3.4.0 (glfs.c:737)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 89 bytes in 1 blocks are possibly lost in loss record 3 of 55
==13758==    at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==13758==    by 0x5A86AED: __gf_malloc (mem-pool.c:142)
==13758==    by 0x5A86E11: gf_vasprintf (mem-pool.c:221)
==13758==    by 0x5A86F03: gf_asprintf (mem-pool.c:240)
==13758==    by 0x5A87172: mem_pool_new_fn (mem-pool.c:365)
==13758==    by 0x4E3CC29: glusterfs_ctx_defaults_init (glfs.c:127)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 89 bytes in 1 blocks are possibly lost in loss record 4 of 55
==13758==    at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==13758==    by 0x5A86AED: __gf_malloc (mem-pool.c:142)
==13758==    by 0x5A86E11: gf_vasprintf (mem-pool.c:221)
==13758==    by 0x5A86F03: gf_asprintf (mem-pool.c:240)
==13758==    by 0x5A87172: mem_pool_new_fn (mem-pool.c:365)
==13758==    by 0x4E3CC75: glusterfs_ctx_defaults_init (glfs.c:136)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 92 bytes in 1 blocks are possibly lost in loss record 5 of 55
==13758==    at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==13758==    by 0x5A86AED: __gf_malloc (mem-pool.c:142)
==13758==    by 0x5A86E11: gf_vasprintf (mem-pool.c:221)
==13758==    by 0x5A86F03: gf_asprintf (mem-pool.c:240)
==13758==    by 0x5A87172: mem_pool_new_fn (mem-pool.c:365)
==13758==    by 0x4E3CC9B: glusterfs_ctx_defaults_init (glfs.c:140)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 94 bytes in 1 blocks are possibly lost in loss record 6 of 55
==13758==    at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==13758==    by 0x5A86AED: __gf_malloc (mem-pool.c:142)
==13758==    by 0x5A86E11: gf_vasprintf (mem-pool.c:221)
==13758==    by 0x5A86F03: gf_asprintf (mem-pool.c:240)
==13758==    by 0x5A87172: mem_pool_new_fn (mem-pool.c:365)
==13758==    by 0x4E3CC03: glusterfs_ctx_defaults_init (glfs.c:122)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 94 bytes in 1 blocks are possibly lost in loss record 7 of 55
==13758==    at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==13758==    by 0x5A86AED: __gf_malloc (mem-pool.c:142)
==13758==    by 0x5A86E11: gf_vasprintf (mem-pool.c:221)
==13758==    by 0x5A86F03: gf_asprintf (mem-pool.c:240)
==13758==    by 0x5A87172: mem_pool_new_fn (mem-pool.c:365)
==13758==    by 0x4E3CC4F: glusterfs_ctx_defaults_init (glfs.c:131)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 95 bytes in 1 blocks are possibly lost in loss record 8 of 55
==13758==    at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==13758==    by 0x5A86AED: __gf_malloc (mem-pool.c:142)
==13758==    by 0x5A86E11: gf_vasprintf (mem-pool.c:221)
==13758==    by 0x5A86F03: gf_asprintf (mem-pool.c:240)
==13758==    by 0x5A87172: mem_pool_new_fn (mem-pool.c:365)
==13758==    by 0x4E3CBBD: glusterfs_ctx_defaults_init (glfs.c:112)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 95 bytes in 1 blocks are possibly lost in loss record 9 of 55
==13758==    at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==13758==    by 0x5A86AED: __gf_malloc (mem-pool.c:142)
==13758==    by 0x5A86E11: gf_vasprintf (mem-pool.c:221)
==13758==    by 0x5A86F03: gf_asprintf (mem-pool.c:240)
==13758==    by 0x5A87172: mem_pool_new_fn (mem-pool.c:365)
==13758==    by 0x4E3CBE0: glusterfs_ctx_defaults_init (glfs.c:117)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 116 bytes in 1 blocks are possibly lost in loss record 10 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A6C82B: gf_strdup (mem-pool.h:185)
==13758==    by 0x5A6C82B: generate_glusterfs_ctx_id (common-utils.c:2936)
==13758==    by 0x4E3CB16: glusterfs_ctx_defaults_init (glfs.c:82)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 152 bytes in 1 blocks are possibly lost in loss record 11 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x4E3CB9B: glusterfs_ctx_defaults_init (glfs.c:105)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 192 bytes in 1 blocks are possibly lost in loss record 12 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A6FCD6: gf_timer_registry_init (timer.c:222)
==13758==    by 0x5A6FCD6: gf_timer_call_after (timer.c:40)
==13758==    by 0x5A63B32: __gf_log_inject_timer_event (logging.c:1792)
==13758==    by 0x5A63B32: gf_log_inject_timer_event (logging.c:1814)
==13758==    by 0x4E3DE70: glfs_set_logging@@GFAPI_3.4.0 (glfs.c:866)
==13758==    by 0x4E3DACC: glfs_new@@GFAPI_3.4.0 (glfs.c:737)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 224 bytes in 1 blocks are possibly lost in loss record 13 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A87141: mem_pool_new_fn (mem-pool.c:361)
==13758==    by 0x4E3CBBD: glusterfs_ctx_defaults_init (glfs.c:112)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 224 bytes in 1 blocks are possibly lost in loss record 14 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A87141: mem_pool_new_fn (mem-pool.c:361)
==13758==    by 0x4E3CBE0: glusterfs_ctx_defaults_init (glfs.c:117)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 224 bytes in 1 blocks are possibly lost in loss record 15 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A87141: mem_pool_new_fn (mem-pool.c:361)
==13758==    by 0x4E3CC03: glusterfs_ctx_defaults_init (glfs.c:122)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 224 bytes in 1 blocks are possibly lost in loss record 16 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A87141: mem_pool_new_fn (mem-pool.c:361)
==13758==    by 0x4E3CC29: glusterfs_ctx_defaults_init (glfs.c:127)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 224 bytes in 1 blocks are possibly lost in loss record 17 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A87141: mem_pool_new_fn (mem-pool.c:361)
==13758==    by 0x4E3CC4F: glusterfs_ctx_defaults_init (glfs.c:131)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 224 bytes in 1 blocks are possibly lost in loss record 18 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A87141: mem_pool_new_fn (mem-pool.c:361)
==13758==    by 0x4E3CC75: glusterfs_ctx_defaults_init (glfs.c:136)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 224 bytes in 1 blocks are possibly lost in loss record 19 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A87141: mem_pool_new_fn (mem-pool.c:361)
==13758==    by 0x4E3CC9B: glusterfs_ctx_defaults_init (glfs.c:140)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 248 bytes in 1 blocks are possibly lost in loss record 20 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88686: __iobuf_arena_init_iobufs (iobuf.c:84)
==13758==    by 0x5A88AE6: __iobuf_arena_alloc (iobuf.c:208)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A894FC: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 288 bytes in 1 blocks are possibly lost in loss record 21 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x4011981: allocate_dtv (dl-tls.c:322)
==13758==    by 0x401234D: _dl_allocate_tls (dl-tls.c:539)
==13758==    by 0x5F3DF04: allocate_stack (allocatestack.c:586)
==13758==    by 0x5F3DF04: pthread_create@@GLIBC_2.2.5 (pthread_create.c:543)
==13758==    by 0x5A6DF83: gf_thread_create (common-utils.c:3549)
==13758==    by 0x5A6FD37: gf_timer_registry_init (timer.c:236)
==13758==    by 0x5A6FD37: gf_timer_call_after (timer.c:40)
==13758==    by 0x5A63B32: __gf_log_inject_timer_event (logging.c:1792)
==13758==    by 0x5A63B32: gf_log_inject_timer_event (logging.c:1814)
==13758==    by 0x4E3DE70: glfs_set_logging@@GFAPI_3.4.0 (glfs.c:866)
==13758==    by 0x4E3DACC: glfs_new@@GFAPI_3.4.0 (glfs.c:737)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 360 bytes in 1 blocks are possibly lost in loss record 22 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88A24: __iobuf_arena_alloc (iobuf.c:174)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A8939E: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 360 bytes in 1 blocks are possibly lost in loss record 23 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88A24: __iobuf_arena_alloc (iobuf.c:174)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A893C3: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 360 bytes in 1 blocks are possibly lost in loss record 24 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88A24: __iobuf_arena_alloc (iobuf.c:174)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A893F8: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 360 bytes in 1 blocks are possibly lost in loss record 25 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88A24: __iobuf_arena_alloc (iobuf.c:174)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A8942F: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 360 bytes in 1 blocks are possibly lost in loss record 26 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88A24: __iobuf_arena_alloc (iobuf.c:174)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A89464: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 360 bytes in 1 blocks are possibly lost in loss record 27 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88A24: __iobuf_arena_alloc (iobuf.c:174)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A89499: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 360 bytes in 1 blocks are possibly lost in loss record 28 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88A24: __iobuf_arena_alloc (iobuf.c:174)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A894D0: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 360 bytes in 1 blocks are possibly lost in loss record 29 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88A24: __iobuf_arena_alloc (iobuf.c:174)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A894FC: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 360 bytes in 1 blocks are possibly lost in loss record 30 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A8951A: iobuf_create_stdalloc_arena (iobuf.c:367)
==13758==    by 0x5A8951A: iobuf_pool_new (iobuf.c:431)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 360 bytes in 1 blocks are definitely lost in loss record 31 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A8951A: iobuf_create_stdalloc_arena (iobuf.c:367)
==13758==    by 0x5A8951A: iobuf_pool_new (iobuf.c:431)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DAB3: glfs_new@@GFAPI_3.4.0 (glfs.c:731)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 576 bytes in 2 blocks are possibly lost in loss record 32 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x4011981: allocate_dtv (dl-tls.c:322)
==13758==    by 0x401234D: _dl_allocate_tls (dl-tls.c:539)
==13758==    by 0x5F3DF04: allocate_stack (allocatestack.c:586)
==13758==    by 0x5F3DF04: pthread_create@@GLIBC_2.2.5 (pthread_create.c:543)
==13758==    by 0x5A6DF83: gf_thread_create (common-utils.c:3549)
==13758==    by 0x5A99EA1: syncenv_new (syncop.c:827)
==13758==    by 0x4E3CB70: glusterfs_ctx_defaults_init (glfs.c:100)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 576 bytes in 2 blocks are possibly lost in loss record 33 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x4011981: allocate_dtv (dl-tls.c:322)
==13758==    by 0x401234D: _dl_allocate_tls (dl-tls.c:539)
==13758==    by 0x5F3DF04: allocate_stack (allocatestack.c:586)
==13758==    by 0x5F3DF04: pthread_create@@GLIBC_2.2.5 (pthread_create.c:543)
==13758==    by 0x5A6DF83: gf_thread_create (common-utils.c:3549)
==13758==    by 0x5A99EA1: syncenv_new (syncop.c:827)
==13758==    by 0x4E3CB70: glusterfs_ctx_defaults_init (glfs.c:100)
==13758==    by 0x4E3DAB3: glfs_new@@GFAPI_3.4.0 (glfs.c:731)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 776 bytes in 1 blocks are possibly lost in loss record 34 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88686: __iobuf_arena_init_iobufs (iobuf.c:84)
==13758==    by 0x5A88AE6: __iobuf_arena_alloc (iobuf.c:208)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A894D0: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 1,848 bytes in 1 blocks are possibly lost in loss record 35 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A89068: iobuf_pool_new (iobuf.c:396)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 2,888 bytes in 1 blocks are possibly lost in loss record 36 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88686: __iobuf_arena_init_iobufs (iobuf.c:84)
==13758==    by 0x5A88AE6: __iobuf_arena_alloc (iobuf.c:208)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A89499: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 5,120 bytes in 1 blocks are still reachable in loss record 37 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5AB588F: glusterfs_ctx_new (ctx.c:24)
==13758==    by 0x4E3DB64: glfs_init_global_ctx (glfs.c:669)
==13758==    by 0x4E3DB64: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 5,704 bytes in 1 blocks are possibly lost in loss record 38 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88686: __iobuf_arena_init_iobufs (iobuf.c:84)
==13758==    by 0x5A88AE6: __iobuf_arena_alloc (iobuf.c:208)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A89464: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 11,336 bytes in 1 blocks are possibly lost in loss record 39 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88686: __iobuf_arena_init_iobufs (iobuf.c:84)
==13758==    by 0x5A88AE6: __iobuf_arena_alloc (iobuf.c:208)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A8942F: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 12,768 bytes in 1 blocks are possibly lost in loss record 40 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5AB9743: event_pool_new_epoll (event-epoll.c:243)
==13758==    by 0x5A86051: event_pool_new (event.c:37)
==13758==    by 0x4E3CB55: glusterfs_ctx_defaults_init (glfs.c:94)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 12,768 bytes in 1 blocks are definitely lost in loss record 41 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5AB9743: event_pool_new_epoll (event-epoll.c:243)
==13758==    by 0x5A86051: event_pool_new (event.c:37)
==13758==    by 0x4E3CB55: glusterfs_ctx_defaults_init (glfs.c:94)
==13758==    by 0x4E3DAB3: glfs_new@@GFAPI_3.4.0 (glfs.c:731)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 13,096 bytes in 1 blocks are still reachable in loss record 42 of 55
==13758==    at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==13758==    by 0x5A60854: __gf_default_malloc (mem-pool.h:106)
==13758==    by 0x5A60854: xlator_mem_acct_init (xlator.c:520)
==13758==    by 0x4E3CB07: glusterfs_ctx_defaults_init (glfs.c:68)
==13758==    by 0x4E3DAB3: glfs_new@@GFAPI_3.4.0 (glfs.c:731)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 13,096 bytes in 1 blocks are possibly lost in loss record 43 of 55
==13758==    at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==13758==    by 0x5A60854: __gf_default_malloc (mem-pool.h:106)
==13758==    by 0x5A60854: xlator_mem_acct_init (xlator.c:520)
==13758==    by 0x4E3CB07: glusterfs_ctx_defaults_init (glfs.c:68)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 15,600 bytes in 1 blocks are possibly lost in loss record 44 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A99DEE: syncenv_new (syncop.c:808)
==13758==    by 0x4E3CB70: glusterfs_ctx_defaults_init (glfs.c:100)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 15,600 bytes in 1 blocks are possibly lost in loss record 45 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A99DEE: syncenv_new (syncop.c:808)
==13758==    by 0x4E3CB70: glusterfs_ctx_defaults_init (glfs.c:100)
==13758==    by 0x4E3DAB3: glfs_new@@GFAPI_3.4.0 (glfs.c:731)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 35,912 bytes in 1 blocks are possibly lost in loss record 46 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A871E2: mem_pool_new_fn (mem-pool.c:383)
==13758==    by 0x4E3CC9B: glusterfs_ctx_defaults_init (glfs.c:140)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 45,128 bytes in 1 blocks are possibly lost in loss record 47 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88686: __iobuf_arena_init_iobufs (iobuf.c:84)
==13758==    by 0x5A88AE6: __iobuf_arena_alloc (iobuf.c:208)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A893C3: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 45,128 bytes in 1 blocks are possibly lost in loss record 48 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88686: __iobuf_arena_init_iobufs (iobuf.c:84)
==13758==    by 0x5A88AE6: __iobuf_arena_alloc (iobuf.c:208)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A893F8: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 90,184 bytes in 1 blocks are possibly lost in loss record 49 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A88686: __iobuf_arena_init_iobufs (iobuf.c:84)
==13758==    by 0x5A88AE6: __iobuf_arena_alloc (iobuf.c:208)
==13758==    by 0x5A88D5D: __iobuf_pool_add_arena (iobuf.c:272)
==13758==    by 0x5A88E24: iobuf_pool_add_arena (iobuf.c:297)
==13758==    by 0x5A8939E: iobuf_pool_new (iobuf.c:425)
==13758==    by 0x4E3CB36: glusterfs_ctx_defaults_init (glfs.c:89)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 704,584 bytes in 1 blocks are possibly lost in loss record 50 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A871E2: mem_pool_new_fn (mem-pool.c:383)
==13758==    by 0x4E3CC29: glusterfs_ctx_defaults_init (glfs.c:127)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 868,424 bytes in 1 blocks are possibly lost in loss record 51 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A871E2: mem_pool_new_fn (mem-pool.c:383)
==13758==    by 0x4E3CBBD: glusterfs_ctx_defaults_init (glfs.c:112)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 1,114,184 bytes in 1 blocks are possibly lost in loss record 52 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A871E2: mem_pool_new_fn (mem-pool.c:383)
==13758==    by 0x4E3CC4F: glusterfs_ctx_defaults_init (glfs.c:131)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 1,507,400 bytes in 1 blocks are possibly lost in loss record 53 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A871E2: mem_pool_new_fn (mem-pool.c:383)
==13758==    by 0x4E3CC75: glusterfs_ctx_defaults_init (glfs.c:136)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 1,896,520 bytes in 1 blocks are possibly lost in loss record 54 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A871E2: mem_pool_new_fn (mem-pool.c:383)
==13758==    by 0x4E3CBE0: glusterfs_ctx_defaults_init (glfs.c:117)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== 6,172,744 bytes in 1 blocks are possibly lost in loss record 55 of 55
==13758==    at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==13758==    by 0x5A869B9: __gf_calloc (mem-pool.c:117)
==13758==    by 0x5A871E2: mem_pool_new_fn (mem-pool.c:383)
==13758==    by 0x4E3CC03: glusterfs_ctx_defaults_init (glfs.c:122)
==13758==    by 0x4E3DB96: glfs_init_global_ctx (glfs.c:680)
==13758==    by 0x4E3DB96: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==13758==    by 0x4007D6: main (in /root/gf-test2/a.out)
==13758==
==13758== LEAK SUMMARY:
==13758==    definitely lost: 13,210 bytes in 3 blocks
==13758==    indirectly lost: 0 bytes in 0 blocks
==13758==      possibly lost: 12,567,428 bytes in 51 blocks
==13758==    still reachable: 18,224 bytes in 3 blocks
==13758==         suppressed: 0 bytes in 0 blocks
==13758==
==13758== For counts of detected and suppressed errors, rerun with: -v
==13758== ERROR SUMMARY: 52 errors from 52 contexts (suppressed: 0 from 0)

Actual results:

reported memory leaks

Expected results:

no memory leaks reported

Additional info:

--- Additional comment from Niels de Vos on 2016-09-12 01:39:53 EDT ---

All 3.8.x bugs are now reported against version 3.8 (without .x). For more information, see http://www.gluster.org/pipermail/gluster-devel/2016-September/050859.html

Comment 1 Worker Ant 2016-11-21 19:40:14 UTC
REVIEW: http://review.gluster.org/15895 (gfapi: Fix memory leak in glfs-mgmt) posted (#1) for review on master by Rajesh Joseph (rjoseph)

Comment 2 Worker Ant 2016-11-21 19:40:19 UTC
REVIEW: http://review.gluster.org/15896 (rpc: Fix double deletion of dict on failure case) posted (#1) for review on master by Rajesh Joseph (rjoseph)

Comment 3 Worker Ant 2016-11-21 19:40:44 UTC
REVIEW: http://review.gluster.org/15897 (rpc: fixed refcount for rpc_clnt) posted (#1) for review on master by Rajesh Joseph (rjoseph)

Comment 4 Niels de Vos 2016-11-24 10:26:59 UTC
Please keep the status of the bug updated. I do not know if more patches are coming, so I've set this bug to ASSIGNED.

Comment 5 Worker Ant 2016-11-28 08:49:07 UTC
COMMIT: http://review.gluster.org/15895 committed in master by Rajesh Joseph (rjoseph) 
------
commit 2e859ee88f285a098a5c02bd2bdc0cd4bbd44d56
Author: Rajesh Joseph <rjoseph>
Date:   Fri Sep 23 13:57:55 2016 +0530

    gfapi: Fix memory leak in glfs-mgmt
    
    dictionary was not freed after serialization
    
    Change-Id: I495f2f823b0d53a0d858876bde41fde5f0705113
    BUG: 1397177
    Signed-off-by: Rajesh Joseph <rjoseph>
    Reviewed-on: http://review.gluster.org/15895
    Smoke: Gluster Build System <jenkins.org>
    Reviewed-by: Vijay Bellur <vbellur>
    Reviewed-by: Poornima G <pgurusid>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>

Comment 6 rjoseph 2016-11-28 08:53:07 UTC
There would be more patches coming in. This is just a start. Thanks for changing the  bug state.

Unless specified explicitly the bug should remain in ASSIGNED state. There are many leaks in libgfapi. Unless most of them are addressed we should not change the state.

Comment 7 Worker Ant 2016-12-05 08:39:28 UTC
REVIEW: http://review.gluster.org/15896 (rpc: Fix double deletion of dict on failure case) posted (#2) for review on master by Rajesh Joseph (rjoseph)

Comment 8 Worker Ant 2016-12-05 08:43:30 UTC
REVIEW: http://review.gluster.org/15896 (rpc: Fix double deletion of dict on failure case) posted (#3) for review on master by Rajesh Joseph (rjoseph)

Comment 9 Worker Ant 2016-12-05 12:38:34 UTC
REVIEW: http://review.gluster.org/15896 (rpc: Fix double deletion of dict on failure case) posted (#4) for review on master by Rajesh Joseph (rjoseph)

Comment 10 Worker Ant 2016-12-05 12:47:10 UTC
REVIEW: http://review.gluster.org/15896 (rpc: Fix double deletion of dict on failure case) posted (#5) for review on master by Rajesh Joseph (rjoseph)

Comment 11 Worker Ant 2016-12-05 14:42:15 UTC
REVIEW: http://review.gluster.org/15896 (rpc: Fix double deletion of dict on failure case) posted (#6) for review on master by Rajesh Joseph (rjoseph)

Comment 12 Worker Ant 2017-02-17 09:05:18 UTC
REVIEW: https://review.gluster.org/15896 (rpc: Fix double deletion of dict on failure case) posted (#7) for review on master by Rajesh Joseph (rjoseph)

Comment 13 Shyamsundar 2017-03-06 17:35:27 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.10.0, please open a new bug report.

glusterfs-3.10.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/gluster-users/2017-February/030119.html
[2] https://www.gluster.org/pipermail/gluster-users/

Comment 14 piotr.rybicki 2017-03-07 11:29:30 UTC
This bug is not resolved. Created new one.

https://bugzilla.redhat.com/show_bug.cgi?id=1429877

Comment 15 Worker Ant 2017-03-10 09:47:14 UTC
REVIEW: https://review.gluster.org/15896 (rpc: Fix double deletion of dict on failure case) posted (#8) for review on master by Rajesh Joseph (rjoseph)


Note You need to log in before you can comment on or make changes to this bug.