Hello
There is a memleak (as reported by valgrind) in all gluster versions,
even in 3.8.1 (although leak is smaller)
gluster: 3.8.1
valgrind: 3.11.0
simple C code:
#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;
// glfs_fd_t *fd = NULL;
// int ret;
// char *filename = "filename";
fs = glfs_new ("pool");
if (!fs) {
fprintf (stderr, "glfs_new: returned NULL\n");
return 1;
}
// ret = glfs_set_volfile_server (fs, "rdma", "172.17.157.221", 24007);
// ret = glfs_set_logging (fs, "/dev/stderr", 7);
// ret = glfs_init (fs);
// ret = glfs_init (fs);
// fprintf (stderr, "glfs_init: returned %d\n", ret);
// fd = glfs_creat (fs, filename, O_RDWR, 0644);
// fprintf (stderr, "%s: (%p) %s\n", filename, fd, strerror(errno));
// ret = glfs_write (fd, "hello gluster\n", 15, 0);
// fprintf (stderr, "glfs_write: returned %d\n", ret);
// glfs_close (fd);
glfs_fini (fs);
return 0;
}
compiled by: gcc hellogluster-basic.c -lgfapi
valgrind output:
# valgrind --leak-check=full --show-reachable=yes --show-leak-kinds=all
./a.out
==31396== Memcheck, a memory error detector
==31396== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==31396== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==31396== Command: ./a.out
==31396==
==31396==
==31396== HEAP SUMMARY:
==31396== in use at exit: 12,598,702 bytes in 57 blocks
==31396== total heap usage: 141 allocs, 84 frees, 25,119,643 bytes
allocated
==31396==
==31396== 8 bytes in 1 blocks are still reachable in loss record 1 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A8B0D6: __gf_default_calloc (mem-pool.h:118)
==31396== by 0x5A8B0D6: __glusterfs_this_location (globals.c:147)
==31396== by 0x4E3D9FC: glfs_new@@GFAPI_3.4.0 (glfs.c:724)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 82 bytes in 1 blocks are definitely lost in loss record 2 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A6232F: gf_strdup (mem-pool.h:185)
==31396== by 0x5A6232F: gf_log_init (logging.c:735)
==31396== by 0x4E3DDB5: glfs_set_logging@@GFAPI_3.4.0 (glfs.c:862)
==31396== by 0x4E3DA4C: glfs_new@@GFAPI_3.4.0 (glfs.c:737)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 89 bytes in 1 blocks are possibly lost in loss record 3 of 55
==31396== at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==31396== by 0x5A8666D: __gf_malloc (mem-pool.c:142)
==31396== by 0x5A86991: gf_vasprintf (mem-pool.c:221)
==31396== by 0x5A86A83: gf_asprintf (mem-pool.c:240)
==31396== by 0x5A86CD2: mem_pool_new_fn (mem-pool.c:361)
==31396== by 0x4E3CBA9: glusterfs_ctx_defaults_init (glfs.c:127)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 89 bytes in 1 blocks are possibly lost in loss record 4 of 55
==31396== at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==31396== by 0x5A8666D: __gf_malloc (mem-pool.c:142)
==31396== by 0x5A86991: gf_vasprintf (mem-pool.c:221)
==31396== by 0x5A86A83: gf_asprintf (mem-pool.c:240)
==31396== by 0x5A86CD2: mem_pool_new_fn (mem-pool.c:361)
==31396== by 0x4E3CBF5: glusterfs_ctx_defaults_init (glfs.c:136)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 92 bytes in 1 blocks are possibly lost in loss record 5 of 55
==31396== at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==31396== by 0x5A8666D: __gf_malloc (mem-pool.c:142)
==31396== by 0x5A86991: gf_vasprintf (mem-pool.c:221)
==31396== by 0x5A86A83: gf_asprintf (mem-pool.c:240)
==31396== by 0x5A86CD2: mem_pool_new_fn (mem-pool.c:361)
==31396== by 0x4E3CC1B: glusterfs_ctx_defaults_init (glfs.c:140)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 94 bytes in 1 blocks are possibly lost in loss record 6 of 55
==31396== at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==31396== by 0x5A8666D: __gf_malloc (mem-pool.c:142)
==31396== by 0x5A86991: gf_vasprintf (mem-pool.c:221)
==31396== by 0x5A86A83: gf_asprintf (mem-pool.c:240)
==31396== by 0x5A86CD2: mem_pool_new_fn (mem-pool.c:361)
==31396== by 0x4E3CB83: glusterfs_ctx_defaults_init (glfs.c:122)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 94 bytes in 1 blocks are possibly lost in loss record 7 of 55
==31396== at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==31396== by 0x5A8666D: __gf_malloc (mem-pool.c:142)
==31396== by 0x5A86991: gf_vasprintf (mem-pool.c:221)
==31396== by 0x5A86A83: gf_asprintf (mem-pool.c:240)
==31396== by 0x5A86CD2: mem_pool_new_fn (mem-pool.c:361)
==31396== by 0x4E3CBCF: glusterfs_ctx_defaults_init (glfs.c:131)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 95 bytes in 1 blocks are possibly lost in loss record 8 of 55
==31396== at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==31396== by 0x5A8666D: __gf_malloc (mem-pool.c:142)
==31396== by 0x5A86991: gf_vasprintf (mem-pool.c:221)
==31396== by 0x5A86A83: gf_asprintf (mem-pool.c:240)
==31396== by 0x5A86CD2: mem_pool_new_fn (mem-pool.c:361)
==31396== by 0x4E3CB3D: glusterfs_ctx_defaults_init (glfs.c:112)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 95 bytes in 1 blocks are possibly lost in loss record 9 of 55
==31396== at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==31396== by 0x5A8666D: __gf_malloc (mem-pool.c:142)
==31396== by 0x5A86991: gf_vasprintf (mem-pool.c:221)
==31396== by 0x5A86A83: gf_asprintf (mem-pool.c:240)
==31396== by 0x5A86CD2: mem_pool_new_fn (mem-pool.c:361)
==31396== by 0x4E3CB60: glusterfs_ctx_defaults_init (glfs.c:117)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 116 bytes in 1 blocks are possibly lost in loss record 10 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A6C59B: gf_strdup (mem-pool.h:185)
==31396== by 0x5A6C59B: generate_glusterfs_ctx_id (common-utils.c:2936)
==31396== by 0x4E3CA96: glusterfs_ctx_defaults_init (glfs.c:82)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 152 bytes in 1 blocks are possibly lost in loss record 11 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x4E3CB1B: glusterfs_ctx_defaults_init (glfs.c:105)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 192 bytes in 1 blocks are possibly lost in loss record 12 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A6F8D6: gf_timer_registry_init (timer.c:222)
==31396== by 0x5A6F8D6: gf_timer_call_after (timer.c:40)
==31396== by 0x5A638A2: __gf_log_inject_timer_event (logging.c:1792)
==31396== by 0x5A638A2: gf_log_inject_timer_event (logging.c:1814)
==31396== by 0x4E3DDF0: glfs_set_logging@@GFAPI_3.4.0 (glfs.c:866)
==31396== by 0x4E3DA4C: glfs_new@@GFAPI_3.4.0 (glfs.c:737)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 224 bytes in 1 blocks are possibly lost in loss record 13 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86CA1: mem_pool_new_fn (mem-pool.c:357)
==31396== by 0x4E3CB3D: glusterfs_ctx_defaults_init (glfs.c:112)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 224 bytes in 1 blocks are possibly lost in loss record 14 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86CA1: mem_pool_new_fn (mem-pool.c:357)
==31396== by 0x4E3CB60: glusterfs_ctx_defaults_init (glfs.c:117)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 224 bytes in 1 blocks are possibly lost in loss record 15 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86CA1: mem_pool_new_fn (mem-pool.c:357)
==31396== by 0x4E3CB83: glusterfs_ctx_defaults_init (glfs.c:122)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 224 bytes in 1 blocks are possibly lost in loss record 16 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86CA1: mem_pool_new_fn (mem-pool.c:357)
==31396== by 0x4E3CBA9: glusterfs_ctx_defaults_init (glfs.c:127)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 224 bytes in 1 blocks are possibly lost in loss record 17 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86CA1: mem_pool_new_fn (mem-pool.c:357)
==31396== by 0x4E3CBCF: glusterfs_ctx_defaults_init (glfs.c:131)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 224 bytes in 1 blocks are possibly lost in loss record 18 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86CA1: mem_pool_new_fn (mem-pool.c:357)
==31396== by 0x4E3CBF5: glusterfs_ctx_defaults_init (glfs.c:136)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 224 bytes in 1 blocks are possibly lost in loss record 19 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86CA1: mem_pool_new_fn (mem-pool.c:357)
==31396== by 0x4E3CC1B: glusterfs_ctx_defaults_init (glfs.c:140)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 248 bytes in 1 blocks are possibly lost in loss record 20 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A881E6: __iobuf_arena_init_iobufs (iobuf.c:84)
==31396== by 0x5A88646: __iobuf_arena_alloc (iobuf.c:208)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A8905C: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 288 bytes in 1 blocks are possibly lost in loss record 21 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x4011981: allocate_dtv (dl-tls.c:322)
==31396== by 0x401234D: _dl_allocate_tls (dl-tls.c:539)
==31396== by 0x5F3CF04: allocate_stack (allocatestack.c:586)
==31396== by 0x5F3CF04: pthread_create@@GLIBC_2.2.5
(pthread_create.c:543)
==31396== by 0x5A6DCF3: gf_thread_create (common-utils.c:3549)
==31396== by 0x5A6F937: gf_timer_registry_init (timer.c:236)
==31396== by 0x5A6F937: gf_timer_call_after (timer.c:40)
==31396== by 0x5A638A2: __gf_log_inject_timer_event (logging.c:1792)
==31396== by 0x5A638A2: gf_log_inject_timer_event (logging.c:1814)
==31396== by 0x4E3DDF0: glfs_set_logging@@GFAPI_3.4.0 (glfs.c:866)
==31396== by 0x4E3DA4C: glfs_new@@GFAPI_3.4.0 (glfs.c:737)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 360 bytes in 1 blocks are possibly lost in loss record 22 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A88584: __iobuf_arena_alloc (iobuf.c:174)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A88EFE: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 360 bytes in 1 blocks are possibly lost in loss record 23 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A88584: __iobuf_arena_alloc (iobuf.c:174)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A88F23: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 360 bytes in 1 blocks are possibly lost in loss record 24 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A88584: __iobuf_arena_alloc (iobuf.c:174)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A88F58: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 360 bytes in 1 blocks are possibly lost in loss record 25 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A88584: __iobuf_arena_alloc (iobuf.c:174)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A88F8F: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 360 bytes in 1 blocks are possibly lost in loss record 26 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A88584: __iobuf_arena_alloc (iobuf.c:174)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A88FC4: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 360 bytes in 1 blocks are possibly lost in loss record 27 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A88584: __iobuf_arena_alloc (iobuf.c:174)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A88FF9: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 360 bytes in 1 blocks are possibly lost in loss record 28 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A88584: __iobuf_arena_alloc (iobuf.c:174)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A89030: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 360 bytes in 1 blocks are possibly lost in loss record 29 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A88584: __iobuf_arena_alloc (iobuf.c:174)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A8905C: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 360 bytes in 1 blocks are possibly lost in loss record 30 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A8907A: iobuf_create_stdalloc_arena (iobuf.c:367)
==31396== by 0x5A8907A: iobuf_pool_new (iobuf.c:431)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 360 bytes in 1 blocks are definitely lost in loss record 31 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A8907A: iobuf_create_stdalloc_arena (iobuf.c:367)
==31396== by 0x5A8907A: iobuf_pool_new (iobuf.c:431)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DA33: glfs_new@@GFAPI_3.4.0 (glfs.c:731)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 576 bytes in 2 blocks are possibly lost in loss record 32 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x4011981: allocate_dtv (dl-tls.c:322)
==31396== by 0x401234D: _dl_allocate_tls (dl-tls.c:539)
==31396== by 0x5F3CF04: allocate_stack (allocatestack.c:586)
==31396== by 0x5F3CF04: pthread_create@@GLIBC_2.2.5
(pthread_create.c:543)
==31396== by 0x5A6DCF3: gf_thread_create (common-utils.c:3549)
==31396== by 0x5A99A01: syncenv_new (syncop.c:827)
==31396== by 0x4E3CAF0: glusterfs_ctx_defaults_init (glfs.c:100)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 576 bytes in 2 blocks are possibly lost in loss record 33 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x4011981: allocate_dtv (dl-tls.c:322)
==31396== by 0x401234D: _dl_allocate_tls (dl-tls.c:539)
==31396== by 0x5F3CF04: allocate_stack (allocatestack.c:586)
==31396== by 0x5F3CF04: pthread_create@@GLIBC_2.2.5
(pthread_create.c:543)
==31396== by 0x5A6DCF3: gf_thread_create (common-utils.c:3549)
==31396== by 0x5A99A01: syncenv_new (syncop.c:827)
==31396== by 0x4E3CAF0: glusterfs_ctx_defaults_init (glfs.c:100)
==31396== by 0x4E3DA33: glfs_new@@GFAPI_3.4.0 (glfs.c:731)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 776 bytes in 1 blocks are possibly lost in loss record 34 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A881E6: __iobuf_arena_init_iobufs (iobuf.c:84)
==31396== by 0x5A88646: __iobuf_arena_alloc (iobuf.c:208)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A89030: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 1,848 bytes in 1 blocks are possibly lost in loss record 35 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A88BC8: iobuf_pool_new (iobuf.c:396)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 2,888 bytes in 1 blocks are possibly lost in loss record 36 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A881E6: __iobuf_arena_init_iobufs (iobuf.c:84)
==31396== by 0x5A88646: __iobuf_arena_alloc (iobuf.c:208)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A88FF9: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 5,120 bytes in 1 blocks are still reachable in loss record 37
of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5AB53EF: glusterfs_ctx_new (ctx.c:24)
==31396== by 0x4E3DAE4: glfs_init_global_ctx (glfs.c:669)
==31396== by 0x4E3DAE4: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 5,704 bytes in 1 blocks are possibly lost in loss record 38 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A881E6: __iobuf_arena_init_iobufs (iobuf.c:84)
==31396== by 0x5A88646: __iobuf_arena_alloc (iobuf.c:208)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A88FC4: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 11,336 bytes in 1 blocks are possibly lost in loss record 39 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A881E6: __iobuf_arena_init_iobufs (iobuf.c:84)
==31396== by 0x5A88646: __iobuf_arena_alloc (iobuf.c:208)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A88F8F: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 12,768 bytes in 1 blocks are possibly lost in loss record 40 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5AB92A3: event_pool_new_epoll (event-epoll.c:243)
==31396== by 0x5A85BD1: event_pool_new (event.c:37)
==31396== by 0x4E3CAD5: glusterfs_ctx_defaults_init (glfs.c:94)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 12,768 bytes in 1 blocks are definitely lost in loss record 41
of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5AB92A3: event_pool_new_epoll (event-epoll.c:243)
==31396== by 0x5A85BD1: event_pool_new (event.c:37)
==31396== by 0x4E3CAD5: glusterfs_ctx_defaults_init (glfs.c:94)
==31396== by 0x4E3DA33: glfs_new@@GFAPI_3.4.0 (glfs.c:731)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 13,016 bytes in 1 blocks are still reachable in loss record 42
of 55
==31396== at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==31396== by 0x5A605C4: __gf_default_malloc (mem-pool.h:106)
==31396== by 0x5A605C4: xlator_mem_acct_init (xlator.c:520)
==31396== by 0x4E3CA87: glusterfs_ctx_defaults_init (glfs.c:68)
==31396== by 0x4E3DA33: glfs_new@@GFAPI_3.4.0 (glfs.c:731)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 13,016 bytes in 1 blocks are possibly lost in loss record 43 of 55
==31396== at 0x4C29FE0: malloc (vg_replace_malloc.c:299)
==31396== by 0x5A605C4: __gf_default_malloc (mem-pool.h:106)
==31396== by 0x5A605C4: xlator_mem_acct_init (xlator.c:520)
==31396== by 0x4E3CA87: glusterfs_ctx_defaults_init (glfs.c:68)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 15,600 bytes in 1 blocks are possibly lost in loss record 44 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A9994E: syncenv_new (syncop.c:808)
==31396== by 0x4E3CAF0: glusterfs_ctx_defaults_init (glfs.c:100)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 15,600 bytes in 1 blocks are possibly lost in loss record 45 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A9994E: syncenv_new (syncop.c:808)
==31396== by 0x4E3CAF0: glusterfs_ctx_defaults_init (glfs.c:100)
==31396== by 0x4E3DA33: glfs_new@@GFAPI_3.4.0 (glfs.c:731)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 35,912 bytes in 1 blocks are possibly lost in loss record 46 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86D42: mem_pool_new_fn (mem-pool.c:379)
==31396== by 0x4E3CC1B: glusterfs_ctx_defaults_init (glfs.c:140)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 45,128 bytes in 1 blocks are possibly lost in loss record 47 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A881E6: __iobuf_arena_init_iobufs (iobuf.c:84)
==31396== by 0x5A88646: __iobuf_arena_alloc (iobuf.c:208)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A88F23: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 45,128 bytes in 1 blocks are possibly lost in loss record 48 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A881E6: __iobuf_arena_init_iobufs (iobuf.c:84)
==31396== by 0x5A88646: __iobuf_arena_alloc (iobuf.c:208)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A88F58: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 90,184 bytes in 1 blocks are possibly lost in loss record 49 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A881E6: __iobuf_arena_init_iobufs (iobuf.c:84)
==31396== by 0x5A88646: __iobuf_arena_alloc (iobuf.c:208)
==31396== by 0x5A888BD: __iobuf_pool_add_arena (iobuf.c:272)
==31396== by 0x5A88984: iobuf_pool_add_arena (iobuf.c:297)
==31396== by 0x5A88EFE: iobuf_pool_new (iobuf.c:425)
==31396== by 0x4E3CAB6: glusterfs_ctx_defaults_init (glfs.c:89)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 704,584 bytes in 1 blocks are possibly lost in loss record 50
of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86D42: mem_pool_new_fn (mem-pool.c:379)
==31396== by 0x4E3CBA9: glusterfs_ctx_defaults_init (glfs.c:127)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 868,424 bytes in 1 blocks are possibly lost in loss record 51
of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86D42: mem_pool_new_fn (mem-pool.c:379)
==31396== by 0x4E3CB3D: glusterfs_ctx_defaults_init (glfs.c:112)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 1,114,184 bytes in 1 blocks are possibly lost in loss record
52 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86D42: mem_pool_new_fn (mem-pool.c:379)
==31396== by 0x4E3CBCF: glusterfs_ctx_defaults_init (glfs.c:131)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 1,507,400 bytes in 1 blocks are possibly lost in loss record
53 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86D42: mem_pool_new_fn (mem-pool.c:379)
==31396== by 0x4E3CBF5: glusterfs_ctx_defaults_init (glfs.c:136)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 1,896,520 bytes in 1 blocks are possibly lost in loss record
54 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86D42: mem_pool_new_fn (mem-pool.c:379)
==31396== by 0x4E3CB60: glusterfs_ctx_defaults_init (glfs.c:117)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== 6,172,744 bytes in 1 blocks are possibly lost in loss record
55 of 55
==31396== at 0x4C2C0D0: calloc (vg_replace_malloc.c:711)
==31396== by 0x5A86539: __gf_calloc (mem-pool.c:117)
==31396== by 0x5A86D42: mem_pool_new_fn (mem-pool.c:379)
==31396== by 0x4E3CB83: glusterfs_ctx_defaults_init (glfs.c:122)
==31396== by 0x4E3DB16: glfs_init_global_ctx (glfs.c:680)
==31396== by 0x4E3DB16: glfs_new@@GFAPI_3.4.0 (glfs.c:725)
==31396== by 0x4007D6: main (in /root/gf-test2/a.out)
==31396==
==31396== LEAK SUMMARY:
==31396== definitely lost: 13,210 bytes in 3 blocks
==31396== indirectly lost: 0 bytes in 0 blocks
==31396== possibly lost: 12,567,348 bytes in 51 blocks
==31396== still reachable: 18,144 bytes in 3 blocks
==31396== suppressed: 0 bytes in 0 blocks
==31396==
==31396== For counts of detected and suppressed errors, rerun with: -v
==31396== ERROR SUMMARY: 52 errors from 52 contexts (suppressed: 0 from 0)
Best regards
Piotr Rybicki
_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-users