Hi Dave,
thank you for your time.
As I can see from your output, you are running your test on 64-bit
platform. I was running under 32-bit.
Now I have tested it under 64-bit too and it is working for me too.
*** But the problem still exists on the *** 32-bit *** platform. ***
> I'd be suspicious that something in your path or environment is being
> picked up; in particular, I'd be suspicious of ../../inc etc.
I have removed the "use lib qw(./inc)" line from the "Makefile.PL",
but there is no difference.
> Alternatively, that there's something left over from a previous build of
> perl under /tmp/perl_thread; did you completely clean this directory
> before building 5.14.2?
I have redone my tests right now
I have removed all old directories for the source code and for the
installation.
I have installed a fresh perl5 v5.14.2-threaded in "/tmp/perl_thread".
rm -rf perl-5.14.2
tar zxvf perl-5.14.2.tar.gz
cd perl-5.14.2
sh Configure -Dprefix=/tmp/perl_thread -Dusethreads -DDEBUGGING=both -des
make install
I have made my tests again
cd ext/AFS/
/tmp/perl_thread/bin/perl Makefile.PL
make
/tmp/perl_thread/bin/perl AFS.t
And I can still reproduce my problem.
I can even reproduce that problem on two different machines (my
laptop and my desktop machine at my office). On both machines the
perl5 v5.14.2-threaded where installed from fresh. On my office
machine it is installed under "perlbrew".
> Can you show the output of
>
> $ /tmp/perl_thread/bin/perl -V
This is the output from my laptop:
----------------------------------
/tmp/perl_thread/bin/perl -V
Summary of my perl5 (revision 5 version 14 subversion 2) configuration:
Platform:
osname=linux, osvers=2.6.26-2-686, archname=i686-linux-thread-multi
uname='linux samx3 2.6.26-2-686 #1 smp sat dec 26 09:01:51 utc 2009 i686 gnulinux '
config_args='-Dprefix=/tmp/perl_thread -Dusethreads -DDEBUGGING=both -des'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2 -g',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.3.2', 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/../lib /usr/lib/../lib /lib /usr/lib
libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -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 -g -L/usr/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV PERL_TRACK_MEMPOOL USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API
Built under linux
Compiled at Mar 1 2012 08:32:41
@INC:
/tmp/perl_thread/lib/site_perl/5.14.2/i686-linux-thread-multi
/tmp/perl_thread/lib/site_perl/5.14.2
/tmp/perl_thread/lib/5.14.2/i686-linux-thread-multi
/tmp/perl_thread/lib/5.14.2
.
This is the output from my desktop (under perlbrew):
----------------------------------------------------
~/ext/AFS>perl -V
Summary of my perl5 (revision 5 version 14 subversion 2) configuration:
Platform:
osname=linux, osvers=2.6.37.6, archname=i686-linux-thread-multi
uname='linux mpadmz-4 2.6.37.6 #1 smp preempt fri apr 1 11:31:01 cest 2011 i686 gnulinux '
config_args='-de -Dprefix=/afs/mpa/home/nog/perl5/perlbrew/perls/perl-5.14.2-thread -Dusethreads'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.5.2', 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 -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/
libc-2.11.3.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.11.3'
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: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
Built under linux
Compiled at Jan 26 2012 11:14:04
%ENV:
PERLBREW_CSHRC_VERSION="0.40"
PERLBREW_HOME="/afs/mpa/home/nog/.perlbrew"
PERLBREW_MANPATH="/afs/mpa/home/nog/perl5/perlbrew/perls/perl-5.14.2-thread/man"
PERLBREW_PATH="/afs/mpa/home/nog/perl5/perlbrew/bin:/afs/mpa/home/nog/perl5/perlbrew/perls/perl-5.14.2-thread/bin"
PERLBREW_PERL="perl-5.14.2-thread"
PERLBREW_ROOT="/afs/mpa/home/nog/perl5/perlbrew"
PERLBREW_SKIP_INIT="1"
PERLBREW_VERSION="0.40"
PERL_DL_DEBUG="1"
@INC:
/afs/mpa/home/nog/perl5/perlbrew/perls/perl-5.14.2-thread/lib/site_perl/5.14.2/i686-linux-thread-multi
/afs/mpa/home/nog/perl5/perlbrew/perls/perl-5.14.2-thread/lib/site_perl/5.14.2
/afs/mpa/home/nog/perl5/perlbrew/perls/perl-5.14.2-thread/lib/5.14.2/i686-linux-thread-multi
/afs/mpa/home/nog/perl5/perlbrew/perls/perl-5.14.2-thread/lib/5.14.2
> and also run
>
> $ valgrind /tmp/perl_thread/bin/perl AFS.t
I have to install valgrind first. When I have the "valgrind" output I
will send it.
Cheers,
Norbert
--
Ceterum censeo
Redmond esse delendam.