Skip Menu |

This queue is for tickets about the Crypt-SSLeay CPAN distribution.

Report information
The Basics
Id: 19858
Status: resolved
Priority: 0/
Queue: Crypt-SSLeay

People
Owner: dland [...] cpan.org
Requestors: cfilippe [...] nagra.fr
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.51
Fixed in: 0.53



Subject: Segmentation violation with openssl 0.9.8a under redhat 4u2 2.6.9-22.elsmp
Segmentation violation with openssl 0.9.8a under redhat 4u2 2.6.9-22.elsmp for the tests. all informations including the gsb stack are into the attachment. Thanks !
Subject: trace.txt
[Crypt-SSLeay-0.51]$ openssl OpenSSL> version OpenSSL 0.9.8a 11 Oct 2005 [Crypt-SSLeay-0.51]$ perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.9-22.elsmp, archname=i686-linux uname='linux redhat4u2 2.6.9-22.elsmp #1 smp mon sep 19 18:32:14 edt 2005 i686 i686 i386 gnulinux ' config_args='' 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=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_TS=64 -I/usr/include/gdbm', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='3.4.4 20050721 (Red Hat 3.4.4-2)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.3.4' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under linux Compiled at Apr 27 2006 13:42:32 @INC: /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl . [Crypt-SSLeay-0.51]$ perl Makefile.PL Found the following OpenSSL installations: OpenSSL 0.9.8 /usr/local/openssl OpenSSL 0.9.8 /usr/local OpenSSL 0.9.7 /usr Which OpenSSL build path do you want to link against? [/usr/local/openssl] ================================================ BUILD INFORMATION ================================================ ssl dir: /usr/local/openssl libraries: -lssl -lcrypto -lgcc -lRSAglue -lrsaref include dir: /usr/local/openssl/include ssl header: openssl/ssl.h ssl candidate: /usr/local/openssl; /usr/local/openssl/include/openssl; OpenSSL 0.9.8 ================================================ Note (probably harmless): No library found for -lgcc Note (probably harmless): No library found for -lRSAglue Note (probably harmless): No library found for -lrsaref Writing Makefile for Crypt::SSLeay [Crypt-SSLeay-0.51]$ 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/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.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/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap SSay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c gcc -c -I/usr/local/openssl/include -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -DILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"0.51\" -DXS_VERSION=\"0.51\" -fpic "-I/usr/local/lib/perl5/5.8.8/i686-linux/CORE SSLeay.c SSLeay.xs: In function `XS_Crypt__SSLeay__Conn_new': SSLeay.xs:252: warning: passing arg 2 of `SSL_set_info_callback' from incompatible pointer type Running Mkbootstrap for Crypt::SSLeay () chmod 644 SSLeay.bs rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so gcc -shared -L/usr/local/lib SSLeay.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.so \ -L/usr/local/openssl/lib -lssl -lcrypto \ 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 [Crypt-SSLeay-0.51]$ make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/net_ssl........dubious Test returned status 0 (wstat 11, 0xb) t/ssl_context....dubious Test returned status 0 (wstat 11, 0xb) FAILED--2 test scripts could be run, alas--no output ever seen make: *** [test_dynamic] Error 255 [Crypt-SSLeay-0.51]$ gdb /usr/local/bin/perl GNU gdb Red Hat Linux (6.3.0.0-1.63rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found) Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) run t/net_ssl.t Starting program: /usr/local/bin/perl t/net_ssl.t (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) Program received signal SIGSEGV, Segmentation fault. 0x00854d69 in SSL_CTX_ctrl () from /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/auto/Crypt/SSLeay/SSLeay.so (gdb) where #0 0x00854d69 in SSL_CTX_ctrl () from /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/auto/Crypt/SSLeay/SSLeay.so #1 0x00844985 in XS_Crypt__SSLeay__CTX_new () from /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/auto/Crypt/SSLeay/SSLeay.so #2 0x080aea3a in Perl_pp_entersub () #3 0x080a8ae8 in Perl_runops_standard () #4 0x08063acd in perl_run () #5 0x0805e756 in main () (gdb)
From: cfilippe [...] nagra.com
as said in http://rt.cpan.org/Public/Bug/Display.html?id=16735#txn-164949 changing in SSLeay.xs in line 110 the call to SSLeay_add_all_algorithms() by SSLeay_add_ssl_algorithms() make the tests pass and not anymore generates a segmentation violation
RT-Send-CC: cfilippe [...] nagra.com
On Tue Jun 13 05:19:24 2006, guest wrote: Show quoted text
> as said in > http://rt.cpan.org/Public/Bug/Display.html?id=16735#txn-164949 > > changing in SSLeay.xs in line 110 > the call to SSLeay_add_all_algorithms() by SSLeay_add_ssl_algorithms() > > make the tests pass > and not anymore generates a segmentation violation
Hello, I am the new maintainer for Crypt-SSLeay. Could you please try with the latest development version? This is available as D/DL/DLAND/Crypt-SSLeay-0.52_01.tar.gz This distribution is identical to 0.51 except for a one-line change to initialise the SSL library. Let me know if this resovles the problem. Thanks, David
Subject: RE: [rt.cpan.org #19858] Segmentation violation with openssl 0.9.8a under redhat 4u2 2.6.9-22.elsmp
Date: Thu, 21 Dec 2006 15:08:05 +0100
To: <bug-Crypt-SSLeay [...] rt.cpan.org>
From: "Filippelli Christophe" <Christophe.Filippelli [...] nagra.fr>
Yes it does, the problem is resolved. Thanks -----Message d'origine----- De : David Landgren via RT [mailto:bug-Crypt-SSLeay@rt.cpan.org] Envoyé : mercredi 20 décembre 2006 19:23 À : Filippelli Christophe Objet : [rt.cpan.org #19858] Segmentation violation with openssl 0.9.8a under redhat 4u2 2.6.9-22.elsmp <URL: http://rt.cpan.org/Ticket/Display.html?id=19858 > On Tue Jun 13 05:19:24 2006, guest wrote: Show quoted text
> as said in > http://rt.cpan.org/Public/Bug/Display.html?id=16735#txn-164949 > > changing in SSLeay.xs in line 110 > the call to SSLeay_add_all_algorithms() by SSLeay_add_ssl_algorithms() > > make the tests pass > and not anymore generates a segmentation violation
Hello, I am the new maintainer for Crypt-SSLeay. Could you please try with the latest development version? This is available as D/DL/DLAND/Crypt-SSLeay-0.52_01.tar.gz This distribution is identical to 0.51 except for a one-line change to initialise the SSL library. Let me know if this resovles the problem. Thanks, David -- This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accordance with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The E-Mail transmission can not guarantee the integrity of this message. NAGRA FRANCE will not therefore be liable for the message if modified.