<div dir="ltr">Can you post a bt full?<div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 13, 2014 at 9:35 PM, Emmanuel Dreyfus <span dir="ltr">&lt;<a href="mailto:manu@netbsd.org" target="_blank">manu@netbsd.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just in case someone has an idea why this happens: From time to time on<br>
NetBSD, gluster randomly crashes because &quot;this&quot; gets replaced by process<br>
environment. Here is an example:<br>
<br>
#3  0xbb75afb2 in dict_get (this=0xbb140628,<br>
    key=0xbb23669a &quot;transport.address-family&quot;) at dict.c:380<br>
(gdb) list<br>
375             if (!this || !key) {<br>
376                     gf_log_callingfn (&quot;dict&quot;, GF_LOG_INFO,<br>
377                                       &quot;!this || key=%s&quot;, (key) ? key :<br>
&quot;()&quot;);<br>
378                     return NULL;<br>
379             }<br>
380     if (this-&gt;hash_size &lt; 0) abort();<br>
381<br>
382             LOCK (&amp;this-&gt;lock);<br>
383<br>
384             pair = _dict_lookup (this, key);<br>
<br>
Note I added the if (this-&gt;hash_size &lt; 0) abort(); to catch the problem early.<br>
&quot;this&quot; is completely corrupted:<br>
<br>
(gdb) print *this<br>
$2 = {is_static = 1 &#39;\001&#39;, hash_size = -1082130687, count = -1082130674,<br>
  refcount = -1082130649, members = 0xbf7fff2e, members_list = 0xbf7fff39,<br>
  extra_free = 0xbf7fff41 &quot;HARNESS_VERSION=3.26&quot;,<br>
  extra_stdfree = 0xbf7fff56 &quot;SU_FROM=root&quot;, lock = {pts_magic = 3212836707,<br>
    pts_spin = 112 &#39;p&#39;, pts_flags = -1082130523},<br>
  members_internal = 0xbf7fffb6, free_pair = {hash_next = 0xbb185411,<br>
    prev = 0x0, next = 0x0, value = 0x0, key = 0x0},<br>
  free_pair_in_use = _gf_false}<br>
<br>
Hex output give a better hint at the problem:<br>
<br>
(gdb) x/10wx this<br>
0xbb140628:     0xbf7ffeed      0xbf7fff01      0xbf7fff0e      0xbf7fff27<br>
0xbb140638:     0xbf7fff2e      0xbf7fff39      0xbf7fff41      0xbf7fff56<br>
0xbb140648:     0xbf7fff63      0xbf7fff70<br>
(gdb) x/1s 0xbf7ffeed<br>
0xbf7ffeed:      &quot;MAIL=/var/mail/root&quot;<br>
(gdb) x/1s 0xbf7fff01<br>
0xbf7fff01:      &quot;BLOCKSIZE=1k&quot;<br>
(gdb) x/1s 0xbf7fff0e<br>
0xbf7fff0e:      &quot;PWD=/autobuild/glusterfs&quot;<br>
<br>
<br>
Oddly, rebooting the machine fixes the problem.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Emmanuel Dreyfus<br>
<a href="http://hcpnet.free.fr/pubz" target="_blank">http://hcpnet.free.fr/pubz</a><br>
<a href="mailto:manu@netbsd.org">manu@netbsd.org</a><br>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-devel</a><br>
</font></span></blockquote></div><br></div>