Bug 142703 - dev-perl/Crypt-SSLeay-0.51 Perl Module segfaults on use
Bug#: 142703 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: perl@gentoo.org Reported By: ak10864ster@gmail.com
Component: Development
URL:  http://rt.cpan.org/Public/Bug/Display.html?id=15241
Summary: dev-perl/Crypt-SSLeay-0.51 Perl Module segfaults on use
Keywords:  
Status Whiteboard: 
Opened: 2006-08-03 14:13 0000
Description:   Opened: 2006-08-03 14:13 0000
When the Crypt::SSLeay module is used, it gives a segmentation fault. This is a
known bug (see the URL for solution). Can we add this fix so it works?

Versions affected: 0.51

Example:
1) emerge libwww-perl and Crypt-SSLeay
2) perl -MLWP::Simple -e'getprint("https://google.com/")'

Any https:// site should produce this result.

Actual Results:
"Segmentation Fault" is displayed and the program using SSLeay dies.

Expected Results:
The program works. In the above case, http://google.com/'s HTML source should
be displayed.

I was able to verify that it indeed does fix the bug. From what I've read from
some Google searches, this seems to affect OpenSSL and anything else that uses
it.

------- Comment #1 From kyberneticist@yahoo.com 2006-08-14 07:25:27 0000 -------
Having same issue - breaks the fetchyahoo package with secure authentication
enabled.

------- Comment #2 From Daniel Westermann-Clark 2006-09-01 13:24:45 0000 -------
I'm seeing this on x86 now that GCC 4.1.1 is stable.

Portage 2.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17.6
i686)
=================================================================
System uname: 2.6.17.6 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.4
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer notitles sandbox
sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo
http://distfiles.gentoo.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/other /usr/local/overlays/perl-other"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow acl apache2 berkdb bitmap-fonts bzip2 cli crypt dlloader dri
emacs fortran gdbm gpm imap isdnlog libg++ maildir ncurses nls nptl nptlonly
pam pcre perl ppds pppd python readline reflection samba session spl ssl tcpd
truetype-fonts type1-fonts udev unicode usb xml xml2 xorg zlib elibc_glibc
input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux
userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips
video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev
video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810
video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc
video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge
video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb
video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng
video_cards_v4l video_cards_vesa video_cards_vga video_cards_via
video_cards_vmware video_cards_voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #3 From Daniel Westermann-Clark 2006-09-01 13:27:12 0000 -------
Created an attachment (id=95672) [details]
Patch based on RT #15241

Patch to init openssl before use (based on
http://rt.cpan.org/Public/Bug/Display.html?id=15241)

------- Comment #4 From Daniel Westermann-Clark 2006-09-01 13:28:12 0000 -------
Created an attachment (id=95673) [details]
Apply RT patch

Patch against Crypt-SSLeay-0.51.ebuild

------- Comment #5 From Christian Hartmann 2006-09-08 13:24:55 0000 -------
In cvs