Date: | Thu, 6 Jan 2005 11:50:40 -0500 |
From: | Hans Dieter Pearcey <hdp [...] icgroup.com> |
To: | bug-return-value [...] rt.cpan.org |
Subject: | segfault with Return::Value1 1.26 and perl 5.6.1 |
This only happens with "failure" objects; "success" objects are fine, as
far as I can tell.
# perl -MReturn::Value -le 'my $r = failure; if (!$r) { print "do not segfault" }; if ($r) { print "segfault" }'
do not segfault
zsh: segmentation fault perl -MReturn::Value -le
# perl -MReturn::Value -le 'my $r = failure; if (!$r) { print "do not segfault" }; if (!!$r) { print "segfault" }'
do not segfault
# perl -MReturn::Value -le 'my $r = failure; if (!$r) { print "do not segfault" }; if ($r + 0) { print "segfault" }'
do not segfault
# perl -MReturn::Value -le 'my $r = failure; if (!$r) { print "do not segfault" }; if ($r > 0) { print "segfault" }'
do not segfault
# perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=linux, osvers=2.4.21, archname=i386-linux
uname='linux xenolith 2.4.21 #2 fri jul 18 12:28:56 edt 2003 i686 gnulinux '
config_args='-Uuseperlio -Dcc=/usr/bin/gcc-2.95 -Darchname=i386-linux -Dprefix=/icg/pkg/perl/perl@5.6.1 -Dprivlib=/icg/pkg/perl/perl@5.6.1/lib -Darchlib=/icg/pkg/perl/perl@5.6.1/lib/i386-linux -Dvendorprefix=/icg -Dvendorlib=/icg/lib/perl/5.6.1 -Dvendorarch=/icg/lib/perl/5.6.1/i386-linux -Dsiteprefix=/icg -Dsitelib=/icg/lib/perl/site_perl/5.6.1 -Dsitearch=/icg/lib/perl/site_perl/5.6.1/i386-linux -Dman1ext=1perl -Dman3ext=3perl -Uinstallusrbinperl -Accflags=-DAPPLLIB_EXP=\"/icg/lib/perl/icg_perl\" -Uafs -Ud_csh -Uusesfio -Adefine:useshrplib=n -Uusethreads -Ubincompat5005 -Adefine:uselargefiles=n -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='/usr/bin/gcc-2.95', ccflags ='-DAPPLLIB_EXP="/icg/lib/perl/icg_perl" -fno-strict-aliasing -I/usr/local/include',
optimize='-O2',
cppflags='-DAPPLLIB_EXP="/icg/lib/perl/icg_perl" -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.4 20011002 (Debian prerelease)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='/usr/bin/gcc-2.95', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldbm -ldb -ldl -lm -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.3.1.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options:
Built under linux
Compiled at Aug 4 2003 21:34:06
@INC:
/icg/lib/perl/icg_perl/i386-linux
/icg/lib/perl/icg_perl
/icg/pkg/perl/perl@5.6.1/lib/i386-linux
/icg/pkg/perl/perl@5.6.1/lib
/icg/lib/perl/site_perl/5.6.1/i386-linux
/icg/lib/perl/site_perl/5.6.1
/icg/lib/perl/site_perl
/icg/lib/perl/5.6.1/i386-linux
/icg/lib/perl/5.6.1
/icg/lib/perl
.
hdp.