[Kolab-devel] [issue4679] Kolab 2.2.4 build from sources crashes w/ segfault in perl-ssl/IO-Socket-SSL-1.12, gentoo linux
Florian Evers
issues at kolab.org
Tue Dec 14 22:00:13 CET 2010
Hi,
in the moment, I'm trying to do a fresh install of kolab-2.2.4, from scratch.
I'm compiling from sources, as I found no arguments against that and the
prebuild packages do not fit my system.
At first, I'm running a recent gentoo linux system on my server, but with the
hardened profile. However, the build process stops with a segmentation fault,
and the logfiles do not point to a problem of gentoos hardened patches, such as
grsecurity. Its just crashing, and I have no idea why, tried it two times, with
the same result.
I attached the full build log, that was created by the installation script.
Before gzipping, the log was 8142348 bytes in size, as the build process seems
to break late.
The last lines of the output look like this:
Use of uninitialized value in concatenation (.) or string at ./Makefile.PL line
229.
BUILD INFORMATION
================================================
ssl library: in /kolab
ssl header: openssl/ssl.h
libraries: -L/kolab/lib -lssl -lcrypto -lgcc -lRSAglue -lrsaref
include dir: -I/kolab/include/openssl
================================================
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgcc
Note (probably harmless): No library found for -lRSAglue
Note (probably harmless): No library found for -lrsaref
Use of uninitialized value in concatenation (.) or string at ./Makefile.PL line
263.
Use of uninitialized value in concatenation (.) or string at ./Makefile.PL line
263.
Writing Makefile for Crypt::SSLeay
The test suite can attempt to connect to public servers
to ensure that the code is working properly. If you are
behind a strict firewall or have no network connectivity,
these tests may fail (through no fault of the code).
Do you want to run the live tests (y/N) ? [N] N
++ step 3: build
++ building module via ExtUtils::MakeMaker environment
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
/kolab/RPM/TMP/kolab-perl-openpkg-perl-ssl/perl.sh
/kolab/lib/perl/5.10.0/ExtUtils/xsubpp -typemap
/kolab/lib/perl/5.10.0/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc
&& mv SSLeay.xsc SSLeay.c
/kolab/bin/gcc -c -I/kolab/include/openssl -fno-strict-aliasing -pipe -
I/kolab/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -
O2 -pipe -DVERSION=\"0.57\" -DXS_VERSION=\"0.57\" -fPIC "-
I/kolab/lib/perl/5.10.0/i686-linux/CORE" SSLeay.c
Running Mkbootstrap for Crypt::SSLeay ()
chmod 644 SSLeay.bs
rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so
/kolab/bin/gcc -shared -O2 -pipe -L/kolab/lib SSLeay.o -o
blib/arch/auto/Crypt/SSLeay/SSLeay.so \
-L/kolab/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
++ step 4: install
++ installing module via ExtUtils::MakeMaker environment
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree
Installing /kolab/RPM/TMP/perl-ssl-5.10.0-
root/kolab/lib/perl/vendor_perl/5.10.0/i686-linux/auto/Crypt/SSLeay/SSLeay.bs
Installing /kolab/RPM/TMP/perl-ssl-5.10.0-
root/kolab/lib/perl/vendor_perl/5.10.0/i686-linux/auto/Crypt/SSLeay/SSLeay.so
Installing /kolab/RPM/TMP/perl-ssl-5.10.0-
root/kolab/lib/perl/vendor_perl/5.10.0/i686-linux/Net/SSL.pm
Installing /kolab/RPM/TMP/perl-ssl-5.10.0-
root/kolab/lib/perl/vendor_perl/5.10.0/i686-linux/Crypt/SSLeay.pm
Installing /kolab/RPM/TMP/perl-ssl-5.10.0-
root/kolab/lib/perl/vendor_perl/5.10.0/i686-linux/Crypt/SSLeay/MainContext.pm
Installing /kolab/RPM/TMP/perl-ssl-5.10.0-
root/kolab/lib/perl/vendor_perl/5.10.0/i686-linux/Crypt/SSLeay/X509.pm
Installing /kolab/RPM/TMP/perl-ssl-5.10.0-
root/kolab/lib/perl/vendor_perl/5.10.0/i686-linux/Crypt/SSLeay/Conn.pm
Installing /kolab/RPM/TMP/perl-ssl-5.10.0-
root/kolab/lib/perl/vendor_perl/5.10.0/i686-linux/Crypt/SSLeay/CTX.pm
Installing /kolab/RPM/TMP/perl-ssl-5.10.0-
root/kolab/lib/perl/vendor_perl/5.10.0/i686-linux/Crypt/SSLeay/Err.pm
Writing /kolab/RPM/TMP/perl-ssl-5.10.0-
root/kolab/lib/perl/vendor_perl/5.10.0/i686-linux/auto/Crypt/SSLeay/.packlist
++ cleaning up environment
+ /kolab/bin/perl-openpkg -d /kolab/RPM/SRC/perl-ssl/IO-Socket-SSL-1.12.tar.gz
configure build install
++ OpenPKG perl-openpkg 2.0.1 (03-Dec-2004)
++ determined RPM program: /kolab/libexec/openpkg/rpm (4.2.1)
++ determined Perl program: /kolab/bin/perl (5.10.0)
++ step 2: configure
++ configuring module via ExtUtils::MakeMaker environment
sh: line 1: 17088 Segmentation fault (core dumped) /kolab/RPM/TMP/kolab-
perl-openpkg-perl-ssl/perl.sh ./Makefile.PL PERL=/kolab/RPM/TMP/kolab-perl-
openpkg-perl-ssl/perl.sh FULLPERL=/kolab/RPM/TMP/kolab-perl-openpkg-perl-
ssl/perl.sh INSTALLDIRS=vendor INSTALLMAN3DIR=none INSTALLSITEMAN3DIR=none
INSTALLVENDORMAN3DIR=none DESTDIR=/kolab/RPM/TMP/perl-ssl-5.10.0-root <
/dev/null
++ step 3: build
perl-openpkg:ERROR: neither "Build" nor "Makefile" found in working directory
(No such file or directory)
error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.96309 (%install)
RPM build errors:
Bad exit status from /kolab/RPM/TMP/rpm-tmp.96309 (%install)
/kolab/RPM/PKG now contains the installed packages.
Previous contents were moved to /kolab/RPM/PKG.7955.17169.17251.9718
powerstation ~ #
--------------------------------------------------
/var/log/everything/current (from metalog) reveals this information:
Dec 09 18:41:34 [kernel] perl[17088]: segfault at 27434ed0 ip 2741f59b sp
5fe55730 error 7 in ld-2.10.1.so[27418000+1c000]
Dec 09 18:41:34 [kernel] grsec: From 192.168.2.23: Segmentation fault occurred
at 27434ed0 in /kolab/bin/perl[perl:17088] uid/euid:103/103 gid/egid:442/442,
parent /bin/bash[sh:17087] uid/euid:103/103 gid/egid:442/442
... it seems to be an "ordinary" segmentation fault?
For the moment, I gave up, and need your help. If you need more info, don't
hesitate to ask, I will test everything you want :-)
Thank you, regards,
Florian Evers
File 'kolab-install.log.gz' not attached - you can download it from https://issues.kolab.org/file1605.
----------
files: kolab-install.log.gz
keyword: gentoo
messages: 27322
nosy: evers
priority: urgent
status: unread
title: Kolab 2.2.4 build from sources crashes w/ segfault in perl-ssl/IO-Socket-SSL-1.12, gentoo linux
______________________________________
Kolab issue tracker <issues at kolab.org>
<https://issues.kolab.org/issue4679>
______________________________________
More information about the devel
mailing list