Subject: | core in t/map8.t (invokation of "recode8"?) on 64Bit perl |
Date: | Sun, 28 Jan 2007 18:39:53 +0100 |
To: | bug-Unicode-Map8 [...] rt.cpan.org |
From: | Heiko Jansen <heiko_jansen [...] web.de> |
'perl Makefile.PL' and 'make' work, but 'make test' won´t
Tried on Solaris 10 SPARC 64Bit with Sun CC (Sun C++ 5.8 2005/10/13)
Same seems to happen on Fedora on x86_64:
http://www.redhat.com/archives/fedora-extras-list/2006-February/msg01656.html
#############################################################################
~> perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Unicode::Map8
~>
#############################################################################
~> make
[...]
/digibib/tools/bin/perl /digibib/tools/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /digibib/tools/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Map8.xs > Map8.xsc && mv Map8.xsc Map8.c
/opt/SUNWspro/bin/cc -c -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -xcode=abs64 -xarch=generic64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O -DVERSION=\"0.12\" -DXS_VERSION=\"0.12\" -KPIC "-I/digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi-64-ld/CORE" -DPERL Map8.c
"Map8.xs", line 84: warning: return value type mismatch
"Map8.c", line 490: warning: assignment type mismatch:
pointer to unsigned char "=" pointer to char
"Map8.xs", line 359: warning: implicit function declaration: map8_recode8
/opt/SUNWspro/bin/cc -c -xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -xcode=abs64 -xarch=generic64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -O -DVERSION=\"0.12\" -DXS_VERSION=\"0.12\" -KPIC "-I/digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi-64-ld/CORE" -DPERL map8x.c
"map8x.c", line 322: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/include/iso/string_iso.h", line 69
argument : pointer to unsigned char
Running Mkbootstrap for Unicode::Map8 ()
chmod 644 Map8.bs
rm -f blib/arch/auto/Unicode/Map8/Map8.so
/opt/SUNWspro/bin/cc -G -xarch=v9b -L/opt/SUNWspro/prod/lib/v9b -L/opt/SUNWspro/prod/lib/v9 -L/opt/SUNWspro/prod/lib -L/digibib/tools/lib -L/usr/lib/64 -L/usr/sfw/lib/64 -L/usr/ucblib/sparcv9 -L/usr/lib -L/usr/ccs/lib -L/lib Map8.o map8x.o -o blib/arch/auto/Unicode/Map8/Map8.so \
\
chmod 755 blib/arch/auto/Unicode/Map8/Map8.so
cp Map8.bs blib/arch/auto/Unicode/Map8/Map8.bs
chmod 644 blib/arch/auto/Unicode/Map8/Map8.bs
cp umap blib/script/umap
/digibib/tools/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/umap
Manifying blib/man1/umap.1
Manifying blib/man3/Unicode::Map8.3
~>
#############################################################################
~> make test
PERL_DL_NONLAZY=1 /digibib/tools/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/callback....ok
t/compat......ok
t/map8........dubious
Test returned status 0 (wstat 139, 0x8b)
t/unistr......ok
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/map8.t 0 139 ?? ?? ??
Failed 1/4 test scripts. 0/6 subtests failed.
Files=4, Tests=6, 1 wallclock secs ( 0.39 cusr + 0.10 csys = 0.49 CPU)
Failed 1/4 test programs. 0/6 subtests failed.
make: *** [test_dynamic] Error 255
#############################################################################
~> perl t/map8.t
1..18
MAPS_DIR = blib/lib/Unicode/Map8/maps
ok 1
Segmentation Fault (core dumped)
#############################################################################
~> gdb /digibib/tools/bin/perl core
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.10"...
Core was generated by `/digibib/tools/bin/perl -w t/map8.t'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi-64-ld/CORE/libperl.so...done.
Loaded symbols for /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi-64-ld/CORE/libperl.so
Reading symbols from /usr/lib/sparcv9/libsocket.so.1...done.
Loaded symbols for /usr/lib/64/libsocket.so.1
Reading symbols from /usr/lib/sparcv9/libnsl.so.1...done.
Loaded symbols for /usr/lib/64/libnsl.so.1
Reading symbols from /usr/lib/sparcv9/libdl.so.1...
warning: Lowest section in /usr/lib/sparcv9/libdl.so.1 is .dynamic at 00000000000000e8
done.
Loaded symbols for /usr/lib/64/libdl.so.1
Reading symbols from /usr/lib/sparcv9/libm.so.2...done.
Loaded symbols for /usr/lib/64/libm.so.2
Reading symbols from /usr/lib/sparcv9/libpthread.so.1...
warning: Lowest section in /usr/lib/sparcv9/libpthread.so.1 is .dynamic at 00000000000000b0
done.
Loaded symbols for /usr/lib/64/libpthread.so.1
Reading symbols from /usr/lib/sparcv9/libc.so.1...done.
Loaded symbols for /usr/lib/64/libc.so.1
Reading symbols from /platform/SUNW,Sun-Fire-V440/lib/sparcv9/libc_psr.so.1...done.
Loaded symbols for /platform/SUNW,Sun-Fire-V440/lib/sparcv9/libc_psr.so.1
Reading symbols from /usr/lib/locale/de_DE.UTF-8/sparcv9/de_DE.UTF-8.so.3...done.
Loaded symbols for /usr/lib/locale/de_DE.UTF-8/sparcv9/de_DE.UTF-8.so.3
Reading symbols from /usr/lib/locale/common/sparcv9/methods_unicode.so.3...done.
Loaded symbols for /usr/lib/locale/common/sparcv9/methods_unicode.so.3
Reading symbols from /digibib/.cpan/build/Unicode-Map8-0.12/blib/arch/auto/Unicode/Map8/Map8.so...done.
Loaded symbols for /digibib/.cpan/build/Unicode-Map8-0.12/blib/arch/auto/Unicode/Map8/Map8.so
#0 0xffffffff76205040 in XS_Unicode__Map8_recode8 () from /digibib/.cpan/build/Unicode-Map8-0.12/blib/arch/auto/Unicode/Map8/Map8.so
(gdb) bt
#0 0xffffffff76205040 in XS_Unicode__Map8_recode8 () from /digibib/.cpan/build/Unicode-Map8-0.12/blib/arch/auto/Unicode/Map8/Map8.so
#1 0xffffffff779a65cc in Perl_pp_entersub () from /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi-64-ld/CORE/libperl.so
#2 0xffffffff7799cc70 in Perl_runops_standard () from /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi-64-ld/CORE/libperl.so
#3 0xffffffff77931398 in S_run_body () from /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi-64-ld/CORE/libperl.so
#4 0xffffffff7793109c in perl_run () from /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi-64-ld/CORE/libperl.so
#5 0x00000001000016d0 in main ()
~>
#############################################################################
~/.cpan/build/Unicode-Map8-0.12> perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=solaris, osvers=2.10, archname=sun4-solaris-thread-multi-64-ld
uname='sunos satyros 5.10 generic_118833-03 sun4u sparc sunw,sun-fire-v440 solaris '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=define uselongdouble=define
usemymalloc=n, bincompat5005=undef
Compiler:
cc='/opt/SUNWspro/bin/cc', ccflags ='-xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -xcode=abs64 -xarch=generic64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV',
optimize='-O',
cppflags='-xarch=v9b -mt -D_REENTRANT -D_NDEBUG -I/digibib/tools/include -xcode=abs64'
ccversion='Sun C 5.8 2005/10/13', gccversion='', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='long double', nvsize=16, Off_t='off_t', lseeksize=8
alignbytes=16, prototype=define
Linker and Libraries:
ld='/opt/SUNWspro/bin/cc', ldflags ='-L/opt/SUNWspro/prod/lib/v9b -L/opt/SUNWspro/prod/lib/v9 -L/opt/SUNWspro/prod/lib -L/digibib/tools/lib -L/usr/lib/64 -L/usr/sfw/lib/64 -L/usr/ucblib/sparcv9 -L/usr/lib -L/usr/ccs/lib -L/lib -xarch=generic64 '
libpth=/opt/SUNWspro/prod/lib/v9b /opt/SUNWspro/prod/lib/v9 /opt/SUNWspro/prod/lib /digibib/tools/lib /usr/lib/64 /usr/sfw/lib/64 /usr/ucblib/sparcv9 /usr/lib /usr/ccs/lib /lib
libs=-lsocket -lnsl -ldbm -ldb -ldl -lm -lpthread -lc
perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc
libc=/usr/lib/sparcv9/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R /digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi-64-ld/CORE'
cccdlflags='-KPIC', lddlflags='-G -xarch=v9b -L/opt/SUNWspro/prod/lib/v9b -L/opt/SUNWspro/prod/lib/v9 -L/opt/SUNWspro/prod/lib -L/digibib/tools/lib -L/usr/lib/64 -L/usr/sfw/lib/64 -L/usr/ucblib/sparcv9 -L/usr/lib -L/usr/ccs/lib -L/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS
USE_LARGE_FILES USE_LONG_DOUBLE USE_PERLIO
USE_REENTRANT_API
Built under solaris
Compiled at Oct 16 2006 22:13:35
@INC:
/digibib/tools/lib/perl5/5.8.8/sun4-solaris-thread-multi-64-ld
/digibib/tools/lib/perl5/5.8.8
/digibib/tools/lib/perl5/site_perl/5.8.8/sun4-solaris-thread-multi-64-ld
/digibib/tools/lib/perl5/site_perl/5.8.8
/digibib/tools/lib/perl5/site_perl