On Fri Feb 22 10:25:11 2013, SYBER wrote:
Show quoted text> Птн Фев 22 08:31:51 2013, CHORNY писал:
> Привет. А не мог бы ты, указать полную версию своей OS, а также вывод
> perl -V
>
> Дело в том, что у нас на linux - CentOS, Ubuntu собирается нормально.
> Скорее всего проблема не втом, что это линукс а в различиях API
> низкоуровневых, которые я видимо предусмотрел не везде.
perl 5.16.2 с ithreads - не зависает
с ithreads - зависает
Выглядит это так:
$perl -Mblib t/09-Relative-operations.t
ok 1
....
ok 91
1..91
(висит)
Debian 6.0.6, 32-bit
$ perl -V
Summary of my perl5 (revision 5 version 16 subversion 2) configuration:
Platform:
osname=linux, osvers=2.6.32-5-686, archname=i686-linux
uname='linux deb1 2.6.32-5-686 #1 smp sun sep 23 09:49:36 utc 2012
i686 gnulinux '
config_args='-de -Dprefix=/home/c/perl5/perlbrew/perls/perl-5.16.2
-Aeval:scriptdir=/home/c/perl5/perlbrew/perls/perl-5.16.2/bin'
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.4.5', 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
/usr/lib/i486-linux-gnu /usr/lib64
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
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 USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under linux
Compiled at Jan 4 2013 21:20:12
%ENV:
PERL5LIB=""
PERL5OPT=""
PERL5_CPANPLUS_IS_RUNNING="2552"
PERL5_CPAN_IS_RUNNING="2552"
PERLBREW_MANPATH="/home/c/perl5/perlbrew/perls/perl-5.16.2/man"
PERLBREW_PATH="/home/c/perl5/perlbrew/bin:/home/c/perl5/perlbrew/perls/perl-5.16.2/bin"
PERLBREW_PERL="perl-5.16.2"
PERLBREW_ROOT="/home/c/perl5/perlbrew"
PERLBREW_SKIP_INIT="1"
PERLBREW_VERSION="0.58"
@INC:
/home/c/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl/5.16.2/i686-linux
/home/c/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl/5.16.2
/home/c/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.2/i686-linux
/home/c/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.2
.
Вот что выдаёт Ubuntu 32-bit с perl 5.17.7 без ithreads:
ok 38
Panda::Date: cannot change this Panda::Date::Rel object: it's read only
at t/09-Relative-operations.t line 77.
# Tests were run but no plan was declared and done_testing() was not seen.
*** glibc detected *** perl: munmap_chunk(): invalid pointer: 0x08419e18 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0xb81ee2]
/lib/i386-linux-gnu/libc.so.6(+0x765c5)[0xb825c5]
/usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x1f)[0x73b51f]
/home/chorny/.cpan/build/Panda-Date-1.5-6BWr6d/blib/arch/auto/Panda/Date/Date.so(+0x4997)[0xce9997]
perl(Perl_pp_entersub+0x5d6)[0x80e2206]
perl(Perl_call_sv+0x5b9)[0x8078b99]
perl[0x80eaa1f]
perl(Perl_sv_clear+0x3bc)[0x80eaf9c]
perl(Perl_sv_free2+0xad)[0x80eb55d]
perl(Perl_op_clear+0x2a4)[0x80627f4]
perl(Perl_op_free+0x91)[0x80628e1]
perl(Perl_op_free+0x75)[0x80628c5]
perl(Perl_op_free+0x75)[0x80628c5]
perl(perl_destruct+0x8d)[0x807929d]
perl(main+0xd2)[0x8060982]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb254d3]
perl[0x80609f1]
======= Memory map: ========
00110000-0012c000 r-xp 00000000 08:01 132035
/lib/i386-linux-gnu/libgcc_s.so.1
0012c000-0012d000 r--p 0001b000 08:01 132035
/lib/i386-linux-gnu/libgcc_s.so.1
0012d000-0012e000 rw-p 0001c000 08:01 132035
/lib/i386-linux-gnu/libgcc_s.so.1
001d7000-001d9000 r-xp 00000000 08:01 302271
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/lib/site_perl/5.17.7/i686-linux/auto/Panda/Export/Export.so
001d9000-001da000 r--p 00001000 08:01 302271
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/lib/site_perl/5.17.7/i686-linux/auto/Panda/Export/Export.so
001da000-001db000 rw-p 00002000 08:01 302271
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/lib/site_perl/5.17.7/i686-linux/auto/Panda/Export/Export.so
00233000-0023b000 r-xp 00000000 08:01 169563
/lib/i386-linux-gnu/libcrypt-2.15.so
0023b000-0023c000 r--p 00007000 08:01 169563
/lib/i386-linux-gnu/libcrypt-2.15.so
0023c000-0023d000 rw-p 00008000 08:01 169563
/lib/i386-linux-gnu/libcrypt-2.15.so
0023d000-00264000 rw-p 00000000 00:00 0
00692000-0076a000 r-xp 00000000 08:01 5258
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
0076a000-0076b000 ---p 000d8000 08:01 5258
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
0076b000-0076f000 r--p 000d8000 08:01 5258
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
0076f000-00770000 rw-p 000dc000 08:01 5258
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
00770000-00777000 rw-p 00000000 00:00 0
007ee000-007f1000 r-xp 00000000 08:01 347448
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/lib/5.17.7/i686-linux/auto/Fcntl/Fcntl.so
007f1000-007f2000 r--p 00002000 08:01 347448
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/lib/5.17.7/i686-linux/auto/Fcntl/Fcntl.so
007f2000-007f3000 rw-p 00003000 08:01 347448
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/lib/5.17.7/i686-linux/auto/Fcntl/Fcntl.so
007f8000-00818000 r-xp 00000000 08:01 169588
/lib/i386-linux-gnu/ld-2.15.so
00818000-00819000 r--p 0001f000 08:01 169588
/lib/i386-linux-gnu/ld-2.15.so
00819000-0081a000 rw-p 00020000 08:01 169588
/lib/i386-linux-gnu/ld-2.15.so
00820000-00822000 r-xp 00000000 08:01 347445
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/lib/5.17.7/i686-linux/auto/Cwd/Cwd.so
00822000-00823000 r--p 00001000 08:01 347445
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/lib/5.17.7/i686-linux/auto/Cwd/Cwd.so
00823000-00824000 rw-p 00002000 08:01 347445
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/lib/5.17.7/i686-linux/auto/Cwd/Cwd.so
008be000-008bf000 r-xp 00000000 00:00 0 [vdso]
009f9000-00a09000 r-xp 00000000 08:01 218952
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/lib/5.17.7/i686-linux/auto/POSIX/POSIX.so
00a09000-00a0b000 r--p 0000f000 08:01 218952
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/lib/5.17.7/i686-linux/auto/POSIX/POSIX.so
00a0b000-00a0c000 rw-p 00011000 08:01 218952
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/lib/5.17.7/i686-linux/auto/POSIX/POSIX.so
00b0c000-00caf000 r-xp 00000000 08:01 169559
/lib/i386-linux-gnu/libc-2.15.so
00caf000-00cb0000 ---p 001a3000 08:01 169559
/lib/i386-linux-gnu/libc-2.15.so
00cb0000-00cb2000 r--p 001a3000 08:01 169559
/lib/i386-linux-gnu/libc-2.15.so
00cb2000-00cb3000 rw-p 001a5000 08:01 169559
/lib/i386-linux-gnu/libc-2.15.so
00cb3000-00cb6000 rw-p 00000000 00:00 0
00ce5000-00d0b000 r-xp 00000000 08:01 223669
/home/chorny/.cpan/build/Panda-Date-1.5-6BWr6d/blib/arch/auto/Panda/Date/Date.so
00d0b000-00d0c000 r--p 00025000 08:01 223669
/home/chorny/.cpan/build/Panda-Date-1.5-6BWr6d/blib/arch/auto/Panda/Date/Date.so
00d0c000-00d0d000 rw-p 00026000 08:01 223669
/home/chorny/.cpan/build/Panda-Date-1.5-6BWr6d/blib/arch/auto/Panda/Date/Date.so
00d0d000-00d0e000 rw-p 00000000 00:00 0
00de9000-00dec000 r-xp 00000000 08:01 169591
/lib/i386-linux-gnu/libdl-2.15.so
00dec000-00ded000 r--p 00002000 08:01 169591
/lib/i386-linux-gnu/libdl-2.15.so
00ded000-00dee000 rw-p 00003000 08:01 169591
/lib/i386-linux-gnu/libdl-2.15.so
00ed9000-00f03000 r-xp 00000000 08:01 169586
/lib/i386-linux-gnu/libm-2.15.so
00f03000-00f04000 r--p 00029000 08:01 169586
/lib/i386-linux-gnu/libm-2.15.so
00f04000-00f05000 rw-p 0002a000 08:01 169586
/lib/i386-linux-gnu/libm-2.15.so
08048000-08198000 r-xp 00000000 08:01 86263
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/bin/perl5.17.7
08198000-08199000 r--p 0014f000 08:01 86263
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/bin/perl5.17.7
08199000-0819c000 rw-p 00150000 08:01 86263
/home/chorny/perl5/perlbrew/perls/perl-5.17.7/bin/perl5.17.7
082b0000-084e2000 rw-p 00000000 00:00 0 [heap]
b75b5000-b77b5000 r--p 00000000 08:01 6617
/usr/lib/locale/locale-archive
b77b5000-b77b7000 rw-p 00000000 00:00 0
b77c8000-b77c9000 rw-p 00000000 00:00 0
b77c9000-b77ca000 r--p 0046c000 08:01 6617
/usr/lib/locale/locale-archive
b77ca000-b77cc000 rw-p 00000000 00:00 0
bfa97000-bfab8000 rw-p 00000000 00:00 0 [stack]
Aborted (core dumped)
--
Alexandr Ciornii,
http://chorny.net