On Wed, Oct 9, 2013 at 6:30 AM, Chris Marshall <[email protected]> wrote: > Luis- > > Could you try building the PDL stable releases starting with > PDL-2.006. It would be nice to see if the problem is specific > to the new 64bit handling code. > > I did notice that the perl -V output has a long as 64bits > and as the ivtype. My guess is that that may be where > the problem comes in.
There are passing tester reports for this ivtype so that may not be the problem. Also, what happens if you turn off -O2 for the gcc? --Chris > Also, your PDL build tests will go much faster if you use > a modified perldl.conf with all the external dependency > detection and builds turned off for the moment. The > problem is in the core routines so the test should still > fail. > > --Chris > > > On Tue, Oct 8, 2013 at 11:38 PM, Luis Mochan <[email protected]> wrote: >> >> I made a further test. I have a working 64 bit system since a long >> time ago with an AMD64 processor. This system has had PDL installed and >> has been running for a very long time (without upgrades). I am running >> PDL v2.4.10 under perl 5.15.8. I installed perl 5.18.1 and tried to >> install the pre-release pdl and I got the same mistake as my intel >> machine. Thus, it seems the problem goes beyond the CPU brand. The >> output of cat /proc/cpuinfo in this system is >> >> model name : Dual-Core AMD Opteron(tm) Processor 1218 >> >> The output of perl -Mblib t/autoload.t seems to have more information >> (i.e., a traceback, don't know why the difference from that of my >> other machine) >> >> mochan@em:~/.cpanm/latest-build/PDL-2.006_91$ perl -Mblib -d t/autoload.t >> >> Loading DB routines from perl5db.pl version 1.39_10 >> Editor support available. >> >> Enter h or 'h h' for help, or 'man perldebug' for more help. >> >> 1..3 >> ok 1 - use PDL::AutoLoader; >> main::(t/autoload.t:25): $PDL::debug = 1; >> DB<1> n >> main::(t/autoload.t:27): @PDLLIB = ("t/"); # this means you have >> to run the test from ../t >> DB<1> n >> main::(t/autoload.t:29): my $x = long(2 + ones(2,2)); >> DB<1> n >> Dims: 2,2 DLen: 32 >> *** Error in `perl': double free or corruption (out): 0x0000000002ba70c0 >> *** >> ======= Backtrace: ========= >> /lib/x86_64-linux-gnu/libc.so.6(+0x7aa26)[0x7fa75daa5a26] >> /lib/x86_64-linux-gnu/libc.so.6(+0x7b7a3)[0x7fa75daa67a3] >> perl(Perl_sv_clear+0x394)[0x4a5e44] >> perl(Perl_sv_free2+0xa9)[0x4a64b9] >> perl(Perl_free_tmps+0x65)[0x4c1c05] >> perl(Perl_pp_nextstate+0x7d)[0x49661d] >> perl(Perl_runops_standard+0x13)[0x495f83] >> perl(Perl_amagic_call+0x47f)[0x43ea1f] >> perl(Perl_try_amagic_bin+0x7a)[0x43fc3a] >> perl(Perl_pp_add+0x19f)[0x497bff] >> perl(Perl_runops_standard+0x13)[0x495f83] >> perl(perl_run+0x216)[0x4395c6] >> perl(main+0x105)[0x41da95] >> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fa75da4c995] >> perl[0x41dacd] >> ======= Memory map: ======== >> 00400000-0055c000 r-xp 00000000 fe:01 3793468 >> /home/mochan/perl5/perlbrew/perls/perl-5.18.1/bin/perl >> 0075b000-00760000 rw-p 0015b000 fe:01 3793468 >> /home/mochan/perl5/perlbrew/perls/perl-5.18.1/bin/perl >> 00760000-00761000 rw-p 00000000 00:00 0 >> 01956000-02c4f000 rw-p 00000000 00:00 0 >> [heap] >> 7fa75a964000-7fa75a979000 r-xp 00000000 08:05 120441 >> /lib/x86_64-linux-gnu/libgcc_s.so.1 >> 7fa75a979000-7fa75ab79000 ---p 00015000 08:05 120441 >> /lib/x86_64-linux-gnu/libgcc_s.so.1 >> 7fa75ab79000-7fa75ab7a000 rw-p 00015000 08:05 120441 >> /lib/x86_64-linux-gnu/libgcc_s.so.1 >> 7fa75ab7a000-7fa75ab7e000 r-xp 00000000 fe:01 3809358 >> /home/mochan/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/x86_64-linux/auto/arybase/arybase.so >> 7fa75ab7e000-7fa75ad7d000 ---p 00004000 fe:01 3809358 >> /home/mochan/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/x86_64-linux/auto/arybase/arybase.so >> 7fa75ad7d000-7fa75ad7e000 rw-p 00003000 fe:01 3809358 >> /home/mochan/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/x86_64-linux/auto/arybase/arybase.so >> 7fa75ad7e000-7fa75ad80000 r-xp 00000000 fe:01 3803514 >> /home/mochan/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/x86_64-linux/auto/attributes/attributes.so >> 7fa75ad80000-7fa75af7f000 ---p 00002000 fe:01 3803514 >> /home/mochan/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/x86_64-linux/auto/attributes/attributes.so >> 7fa75af7f000-7fa75af80000 rw-p 00001000 fe:01 3803514 >> /home/mochan/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/x86_64-linux/auto/attributes/attributes.so >> 7fa75af80000-7fa75af9f000 r-xp 00000000 fe:01 3826664 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/Bad/Bad.so >> 7fa75af9f000-7fa75b19f000 ---p 0001f000 fe:01 3826664 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/Bad/Bad.so >> 7fa75b19f000-7fa75b1a0000 rw-p 0001f000 fe:01 3826664 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/Bad/Bad.so >> 7fa75b1a0000-7fa75b24e000 r-xp 00000000 fe:01 3826680 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/Ufunc/Ufunc.so >> 7fa75b24e000-7fa75b44d000 ---p 000ae000 fe:01 3826680 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/Ufunc/Ufunc.so >> 7fa75b44d000-7fa75b450000 rw-p 000ad000 fe:01 3826680 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/Ufunc/Ufunc.so >> 7fa75b450000-7fa75b518000 r-xp 00000000 fe:01 3826688 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/Primitive/Primitive.so >> 7fa75b518000-7fa75b717000 ---p 000c8000 fe:01 3826688 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/Primitive/Primitive.so >> 7fa75b717000-7fa75b71a000 rw-p 000c7000 fe:01 3826688 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/Primitive/Primitive.so >> 7fa75b71a000-7fa75b75a000 r-xp 00000000 fe:01 3826712 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/Math/Math.so >> 7fa75b75a000-7fa75b95a000 ---p 00040000 fe:01 3826712 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/Math/Math.so >> 7fa75b95a000-7fa75b95d000 rw-p 00040000 fe:01 3826712 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/Math/Math.so >> 7fa75b95d000-7fa75b971000 r-xp 00000000 fe:01 3826720 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/MatrixOps/MatrixOps.so >> 7fa75b971000-7fa75bb71000 ---p 00014000 fe:01 3826720 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/MatrixOps/MatrixOps.so >> 7fa75bb71000-7fa75bb72000 rw-p 00014000 fe:01 3826720 >> /home/mochan/.cpanm/work/1381287457.1564/PDL-2.006_91/blib/arch/auto/PDL/MatrixOps/MatrixOps.so >> 7fa75bb72000-7fa75bb75000 r-xp 00000000 fe:01 3809313 >> 7fa75bb75000-7fa75bd74000 ---p 00003000 fe:01 3809313 >> /home/mochan/perl5/perlbrew/perls/perl-5.18.1/lib/5.18 >> 7fa75bd74000-7fa75bd75000 rw-p 00002000 >> 7fa75bd75000-7fa75bdea000 r-xp 00000000 fe:01 3826696 >> /home/ >> 7fa75bdea000-7fa75bfe9000 ---p 00075000 fe:01 3826696 >> /home/mochan/.cpanm/work/1381287457 >> mochan@em:~/.cpanm/latest-build/PDL-2.006_91$ >> >> The output of perl -V is >> >> Summary of my perl5 (revision 5 version 15 subversion 8) configuration: >> Snapshot of: a752ff79ee1321f459c659136b0f0e7e43e1f5ae >> Platform: >> osname=linux, osvers=2.6.32-5-amd64, archname=x86_64-linux >> uname='linux em 2.6.32-5-amd64 #1 smp mon jan 16 16:22:28 utc 2012 >> x86_64 gnulinux ' >> config_args='-de -Dprefix=/home/mochan/perl5/perlbrew/perls/perl-blead >> -Dusedevel' >> hint=recommended, useposix=true, d_sigaction=define >> useithreads=undef, usemultiplicity=undef >> useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef >> use64bitint=define, use64bitall=define, 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.4.5', gccosandvers='' >> intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 >> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 >> ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', >> lseeksize=8 >> alignbytes=8, 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 /lib64 >> /usr/lib64 >> libs=-lnsl -lgdbm -ldl -lm -lcrypt -lutil -lc -lgdbm_compat >> perllibs=-lnsl -ldl -lm -lcrypt -lutil -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: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV >> PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_USE_DEVEL >> USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES >> USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE >> USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF >> Built under linux >> Compiled at Mar 8 2012 22:57:27 >> %ENV: >> PERLBREW_BASHRC_VERSION="0.66" >> PERLBREW_HOME="/home/mochan/.perlbrew" >> PERLBREW_MANPATH="/home/mochan/perl5/perlbrew/perls/perl-blead/man" >> >> PERLBREW_PATH="/home/mochan/perl5/perlbrew/bin:/home/mochan/perl5/perlbrew/perls/perl-blead/bin" >> PERLBREW_PERL="perl-blead" >> PERLBREW_ROOT="/home/mochan/perl5/perlbrew" >> PERLBREW_VERSION="0.66" >> @INC: >> >> /home/mochan/perl5/perlbrew/perls/perl-blead/lib/site_perl/5.15.8/x86_64-linux >> /home/mochan/perl5/perlbrew/perls/perl-blead/lib/site_perl/5.15.8 >> /home/mochan/perl5/perlbrew/perls/perl-blead/lib/5.15.8/x86_64-linux >> /home/mochan/perl5/perlbrew/perls/perl-blead/lib/5.15.8 >> . >> >> >> I hope this helps identify the problem. >> >> Regards, >> Luis >> >> >> >> On Tue, Oct 08, 2013 at 09:31:06PM -0500, Luis Mochan wrote: >>> I made several tests this night, but with no success so far. >>> I installed a new fresh perl5.18.1 using perlbrew and immediately >>> tried to install PDL, without installing any package whatsoever before >>> (in case there were conflicting packages). No luck. I used both the >>> pre-release version and the git version with similar results. I used >>> my system perl, in case the problem would be my perlbrew >>> installation. Again, no luck. The output of >>> perl -Mblib -d t/autoload.t >>> after >>> make clean; perl Makefile.PL; make >>> is >>> >>> mochan@gmunu:~/.cpanm/work/1381282900.10773/PDL-2.006_91$ perl -Mblib -d >>> t/autoload.t >>> >>> Loading DB routines from perl5db.pl version 1.39_10 >>> Editor support available. >>> >>> Enter h or 'h h' for help, or 'man perldebug' for more help. >>> >>> 1..3 >>> ok 1 - use PDL::AutoLoader; >>> main::(t/autoload.t:25): $PDL::debug = 1; >>> DB<1> n >>> main::(t/autoload.t:27): @PDLLIB = ("t/"); # this means you have >>> to run the test from ../t >>> DB<1> n >>> main::(t/autoload.t:29): my $x = long(2 + ones(2,2)); >>> DB<1> n >>> Dims: 2,2 DLen: 32 >>> *** Error in `perl': realloc(): invalid next size: 0x0000000003264250 *** >>> ^C >>> >>> The output of >>> cat /proc/cpuinfo >>> includes >>> model name : Intel(R) Core(TM) i7-2600 CP @ 3.40GHz >>> >>> My system is Debian Testing and the output of uname -a is >>> Linux gmunu 3.10-3-amd64 #1 SMP Debian 3.10.11-1 (2013-09-10) x86_64 \ >>> GNU/Linux >>> >>> Below is a summary of my system's perl -V. >>> >>> ... >> >> >> _______________________________________________ >> Perldl mailing list >> [email protected] >> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
