[Crypt::SSLeay] Segfault on FreeBSD 4.7-STABLE after fresh openssl install

Steve Gertz <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
Hello everyone,

I've been Googleing for this problem, but no one seems to have an  
answer...  Any thoughts?

Thanks in advance!
Steve



# perl Makefile.PL
Found the following OpenSSL installations:
         OpenSSL 0.9.7   /usr/local/openssl
         OpenSSL 0.9.7   /usr/local/ssl
         OpenSSL 0.9.8   /usr/local
         OpenSSL 0.9.6   /usr
Which OpenSSL build path do you want to link against? [/usr/local/ 
openssl] /usr/local

================================================
BUILD INFORMATION
================================================

ssl dir:        /usr/local
libraries:      -lssl -lcrypto -lgcc -lRSAglue -lrsaref
include dir:    /usr/local/include
ssl header:     openssl/ssl.h
ssl candidate:  /usr/local; /usr/local/include/openssl; OpenSSL 0.9.8

================================================

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lRSAglue
Note (probably harmless): No library found for -lrsaref
Writing Makefile for Crypt::SSLeay
# make
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
/usr/local/bin/suidperl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp  - 
typemap /usr/local/lib/perl5/5.8.7/ExtUtils/typemap -typemap typemap   
SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
cc -c  -I/usr/local/include  -DAPPLLIB_EXP="/usr/local/lib/ 
perl5/5.8.7/BSDPAN" -D_THREAD_SAFE -DHAS_FPSETMASK - 
DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include - 
O -pipe    -DVERSION=\"0.51\"  -DXS_VERSION=\"0.51\" -DPIC -fPIC "-I/ 
usr/local/lib/perl5/5.8.7/mach/CORE"   SSLeay.c
SSLeay.c: In function `XS_Crypt__SSLeay__CTX_free':
SSLeay.c:177: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__CTX_set_cipher_list':
SSLeay.c:201: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__CTX_use_certificate_file':
SSLeay.c:227: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__CTX_use_PrivateKey_file':
SSLeay.c:253: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__CTX_use_pkcs12_file':
SSLeay.c:286: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__CTX_check_private_key':
SSLeay.c:331: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__CTX_set_verify':
SSLeay.c:358: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__Conn_new':
SSLeay.c:398: warning: cast to pointer from integer of different size
SSLeay.xs:252: warning: passing arg 2 of `SSL_set_info_callback' from  
incompatible pointer type
SSLeay.c: In function `XS_Crypt__SSLeay__Conn_free':
SSLeay.c:447: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__Conn_set_fd':
SSLeay.c:471: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__Conn_connect':
SSLeay.c:495: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__Conn_accept':
SSLeay.c:519: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__Conn_write':
SSLeay.c:549: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__Conn_read':
SSLeay.c:603: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__Conn_get_peer_certificate':
SSLeay.c:660: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__Conn_get_verify_result':
SSLeay.c:684: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__Conn_get_shared_ciphers':
SSLeay.c:713: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__Conn_get_cipher':
SSLeay.c:738: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__X509_free':
SSLeay.c:761: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__X509_subject_name':
SSLeay.c:786: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__X509_issuer_name':
SSLeay.c:816: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__X509_get_notBeforeString':
SSLeay.c:844: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Crypt__SSLeay__X509_get_notAfterString':
SSLeay.c:869: warning: cast to pointer from integer of different size
Running Mkbootstrap for Crypt::SSLeay ()
chmod 644 SSLeay.bs
rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so
LD_RUN_PATH="/usr/local/lib" cc  -shared  -L/usr/local/lib SSLeay.o  - 
o blib/arch/auto/Crypt/SSLeay/SSLeay.so   -L/usr/local/lib -lssl - 
lcrypto -lgcc
chmod 755 blib/arch/auto/Crypt/SSLeay/SSLeay.so
cp SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs
chmod 644 blib/arch/auto/Crypt/SSLeay/SSLeay.bs
Manifying blib/man3/Crypt::SSLeay.3
# make test
PERL_DL_NONLAZY=1 /usr/local/bin/suidperl "-MExtUtils::Command::MM" "- 
e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/net_ssl........dubious
         Test returned status 0 (wstat 139, 0x8b)
t/ssl_context....dubious
         Test returned status 0 (wstat 139, 0x8b)
FAILED--2 test scripts could be run, alas--no output ever seen
*** Error code 255

Stop in /var/tmp/Crypt-SSLeay-0.51.

# perl -V
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
   Platform:
     osname=freebsd, osvers=4.7-stable, archname=i386-freebsd-64int
     uname='freebsd triton.ellipse.net 4.7-stable freebsd 4.7-stable  
#1: mon jan 20 23:41:06 cst 2003  
[email protected]:homeusrobjhomeusrsrcsystriton i386 '
     config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/ 
perl5/5.8.7/mach -Dprivlib=/usr/local/lib/perl5/5.8.7 -Dman3dir=/usr/ 
local/lib/perl5/5.8.7/perl/man/man3 -Dman1dir=/usr/local/man/man1 - 
Dsitearch=/usr/local/lib/perl5/site_perl/5.8.7/mach -Dsitelib=/usr/ 
local/lib/perl5/site_perl/5.8.7 -Dscriptdir=/usr/local/bin - 
Dsiteman3dir=/usr/local/lib/perl5/5.8.7/man/man3 -Dsiteman1dir=/usr/ 
local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc - 
Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.7/ 
BSDPAN" -Doptimize=-O -pipe  -Dd_dosuid=define -Ui_gdbm - 
Dusethreads=n -Dusemymalloc=y -Duse64bitint'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef use5005threads=undef useithreads=undef  
usemultiplicity=undef
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=define use64bitall=undef uselongdouble=undef
     usemymalloc=y, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.7/ 
BSDPAN" -D_THREAD_SAFE -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno- 
strict-aliasing -pipe -I/usr/local/include',
     optimize='-O -pipe ',
     cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.7/BSDPAN" - 
D_THREAD_SAFE -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict- 
aliasing -pipe -I/usr/local/include'
     ccversion='', gccversion='2.95.4 20020320 [FreeBSD]',  
gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
     ivtype='long long', ivsize=8, nvtype='double', nvsize=8,  
Off_t='off_t', lseeksize=8
     alignbytes=4, prototype=define
   Linker and Libraries:
     ld='cc', ldflags ='-pthread -Wl,-E -L/usr/local/lib'
     libpth=/usr/lib /usr/local/lib
     libs=-lgdbm -lm -lcrypt -lutil
     perllibs=-lm -lcrypt -lutil
     libc=, so=so, useshrplib=true, libperl=libperl.so
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -Wl,- 
R/usr/local/lib/perl5/5.8.7/mach/CORE'
     cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'


Characteristics of this binary (from libperl):
   Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
   Locally applied patches:
         defined-or
         SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
   Built under freebsd
   Compiled at Feb  9 2006 13:27:33
   @INC:
     /usr/local/lib/perl5/5.8.7/BSDPAN
     /usr/local/lib/perl5/site_perl/5.8.7/mach
     /usr/local/lib/perl5/site_perl/5.8.7
     /usr/local/lib/perl5/site_perl/5.8.0
     /usr/local/lib/perl5/site_perl/5.6.1
     /usr/local/lib/perl5/site_perl/5.005
     /usr/local/lib/perl5/site_perl
     /usr/local/lib/perl5/5.8.7/mach
     /usr/local/lib/perl5/5.8.7
     .
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.