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

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

Thread Previous
February 7, 2003 10:56
[perl #20778] valgrind, segfaults, gentoo, ReadLine::Gnu
Message ID:
# New Ticket Created by  Shevek 
# Please include the string:  [perl #20778]
# in the subject line of all future correspondence about this issue. 
# <URL: >


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");'

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


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 
-Dd_dosuid -Dd_semctl_semun -Dcf_by=Shevek -Ud_csh -Di_gdbm -Di_db 

Then tweaked to make SIGRTMIN be 32 not -1 before running 

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 
--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 
--with-local-prefix=/usr/local --enable-shared --enable-nls 
Thread model: posix
gcc version 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207)

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.


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 ------------------------------------------------------

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About