<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 7, 2016 at 12:24 AM, Oleksandr Natalenko <span dir="ltr">&lt;<a href="mailto:oleksandr@natalenko.name" target="_blank">oleksandr@natalenko.name</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
thanks, but that is not what I want. I have no issues debugging gfapi apps,<br>
but have an issue with GlusterFS FUSE client not being handled properly by<br>
Massif tool.<br>
<br>
Valgrind+Massif does not handle all forked children properly, and I believe<br>
that happens because of some memory corruption in GlusterFS FUSE client.<br></blockquote><div><br></div><div>Is this the same libc issue that we debugged and provided with the option to avoid it?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards,<br>
  Oleksandr<br>
<span class=""><br>
On субота, 3 вересня 2016 р. 18:21:59 EEST <a href="mailto:feihu929@sina.com">feihu929@sina.com</a> wrote:<br>
&gt;  Hello,  Oleksandr<br>
&gt;     You can compile that simple test code posted<br>
&gt; here(<a href="http://www.gluster.org/pipermail/gluster-users/2016-August/028183.html" rel="noreferrer" target="_blank">http://www.gluster.org/<wbr>pipermail/gluster-users/2016-<wbr>August/028183.html</a><br>
</span>&gt; ). Then, run the command<br>
<span class="im HOEnZb">&gt; $&gt;valgrind cmd: G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind<br>
&gt; --tool=massif  ./glfsxmp the cmd will produce a file like massif.out.xxxx,<br>
&gt;  the file is the memory leak log file , you can use ms_print tool as below<br>
&gt; command $&gt;ms_print  massif.out.xxxx<br>
&gt; the cmd will output the memory alloc detail.<br>
&gt;<br>
&gt; the simple test code just call glfs_init and glfs_fini 100 times to found<br>
&gt; the memory leak,  by my test, all xlator init and fini is the main memory<br>
&gt; leak function. If you can locate the simple code memory leak code, maybe,<br>
&gt; you can locate the leak code in fuse client.<br>
&gt;<br>
&gt; please enjoy.<br>
<br>
<br>
</span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://www.gluster.org/<wbr>mailman/listinfo/gluster-users</a></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Pranith<br></div></div>
</div></div>