Subject: | segfaults if loaded twice |
It seems that signatures loaded twice with some core-stuff-modify module
(like Class::Accessor::Fast or Template) segfaults or gets into infinite
loop if Moose is loaded after it:
Segfaults:
use strict;
use warnings;
use signatures;
use signatures;
use Class::Accessor::Fast;
Goes into infinite:
use strict;
use warnings;
use signatures;
use signatures;
use Moose;
signatures.pm 0.06
Moose 1.08
Class::Accessor::Fast 0.33
Template 2.22
perl -V
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
Platform:
osname=linux, osvers=2.6.24.5, archname=i686-linux
uname='linux challenger 2.6.24.5 #2 wed apr 30 14:13:52 cdt 2008
i686 intel(r) pentium(r) 4 cpu 3.00ghz genuineintel gnulinux '
config_args='-des -Dprefix=/home/local/apps/perl-5.10.1'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include'
ccversion='', gccversion='4.2.3', 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=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.7.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.7'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Aug 24 2009 11:36:59
@INC:
/home/local/apps/perl-5.10.1/lib/5.10.1/i686-linux
/home/local/apps/perl-5.10.1/lib/5.10.1
/home/local/apps/perl-5.10.1/lib/site_perl/5.10.1/i686-linux
/home/local/apps/perl-5.10.1/lib/site_perl/5.10.1
.