Hi,<br><br>We are currently planning to replace mod_glusterfs for apache/lighttpd with Booster. This is due to the difficulties in packaging mod_glusterfs. The combination of LD_PRELOADed booster along with apache/lighttpd is currently undergoing testing and should be available in 2.1 release.<br>
<br>As of 2.0, as for as lighttpd is concerned mod_glusterfs is provided only for 1.4, since lighttpd 1.5 itself is not under active development.<br><br>regards,<br><div class="gmail_quote">2009/7/13  <span dir="ltr">&lt;<a href="mailto:s.dinev@corp.mail.bg">s.dinev@corp.mail.bg</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello!<br><br>We want to use mod_glusterfs, but it has bugs. We use
glusterfs on our production servers (version  glusterfs-1.4.0pre5 ). Our web
server is lighttpd 1.5 rev. 1992. <br><br>We decided to test
mod_glusterfs, but we discovered that it killed lighty (SEGFAULT). With valgrind
I discovered that the problem is near line 1453 of mod_glusterfs.c. I looked it
and I decided to change the code:<br><br>FROM:<br>URIHANDLER_FUNC(mod_glusterfs_response_done) {<br>        plugin_data
*p = p_d;<br>        UNUSED (srv);<br>        mod_glusterfs_ctx_t
*ctx = con-&gt;plugin_ctx[p-&gt;id];<br><br>       
con-&gt;plugin_ctx[p-&gt;id] = NULL;<br>        if (ctx) {<br>    
       if (ctx-&gt;glusterfs_path) {<br>                    free
(ctx-&gt;glusterfs_path);<br>            }<br>        }<br><br>        free (ctx);<br>        return HANDLER_GO_ON;<br>}<br><br>TO:<br>URIHANDLER_FUNC(mod_glusterfs_response_done) {<br>      
 plugin_data *p = p_d;<br>        UNUSED (srv);<br>       
mod_glusterfs_ctx_t *ctx = con-&gt;plugin_ctx[p-&gt;id];<br><br>       
if (ctx) {<br>            if (ctx-&gt;buf) {<br>               
free (ctx-&gt;buf);<br>                ctx-&gt;buf = NULL;<br>    
       }<br>            if (ctx-&gt;glusterfs_path) {<br>//            
       free (ctx-&gt;glusterfs_path);<br>                    buffer_free
(ctx-&gt;glusterfs_path);<br>                    ctx-&gt;glusterfs_path =
NULL;<br>            }<br>        }<br>       
con-&gt;plugin_ctx[p-&gt;id] = NULL;<br>        free (ctx);<br><br>        return HANDLER_GO_ON;<br>}<br><br>Now It works, but when I
stop downloading proces lighty kills itself (server.c.847: (trace) [note]
graceful shutdown started by UID=0, PID=0). Now I don`t know what to do.<br><br>I updated glusterfs to the latest version, but when I started lighty, it
showed:<br><br>## lighttpd error glusterfs version 2.0.1 and above<br>Starting web server: lighttpd2009-07-08 12:54:55: (plugin.c.266) dlopen()
failed for: /usr/lib/lighttpd/mod_glusterfs.so
/usr/lib/lighttpd/mod_glusterfs.so: undefined symbol: glusterfs_lookup_async<br>2009-07-08 12:54:55: (server.c.1185) loading plugins finally failed<br><br>It looks like this method doesn`t exist any more.<br><br>I will be very
thankful if you fix these bugs and people can use mod_glusterfs freely. I hope
that you send me some information about the problems I described above.<br><br><br>Other bug:<br># compile error - SEGFAULT<br>mod_glusterfs.c:830:26:
warning: ISO C99 requires rest arguments to be used<br>mod_glusterfs.c: In
function ‘http_response_parse_range’:<br>mod_glusterfs.c:830:
error: expected expression before ‘)’ token<br>mod_glusterfs.c:830: warning: too many arguments for format<br>mod_glusterfs.c:830: error: expected expression before ‘,’
token<br>make[4]: *** [mod_glusterfs_la-mod_glusterfs.lo] Error 1<br><br>#
fix<br>SEGFAULT(&quot;got HANDLER_ERROR from a plugin: %s&quot;, &quot;glusterfs&quot;);<br><font color="#888888"><br>
-- <br> Стефан Динев<br> mail.bG<br> BG-1517 Sofia, P.O. Box 17<br>
Phone: +359 [2] 9451006<br></font><br>_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org">Gluster-devel@nongnu.org</a><br>
<a href="http://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">http://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Raghavendra G<br><br>