Marcela Maslanova via RT wrote, some time around 16/10/2009 13:12:
Show quoted text> Fri Oct 16 07:12:15 2009: Request 50557 was acted upon.
> Transaction: Ticket created by mmaslano@redhat.com
> Queue: Crypt-SSLeay
> Subject: Crypt-SSLeay with openssl 1.0 has memory corruption issue
> Broken in: 0.57
> Severity: Important
> Owner: Nobody
> Requestors: mmaslano@redhat.com
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=50557 >
>
>
> perl script that uses Crypt::SSLeay is crashing since upgrade to openssl
> 1.0. Backtrace head with various debuginfo installed:
>
> #0 freelist_insert (ctx=0xa18c140, for_read=1, sz=34120, mem=0xa0d6a80)
> at s3_both.c:645
> #1 0x0072f305 in ssl3_release_read_buffer (s=0xa0c4780) at s3_both.c:762
> #2 0x0072b60c in ssl3_free (s=0xa0c4780) at s3_lib.c:2151
> #3 0x00733d75 in tls1_free (s=0xa0c4780) at t1_lib.c:163
> #4 0x00742041 in SSL_free (s=0xa0c4780) at ssl_lib.c:581
> #5 0x00a6a7c5 in XS_Crypt__SSLeay__Conn_free (my_perl=0x9242008,
> cv=0xa002d54)
> at SSLeay.c:521
>
> It looks like the problem is with free'ing. SSL_CTX_free() is called as
> first and then SSL_free(). IMHO these calls should be switched and
> SSL_free should be called as first. I'm not familiar with XS module,
> therefore I'd rather wait for your opinion.
I've no firm idea myself but your hypothesis sounds plausible. You can
edit the source yourself and see if it fixes the problem. If it does,
I'll push a new release out.
There's a number of other things that need to be taken care of at the
same time.
Later,
David
Show quoted text
--
it's an anthem in a vacuum on a hyperstation, day dreaming days in a
daydream nation