Again, the full backtrace will throw more light as to which FOP invoked the resolver.. please post it<div><br></div><div>Avati<br><br><div class="gmail_quote">On Sun, Jul 3, 2011 at 3:04 PM, Emmanuel Dreyfus <span dir="ltr">&lt;<a href="mailto:manu@netbsd.org">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;">Emmanuel Dreyfus &lt;<a href="mailto:manu@netbsd.org">manu@netbsd.org</a>&gt; wrote:<br>
<br>
&gt; Same problem here:<br>
<br>
Well it is not the same problem at all, I changed the subjet to reflect<br>
that<br>
<br>
&gt; Program terminated with signal 11, Segmentation fault.<br>
&gt; #0  0xba4cf88b in resolve_loc_touchup (frame=0xbad002f0)<br>
&gt;     at ../../../../libglusterfs/src/mem-pool.h:127<br>
&gt;<br>
&gt; Here is it:<br>
&gt;<br>
&gt; static inline<br>
&gt; char * gf_strdup (const char *src)<br>
&gt; {<br>
&gt;<br>
&gt;         char    *dup_str = NULL;<br>
&gt;         size_t  len = 0;<br>
&gt;<br>
&gt;         len = strlen (src) + 1;<br>
&gt;<br>
&gt; src is not a C string. We got there through resolve_loc_touchup():<br>
&gt;<br>
&gt;                 if (!path)<br>
&gt;                         path = gf_strdup (resolve-&gt;path);<br>
&gt;<br>
&gt; And here is resolve, where path is NULL.<br>
&gt;<br>
&gt; (gdb) print  *((server_state_t *)frame-&gt;root-&gt;state)-&gt;resolve_now<br>
&gt; $5 = {type = 0, fd_no = 18446744073709551615, ino = 0, gen = 0, par = 0,<br>
&gt;   gfid = &#39;\0&#39; &lt;repeats 15 times&gt;, pargfid = &#39;\0&#39; &lt;repeats 15 times&gt;,<br>
&gt;   path = 0x0, bname = 0x0, resolved = 0x0, op_ret = 0, op_errno = 0,<br>
&gt;   deep_loc = {path = 0x0, name = 0x0, ino = 0, inode = 0x0,<br>
&gt;   parent = 0x0}, components = 0x0, comp_count = 0}<br>
&gt;<br>
&gt; Perhaps gf_strdup could return NULL when it gets a NULL string? This is<br>
&gt; what strdup(3) does AFAIK. But I suspect that resolve_loc_touchup()<br>
&gt; lacks a check for error for resolve-&gt;path being NULL.<br>
<br>
<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>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org">Gluster-devel@nongnu.org</a><br>
<a href="https://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">https://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
</blockquote></div><br></div>