logo       

SIGSEGV in make test for Crypt-SSLeay: msg#00015

Subject: SIGSEGV in make test for Crypt-SSLeay
Several have posted about this problem.  I offer this from my experience.

I run into the problem trying to build Crypt::SSLeay 0.51 on Fedora
Core 5.  My openssl version is:

$ openssl version
OpenSSL 0.9.8a 11 Oct 2005

and

$ openssl version
OpenSSL 0.9.8b 04 May 2006
$

I don't have a problem building and testing on an older Red Hat system
with openssl 0.9.7a.

Here's where the problem happens:

#0  0x00ce66b7 in SSL_CTX_ctrl ()
  from ./blib/arch/auto/Crypt/SSLeay/SSLeay.so
(gdb) bt
#0  0x00ce66b7 in SSL_CTX_ctrl () from ./blib/arch/auto/Crypt/SSLeay/SSLeay.so
#1  0x00cd8f9f in XS_Crypt__SSLeay__CTX_new (my_perl=0x91e5008, cv=0x93391b8)
   at SSLeay.xs:133
#2  0x00a5defd in Perl_pp_entersub ()
  from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#3  0x00a573cf in Perl_runops_standard ()
  from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#4  0x009fccce in perl_run ()
  from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#5  0x0804934e in main ()

After realizing that the call to SSL_CTX_new() is not being checked
for an error return (in SSLeay.xs) and the subsequent call to
SSL_CTX_ctrl() is being passed a NULL ctx pointer, I patched SSLeay.xs
to print the error message.  The call to SSL_CTX_new() is returning
this error:

error:140A90A1:SSL routines:SSL_CTX_new:library has no ciphers

Checking Google, I see that someone else encountered this error.

#16735: Failed to Build with OpenSSL 0.9.8
http://rt.cpan.org/Public/Bug/Display.html?id=16735

I patched SSLeay.xs to call  SSL_library_init() instead of
SSLeay_add_all_algorithms() on the first entry to SSL_CTX_new().  This
fixes the SIGSEGV.

--
Garry Williams +1 678 656-4579



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe