<p dir="ltr"></p>
<p dir="ltr">-Atin<br>
Sent from one plus one<br>
On 05-Mar-2016 11:46 am, &quot;Ajil Abraham&quot; &lt;<a href="mailto:ajil95.abraham@gmail.com">ajil95.abraham@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Thanks for all the support.  After handling the input validation in my code, Glusterd no longer crashes.  I am still waiting for clearance from my superior to pass on all the details. Expecting him to revert by this Sunday.<br>
Great to know that and we appreciate your contribution, if you happen to find any issues feel free to send patches :) <br>
&gt;<br>
&gt; - Ajil<br>
&gt;<br>
&gt; On Fri, Mar 4, 2016 at 10:20 AM, Joseph Fernandes &lt;<a href="mailto:josferna@redhat.com">josferna@redhat.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Well that may not be completely correct !<br>
&gt;&gt;<br>
&gt;&gt; Its  &quot;gluster volume status all&quot;, unlike volume maintenance operation which are rare.<br>
&gt;&gt;<br>
&gt;&gt; Status can be issued multiple times in a day or might be put in a script/cron-job to check the health of the<br>
&gt;&gt; cluster.<br>
&gt;&gt; But anyways the fix is ready as the bug says.<br>
&gt;&gt;<br>
&gt;&gt; Crash is what we need to worry about.<br>
&gt;&gt;<br>
&gt;&gt; ~Joe<br>
&gt;&gt;<br>
&gt;&gt; ----- Original Message -----<br>
&gt;&gt; &gt; From: &quot;Atin Mukherjee&quot; &lt;<a href="mailto:amukherj@redhat.com">amukherj@redhat.com</a>&gt;<br>
&gt;&gt; &gt; To: &quot;Joseph Fernandes&quot; &lt;<a href="mailto:josferna@redhat.com">josferna@redhat.com</a>&gt;, &quot;Atin Mukherjee&quot; &lt;<a href="mailto:atin.mukherjee83@gmail.com">atin.mukherjee83@gmail.com</a>&gt;<br>
&gt;&gt; &gt; Cc: &quot;Gluster Devel&quot; &lt;<a href="mailto:gluster-devel@gluster.org">gluster-devel@gluster.org</a>&gt;, &quot;Ajil Abraham&quot; &lt;<a href="mailto:ajil95.abraham@gmail.com">ajil95.abraham@gmail.com</a>&gt;<br>
&gt;&gt; &gt; Sent: Friday, March 4, 2016 9:37:43 AM<br>
&gt;&gt; &gt; Subject: Re: [Gluster-devel] glusterd crashing<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On 03/04/2016 07:10 AM, Joseph Fernandes wrote:<br>
&gt;&gt; &gt; &gt; Might be this bug can give some context on the mem-leak (fix recently<br>
&gt;&gt; &gt; &gt; merged on master but not on 3.7.x)<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1287517">https://bugzilla.redhat.com/show_bug.cgi?id=1287517</a><br>
&gt;&gt; &gt; Yes, this is what we&#39;d be fixing in 3.7.x too, but if you refer to [1]<br>
&gt;&gt; &gt; the hike is seen when a command is run in a loop which is typically not<br>
&gt;&gt; &gt; a use case in any production setup.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; [1] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1287517#c15">https://bugzilla.redhat.com/show_bug.cgi?id=1287517#c15</a><br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; ~Joe<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; ----- Original Message -----<br>
&gt;&gt; &gt; &gt;&gt; From: &quot;Atin Mukherjee&quot; &lt;<a href="mailto:atin.mukherjee83@gmail.com">atin.mukherjee83@gmail.com</a>&gt;<br>
&gt;&gt; &gt; &gt;&gt; To: &quot;Joseph Fernandes&quot; &lt;<a href="mailto:josferna@redhat.com">josferna@redhat.com</a>&gt;<br>
&gt;&gt; &gt; &gt;&gt; Cc: &quot;Gluster Devel&quot; &lt;<a href="mailto:gluster-devel@gluster.org">gluster-devel@gluster.org</a>&gt;, &quot;Ajil Abraham&quot;<br>
&gt;&gt; &gt; &gt;&gt; &lt;<a href="mailto:ajil95.abraham@gmail.com">ajil95.abraham@gmail.com</a>&gt;<br>
&gt;&gt; &gt; &gt;&gt; Sent: Friday, March 4, 2016 7:01:54 AM<br>
&gt;&gt; &gt; &gt;&gt; Subject: Re: [Gluster-devel] glusterd crashing<br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt; -Atin<br>
&gt;&gt; &gt; &gt;&gt; Sent from one plus one<br>
&gt;&gt; &gt; &gt;&gt; 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;&gt; &gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt; Hi Ajil,<br>
&gt;&gt; &gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt; Well few things,<br>
&gt;&gt; &gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt; 1. Whenever you see a crash its better to send across the Backtrace(BT)<br>
&gt;&gt; &gt; &gt;&gt; using gdb and attach the log files (or share it via some cloud drive)<br>
&gt;&gt; &gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt; 2. About the memory leak, What kind of tools are you using for profiling<br>
&gt;&gt; &gt; &gt;&gt; memory, valgrind ? if so please attach the valgrind reports.<br>
&gt;&gt; &gt; &gt;&gt;&gt;    $&gt; glusterd --xlator-option *.run-with-valgrind=yes<br>
&gt;&gt; &gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt; 3. Well I am not sure if glusterd uses any of the mempools as we do in<br>
&gt;&gt; &gt; &gt;&gt; client and brick processes, Atin can shed some light on this.<br>
&gt;&gt; &gt; &gt;&gt;&gt;    Well In that case you can used the statedump mechanism check for<br>
&gt;&gt; &gt; &gt;&gt; mem-leaks check the glusterfs/doc/debugging/<a href="http://statedump.md">statedump.md</a><br>
&gt;&gt; &gt; &gt;&gt; GlusterD does use mempool and it has infra for capturing statedump as<br>
&gt;&gt; &gt; &gt;&gt; well.<br>
&gt;&gt; &gt; &gt;&gt; I am aware of few bytes of memory leaks in few paths which is really not a<br>
&gt;&gt; &gt; &gt;&gt; huge concern but it shouldn&#39;t crash.<br>
&gt;&gt; &gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt; Hope this helps<br>
&gt;&gt; &gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt; ~Joe<br>
&gt;&gt; &gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt; ----- Original Message -----<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; From: &quot;Ajil Abraham&quot; &lt;<a href="mailto:ajil95.abraham@gmail.com">ajil95.abraham@gmail.com</a>&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; To: &quot;Atin Mukherjee&quot; &lt;<a href="mailto:atin.mukherjee83@gmail.com">atin.mukherjee83@gmail.com</a>&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; Cc: &quot;Gluster Devel&quot; &lt;<a href="mailto:gluster-devel@gluster.org">gluster-devel@gluster.org</a>&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; Sent: Thursday, March 3, 2016 10:48:56 PM<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; Subject: Re: [Gluster-devel] glusterd crashing<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; Hi Atin,<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; The inputs I use are as per the requirements of a project I am working<br>
&gt;&gt; &gt; &gt;&gt; on for<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; one of the large finance institutions in Dubai. I will try to handle the<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; input validation within my code. I uncovered some of the issues while<br>
&gt;&gt; &gt; &gt;&gt; doing<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; a thorough testing of my code.<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; I tried with 3.7.6 and also my own build from master branch. I will<br>
&gt;&gt; &gt; &gt;&gt; check<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; with my superiors before sending you backtrace and other details. So<br>
&gt;&gt; &gt; &gt;&gt; far, I<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; have seen memory leak in 100s of KBs.<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; -Ajil<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; On Thu, Mar 3, 2016 at 10:17 PM, Atin Mukherjee &lt;<br>
&gt;&gt; &gt; &gt;&gt; <a href="mailto:atin.mukherjee83@gmail.com">atin.mukherjee83@gmail.com</a><br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; Hi Ajil,<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; Its good to see that you are doing a thorough testing gluster. From<br>
&gt;&gt; &gt; &gt;&gt; your mail<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; it looks like your automation focuses on mostly negative tests. I need<br>
&gt;&gt; &gt; &gt;&gt; few<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; additional details to get to know whether they are known:<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; 1. Version of gluster<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; 2. Backtrace of the crash along with reproducer<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; 3. Amount of memory leak in terms of bytes/KB/MB?? Have you already<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; identified them?<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; -Atin<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; Sent from one plus one<br>
&gt;&gt; &gt; &gt;&gt;&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;<br>
&gt;&gt; &gt; &gt;&gt; wrote:<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; For my project, I am trying to do some automation using glusterd. It is<br>
&gt;&gt; &gt; &gt;&gt; very<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; frustrating to see it crashing frequently. Looks like input validation<br>
&gt;&gt; &gt; &gt;&gt; is<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; the culprit. I also see lot of buffer overflow and memory leak issues.<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; Making a note of these and will try to fix them. Surprised to see such<br>
&gt;&gt; &gt; &gt;&gt; basic<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; issues still existing in Gluster.<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; -Ajil<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; Gluster-devel mailing list<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; Gluster-devel mailing list<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; &gt; Gluster-devel mailing list<br>
&gt;&gt; &gt; &gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt;&gt; &gt; &gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Gluster-devel mailing list<br>
&gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
</p>