CC: | frank.krout [...] havasww.com |
Subject: | recurrence of the "override signal" issue using Net::SSLeay -> SUSE 11 on S390X |
Date: | Thu, 22 May 2014 14:19:51 -0400 |
To: | bug-Net-SSLeay [...] rt.cpan.org |
From: | frank.krout [...] havasww.com |
FYI, It seems for SUSE 11 on S390X, I am seeing a recurrence of the
"override signal" issue using Net::SSLeay...
I've went through the checklist in the readme for posting this ..
everything was built by hand and sharing compile options throughout all
builds , I don't know what I am missing.
sub BEGIN {
# establish handlers for warnings, fatals
# $SIG{__WARN__} = 'warn_handler';
# $SIG{__DIE__} = 'die_handler';
# $SIG{__WARN__} = \&warn_handler;
# $SIG{__DIE__} = \&die_handler;
$SIG{__WARN__} = \&DME::Application::warn_handler;
$SIG{__DIE__} = \&DME::Application::die_handler;
}
If I use this "local $SIG{__DIE__} = \&DME::Application::die_handler;"
all is well, but I believe this is masking the problem.
Any thoughts?
Thanks
All the particulars are below:
05/22/2014 12:49:28 [pid:38766 - DME::Application::die_handler@615] -> !!
DIE issued: Error: Can't locate object method "tid" via package "threads"
at /usr/local/lib/perl5/5.10.1/s390x-linux-thread-multi/XSLoader.pm line
94.
Callstack:
1: Package DynaLoader in File XSLoader.pm, Sub (eval) @ Line 94
2: Package DynaLoader in File XSLoader.pm, Sub XSLoader::load @
Line 94
3: Package Net::SSLeay in File SSLeay.pm, Sub (eval) @ Line 389
4: Package Net::SSLeay in File SSLeay.pm, Sub (eval) @ Line 391
5: Package IO::Socket::SSL in File SSL.pm, Sub
IO::Socket::SSL::BEGIN @ Line 17
6: Package main in File SSLeay.pm, Sub (eval) @ Line 0
7: Package main in File SSLeay.pm, Sub (eval) @ Line 0
8: Package Net::LDAP in File LDAP.pm, Sub Net::LDAP::connect_ldaps
@ Line 190
9: Package Net::LDAP in File LDAP.pm, Sub Net::LDAP::new @ Line
118
10: Package Net::LDAPS in File LDAPS.pm, Sub Net::LDAPS::new @
Line 15
11: Package DME::Auth::LDAP in File LDAP.pm, Sub
DME::Auth::LDAP::search @ Line 49
12: Package DME::Auth::LDAP in File LDAP.pm, Sub
DME::Auth::LDAP::getDN @ Line 71
13: Package DME::Auth::LDAP in File LDAP.pm, Sub
DME::Auth::LDAP::authorize @ Line 98
14: Package DME::Auth::IIP in File IIP.pm, Sub
DME::Auth::IIP::authorize @ Line 39
15: Package DME::Auth::RepAuth in File RepAuth.pm, Sub
DME::Auth::RepAuth::validate_user @ Line 35
16: Package DME::Auth in File Auth.pm, Sub DME::Auth::validateUser
@ Line 455
17: Package DME::Auth in File Auth.pm, Sub DME::Auth::login @ Line
260
18: Package DME_CAMPAIGNS::rep::RepAuthApplication in File
RepAuthApplication.pm, Sub DME_CAMPAIGNS::rep::RepAuthApplication::doLogin
@ Line 100
19: Package CGI::Application in File Application.pm, Sub (eval) @
Line 146
20: Package CGI::Application in File Application.pm, Sub
CGI::Application::run @ Line 146
21: Package main in File login.cgi, Sub (mainline) @ Line 30
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
Platform:
osname=linux, osvers=3.0.101-0.15-default,
archname=s390x-linux-thread-multi
uname='linux c03z0047 3.0.101-0.15-default #1 smp wed jan 22 15:49:03
utc 2014 (5c01f4e) s390x s390x s390x gnulinux '
config_args='-e -ds -Dprefix=/usr/local -Dvendorprefix=/usr/local
-Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm
-Duseshrplib=true -Dnoextensions=ODBM_File -Doptimize=-fmessage-length=0
-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -Wall -pipe
-Accflags=-DPERL_USE_SAFE_PUTENV'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV
-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall
-pipe',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV
-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include'
ccversion='', gccversion='4.3.4 [gcc-4_3-branch revision 152973]',
gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
-lgdbm_compat
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.11.3.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.11.3'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/usr/local/lib/perl5/5.10.1/s390x-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -fmessage-length=0 -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -Wall -pipe -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_TRACK_MEMPOOL PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at May 19 2014 09:36:25
%ENV:
PERLLIB="/www/vrm/lib"
@INC:
/www/vrm/lib
/usr/local/lib/perl5/5.10.1/s390x-linux-thread-multi
/usr/local/lib/perl5/5.10.1
/usr/local/lib/perl5/site_perl/5.10.1/s390x-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.1
/usr/local/lib/perl5/vendor_perl/5.10.1/s390x-linux-thread-multi
/usr/local/lib/perl5/vendor_perl/5.10.1
/usr/local/lib/perl5/vendor_perl
openssl version -a
OpenSSL 1.0.1g 7 Apr 2014
built on: Thu May 22 12:17:39 EDT 2014
platform: linux64-s390x
options: bn(64,64) rc4(8x,char) des(idx,cisc,16,int) idea(int)
blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DB_ENDIAN -DTERMIO -O3
-Wall -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM
-DSHA512_ASM -DAES_ASM -DAES_CTR_ASM -DAES_XTS_ASM -DGHASH_ASM
OPENSSLDIR: "/usr/local/openssl/ssl"
Built with:
CFLAGS="-I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -m64 -DB_ENDIAN -DTERMIO -O3 -Wall" ./config shared
--prefix=/usr/local/openssl
CFLAGS="-I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -m64 -DB_ENDIAN -DTERMIO -O3 -Wall" make
For Building Net::SSLeay ( Net-SSLeay-1.63.tar ) and IO::Socket:
CFLAGS="-I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -m64 -DB_ENDIAN -DTERMIO -O3 -Wall"
OPENSSL_PREFIX=/usr/local/openssl perl Makefile.PL PREFIX=/usr/local
CFLAGS="-I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -m64 -DB_ENDIAN -DTERMIO -O3 -Wall" make
and for Perl:
CFLAGS="-I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -m64 -DB_ENDIAN -DTERMIO -O3 -Wall" ./Configure -e -ds
-Dprefix=/usr/local -Dvendorprefix=/usr/local -Dinstallusrbinperl
-Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Duseshrplib=true
-Dnoextensions=ODBM_File -Doptimize="-fmessage-length=0 -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -Wall -pipe"
-Accflags=-DPERL_USE_SAFE_PUTENV && \
CFLAGS="-I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -m64 -DB_ENDIAN -DTERMIO -O3 -Wall" make
uname -a
Linux c03z0047 3.0.101-0.15-default #1 SMP Wed Jan 22 15:49:03 UTC 2014
(5c01f4e) s390x s390x s390x GNU/Linux
ls -l /lib/libc*
-rwxr-xr-x 1 root root 1588203 Sep 17 2013 /lib/libc-2.11.3.so
lrwxrwxrwx 1 root root 14 Mar 10 18:41 /lib/libcap.so.1 ->
libcap.so.1.10
-rwxr-xr-x 1 root root 13856 Feb 20 2009 /lib/libcap.so.1.10
-rwxr-xr-x 1 root root 190571 Sep 17 2013 /lib/libcidn-2.11.3.so
lrwxrwxrwx 1 root root 17 Mar 10 19:21 /lib/libcidn.so.1 ->
libcidn-2.11.3.so
lrwxrwxrwx 1 root root 17 Mar 10 19:00 /lib/libcom_err.so.2 ->
libcom_err.so.2.1
-rwxr-xr-x 1 root root 13872 Dec 21 2012 /lib/libcom_err.so.2.1
-rwxr-xr-x 1 root root 59414 Sep 17 2013 /lib/libcrypt-2.11.3.so
lrwxrwxrwx 1 root root 18 Mar 10 19:21 /lib/libcrypt.so.1 ->
libcrypt-2.11.3.so
lrwxrwxrwx 1 root root 14 Mar 10 19:21 /lib/libc.so.6 ->
libc-2.11.3.so
Frank Krout
Senior Software Engineer
Office Havas Worldwide Digital Wilton, 372 Danbury Rd, Wilton, Connecticut 06897
Email frank.krout@havasww.com Web www.havasww.com
Tel 203.563.3314 Mob 914 329 5783 Fax 203.563.3434
Message body is not shown because it is too large.