Hi,
   From your logs what I am seeing is that the
icap->reqmod.http_entity.buf.size==0 so the icapRqModPassHttpBody must
not called, but it is called. It is strange.

Did you touch something else in code? Can you run squid in gdb and send
a backtrace after the crash?

Regards,
    Christos

Christophe Boyanique wrote:
> 
> ..........................
> 
> After the conditionnal call to commSetSelect there is a conditionnal
> call to icapReqModPassHttpBody and this where is the problem:
> 
>     if (icap->reqmod.http_entity.callback &&
> icap->reqmod.http_entity.buf.size) {
>         icapReqModPassHttpBody(icap,
>             icap->reqmod.http_entity.callback_buf,
>             icap->reqmod.http_entity.callback_bufsize,
>             icap->reqmod.http_entity.callback,
>             icap->reqmod.http_entity.callback_data);
>         icap->reqmod.http_entity.callback = NULL;
>         cbdataUnlock(icap->reqmod.http_entity.callback_data);
> 
>     }
> 
> When calling this function, the test is on
> icap->reqmod.http_entity.buf.size but the parameter sent to the function
> is cap->reqmod.http_entity.callback_bufsize. Is it normal ?
> 
> I added some logs and here is the output:\
>
> ................................
> 2006/11/14 13:43:25| zero end chunk reached
> 2006/11/14 13:43:25| icap_reqmod.c:882 chunk_size=-2
> 2006/11/14 13:43:25| icap_reqmod.c:892 http_entity.callback=0x807c994
> 2006/11/14 13:43:25| icap_reqmod.c:894 http_entity.buf.size=0
> 2006/11/14 13:43:25| icap_reqmod.c:896 http_entity.callback_bufsize=8192
> 2006/11/14 13:43:25| icapReqModPassHttpBody: called
> FATAL: Received Segment Violation...dying.
> 
> Perhaps there is a problem with parameters passed to
> icapReqModPassHttpBody ?
> 

Reply via email to