md5 in inline C
dwi kristianto
steamboatid at gmail.com
Wed Jan 5 15:38:46 CET 2011
hi poul,
i did as suggested, but still varnish reply nothing.
below is taken from /var/log/syslog
Jan 5 21:36:16 deblo varnishd[19722]: Child (19783) Panic message:
Assert error in VRT_r_obj_cacheable(), cache_vrt.c line 626:#012
Condition((sp)->magic == 0x2c2f9c5a) not true.#012thread =
(cache-worker)#012ident =
Linux,2.6.26-2-686,i686,-smalloc,-hcritbit,epoll#012Backtrace:#012
0x8070232: /usr/sbin/varnishd [0x8070232]#012 0x8077572:
/usr/sbin/varnishd(VRT_r_obj_cacheable+0x52) [0x8077572]#012
0xafb37a86: /usr/lib/i686/cmov/libcrypto.so.0.9.8(EVP_DigestInit_ex+0xc6)
[0xafb37a86]#012 0xafbd2ba3: ./vcl.1P9zoqAU.so [0xafbd2ba3]#012
0xafbd25fa: ./vcl.1P9zoqAU.so [0xafbd25fa]#012 0xafbd310d:
./vcl.1P9zoqAU.so [0xafbd310d]#012 0x8076284:
/usr/sbin/varnishd(VCL_pass_method+0x54) [0x8076284]#012 0x805a5bf:
/usr/sbin/varnishd [0x805a5bf]#012 0x805d392:
/usr/sbin/varnishd(CNT_Session+0x4a2) [0x805d392]#012 0x8072cd7:
/usr/sbin/varnishd [0x8072cd7]#012sp = 0xb74c9004 {#012 fd = 11, id =
11, xid = 1999954527,#012 client = 192.168.1.25 45083,#012 step =
STP_PASS,#012 handling = deliver,#012 restarts = 0, esis = 0#012 ws
= 0xb74c9054 { #012 id = "sess",#012 {s,f,r,e} =
{0xb74c97e4,+360,(nil),+16384},#012 },#012 http[req] = {#012 ws =
0xb74c9054[sess]#012 "HEAD",#012 "/",#012
"HTTP/1.1",#012 "User-Agent: curl/7.18.2 (i486-pc-linux-gnu)
libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8
libssh2/0.18",#012 "Host: www.findpdf.local",#012 "Accept:
*/*",#012 "X-Agen: curl/7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2
OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18",#012
"X-Durl: /",#012 "X-Host: www.findpdf.local",#012 },#012 worker
= 0xae203194 {#012 ws = 0xae2032ac { #012 id = "wrk",#012
{s,f,r,e} = {0xae1fd150,+24,(nil),+16384},#012 },#012
http[bereq] = {#012 ws = 0xae2032ac[wrk]#012 "HEAD",#012
"/",#012 "HTTP/1.1",#012 "User-Agent: curl/7.18.2
(i486-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3
libidn/1.8 libssh2/0.18",#012 "Host: www.findpdf.local",#012
"Accept: */*",
sorry, but i'm dumb on C.
i see that "EVP_DigestInit_ex" is reported at syslog, is that mean the
bug starting from there?
thank you for your time and patient. :)
On Wed, Jan 5, 2011 at 9:29 PM, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> In message <AANLkTim6Pz=b7901kRGgGXKH4qQiQaoPjaDsPms07oR- at mail.gmail.com>, dwi
> kristianto writes:
>>hello all,
>>
>>is there any easy way to use md5 with varnish VCL inline C?'
>>
>>i've tried this code with no luck.
>>at sub vcl_recv:
>>#include <openssl/ssl.h>
>>#include <openssl/ssl3.h>
>
> You need to put the includes outside sub vcl_recv{}
>
> Varnish 3.0 will have support for loadable modules ("VMOD") and one
> of the ones I hope to see is one contaning common hash functions
> like MD5 etc.
>
> --
> Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
> phk at FreeBSD.ORG | TCP/IP since RFC 956
> FreeBSD committer | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-misc
mailing list