develooper Front page | perl.perl5.porters | Postings from February 2003

[perl #20778] valgrind, segfaults, gentoo, ReadLine::Gnu

From:
Shevek
Date:
February 7, 2003 10:56
Subject:
[perl #20778] valgrind, segfaults, gentoo, ReadLine::Gnu
Message ID:
rt-20778-50559.12.0885315814935@bugs6.perl.org
# New Ticket Created by  Shevek 
# Please include the string:  [perl #20778]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=20778 >


Introduction:

Perl "appears" horribly broken on gentoo for many things, some of them
probably gcc-3.2 related. I'm working through them and will drop bugs in
as I find issues, unless anyone tells me not to. Useful information for
logging purposes is enclosed.

The Problem:

The attached info relates to the command:

valgrind perl -MTerm::ReadLine -e 'new Term::ReadLine("foo");'

(CPAN.pm segfaults on exit using this ReadLine package, this is the 
simplest test case).

Information:

(perl)
This is perl, v5.8.0 built for i686-linux

config_args='-des -Darchname=i686-linux -Dcccdlflags=-fPIC 
-Dccdlflags=-rdynamic -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr 
-Dsiteprefix=/usr -Dlocincpth=  -Doptimize= -g -Duselargefiles -Dd_dosuid 
-Duseshrplib -Dman1ext=1 -Dman3ext=3pm -Dlibperl=libperl.so.1.5.8 
-Dd_dosuid -Dd_semctl_semun -Dcf_by=Shevek -Ud_csh -Di_gdbm -Di_db 
-Di_ndbm'

Then tweaked config.sh to make SIGRTMIN be 32 not -1 before running 
'make'.


(gcc)
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/specs
Configured with: /var/tmp/portage/gcc-3.2.1-r6/work/gcc-3.2.1/configure 
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2 
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include 
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2 
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man 
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared 
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib 
--enable-languages=c,c++,ada,f77,objc,java --enable-threads=posix 
--enable-long-long --disable-checking --enable-cstdio=stdio 
--enable-clocale=generic --enable-__cxa_atexit 
--enable-version-specific-runtime-libs 
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/g++-v3 
--with-local-prefix=/usr/local --enable-shared --enable-nls 
--without-included-gettext
Thread model: posix
gcc version 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207)


(system)
CFLAGS for most things were:
	CFLAGS="-mcpu=pentium3 -march=pentium3 -O3 -pipe"
in /etc/make.conf

I will be using more valgrind to see what else I can dig up.

S.

-- 
Shevek
I am the Borg.

sub AUTOLOAD{my$i=$AUTOLOAD;my$x=shift;$i=~s/^.*://;print"$x\n";eval
qq{*$AUTOLOAD=sub{my\$x=shift;return unless \$x%$i;&{$x}(\$x);};};}

foreach my $i (3..65535) { &{'2'}($i); }


-- attachment  1 ------------------------------------------------------
url: http://rt.perl.org/rt2/attach/50559/38810/25449f/valgrindlog




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About