Re: [Gluster-users] Gfapi memleaks, all versions

2016-09-06 Thread feihu929
Hello, Oleksandr You can compile that simple test code posted here(http://www.gluster.org/pipermail/gluster-users/2016-August/028183.html). Then, run the command $>valgrind cmd: G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --tool=massif ./glfsxmp the cmd will produce a file like

Re: [Gluster-users] Gfapi memleaks, all versions

2016-09-02 Thread feihu929
Hi, Pranith >There was a time when all this clean up was not necessary because >the mount process would die anyway. Then when gfapi came in, the process >wouldn't die anymore :-), so we have to fix all the shortcuts we took over >the years to properly fix it. So lot of work :-/. It is some

[Gluster-users] Gfapi memleaks, all versions

2016-08-24 Thread feihu929
Hello There is a large memleak (as reported by valgrind) in all gluster versions, even in 3.8.3 C code #include "stdio.h" #include #include #include #include #include void aa() { glfs_t *vol; char *volume = ""; vol = glfs_new(volume); glfs_set_