<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"><<a href="mailto:manu@netbsd.org" target="_blank">manu@netbsd.org</a>></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 "this" gets replaced by process<br>
environment. Here is an example:<br>
<br>
#3 0xbb75afb2 in dict_get (this=0xbb140628,<br>
key=0xbb23669a "transport.address-family") at dict.c:380<br>
(gdb) list<br>
375 if (!this || !key) {<br>
376 gf_log_callingfn ("dict", GF_LOG_INFO,<br>
377 "!this || key=%s", (key) ? key :<br>
"()");<br>
378 return NULL;<br>
379 }<br>
380 if (this->hash_size < 0) abort();<br>
381<br>
382 LOCK (&this->lock);<br>
383<br>
384 pair = _dict_lookup (this, key);<br>
<br>
Note I added the if (this->hash_size < 0) abort(); to catch the problem early.<br>
"this" is completely corrupted:<br>
<br>
(gdb) print *this<br>
$2 = {is_static = 1 '\001', hash_size = -1082130687, count = -1082130674,<br>
refcount = -1082130649, members = 0xbf7fff2e, members_list = 0xbf7fff39,<br>
extra_free = 0xbf7fff41 "HARNESS_VERSION=3.26",<br>
extra_stdfree = 0xbf7fff56 "SU_FROM=root", lock = {pts_magic = 3212836707,<br>
pts_spin = 112 'p', 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: "MAIL=/var/mail/root"<br>
(gdb) x/1s 0xbf7fff01<br>
0xbf7fff01: "BLOCKSIZE=1k"<br>
(gdb) x/1s 0xbf7fff0e<br>
0xbf7fff0e: "PWD=/autobuild/glusterfs"<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>