<p dir="ltr">-Atin<br>
Sent from one plus one<br>
On 04-Mar-2016 6:12 am, &quot;Joseph Fernandes&quot; &lt;<a href="mailto:josferna@redhat.com">josferna@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Ajil,<br>
&gt;<br>
&gt; Well few things,<br>
&gt;<br>
&gt; 1. Whenever you see a crash its better to send across the Backtrace(BT) using gdb and attach the log files (or share it via some cloud drive)<br>
&gt;<br>
&gt; 2. About the memory leak, What kind of tools are you using for profiling memory, valgrind ? if so please attach the valgrind reports.<br>
&gt;    $&gt; glusterd --xlator-option *.run-with-valgrind=yes<br>
&gt;<br>
&gt; 3. Well I am not sure if glusterd uses any of the mempools as we do in client and brick processes, Atin can shed some light on this.<br>
&gt;    Well In that case you can used the statedump mechanism check for mem-leaks check the glusterfs/doc/debugging/<a href="http://statedump.md">statedump.md</a><br>
GlusterD does use mempool and it has infra for capturing statedump as well. I am aware of few bytes of memory leaks in few paths which is really not a huge concern but it shouldn&#39;t crash.<br>
&gt;<br>
&gt; Hope this helps<br>
&gt;<br>
&gt; ~Joe<br>
&gt;<br>
&gt;<br>
&gt; ----- Original Message -----<br>
&gt; &gt; From: &quot;Ajil Abraham&quot; &lt;<a href="mailto:ajil95.abraham@gmail.com">ajil95.abraham@gmail.com</a>&gt;<br>
&gt; &gt; To: &quot;Atin Mukherjee&quot; &lt;<a href="mailto:atin.mukherjee83@gmail.com">atin.mukherjee83@gmail.com</a>&gt;<br>
&gt; &gt; Cc: &quot;Gluster Devel&quot; &lt;<a href="mailto:gluster-devel@gluster.org">gluster-devel@gluster.org</a>&gt;<br>
&gt; &gt; Sent: Thursday, March 3, 2016 10:48:56 PM<br>
&gt; &gt; Subject: Re: [Gluster-devel] glusterd crashing<br>
&gt; &gt;<br>
&gt; &gt; Hi Atin,<br>
&gt; &gt;<br>
&gt; &gt; The inputs I use are as per the requirements of a project I am working on for<br>
&gt; &gt; one of the large finance institutions in Dubai. I will try to handle the<br>
&gt; &gt; input validation within my code. I uncovered some of the issues while doing<br>
&gt; &gt; a thorough testing of my code.<br>
&gt; &gt;<br>
&gt; &gt; I tried with 3.7.6 and also my own build from master branch. I will check<br>
&gt; &gt; with my superiors before sending you backtrace and other details. So far, I<br>
&gt; &gt; have seen memory leak in 100s of KBs.<br>
&gt; &gt;<br>
&gt; &gt; -Ajil<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Thu, Mar 3, 2016 at 10:17 PM, Atin Mukherjee &lt; <a href="mailto:atin.mukherjee83@gmail.com">atin.mukherjee83@gmail.com</a><br>
&gt; &gt; &gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Hi Ajil,<br>
&gt; &gt;<br>
&gt; &gt; Its good to see that you are doing a thorough testing gluster. From your mail<br>
&gt; &gt; it looks like your automation focuses on mostly negative tests. I need few<br>
&gt; &gt; additional details to get to know whether they are known:<br>
&gt; &gt;<br>
&gt; &gt; 1. Version of gluster<br>
&gt; &gt; 2. Backtrace of the crash along with reproducer<br>
&gt; &gt; 3. Amount of memory leak in terms of bytes/KB/MB?? Have you already<br>
&gt; &gt; identified them?<br>
&gt; &gt;<br>
&gt; &gt; -Atin<br>
&gt; &gt; Sent from one plus one<br>
&gt; &gt; On 03-Mar-2016 10:01 pm, &quot;Ajil Abraham&quot; &lt; <a href="mailto:ajil95.abraham@gmail.com">ajil95.abraham@gmail.com</a> &gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; For my project, I am trying to do some automation using glusterd. It is very<br>
&gt; &gt; frustrating to see it crashing frequently. Looks like input validation is<br>
&gt; &gt; the culprit. I also see lot of buffer overflow and memory leak issues.<br>
&gt; &gt; Making a note of these and will try to fix them. Surprised to see such basic<br>
&gt; &gt; issues still existing in Gluster.<br>
&gt; &gt;<br>
&gt; &gt; -Ajil<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Gluster-devel mailing list<br>
&gt; &gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; &gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Gluster-devel mailing list<br>
&gt; &gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; &gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
</p>