develooper Front page | perl.perl5.porters | Postings from December 2008

[perl #60574] sv_upgrade() loses 64-bit alignment, causing SIGBUS on sparc

Thread Previous
From:
Stephan Austermuehle via RT
Date:
December 22, 2008 07:11
Subject:
[perl #60574] sv_upgrade() loses 64-bit alignment, causing SIGBUS on sparc
Message ID:
rt-3.6.HEAD-1114-1229954645-1269.60574-14-0@perl.org
Hi,

I just ran into the same bug with Perl 5.8.8 compiled with Sun's
compiler (see below for details). Are there any workarounds or bugfixes
available? My (threaded) Perl application crashes due to this bug.

Regards,

Stephan

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 fs2036 5.10 generic_127111-01 sun4u sparc
sunw,sparc-enterprise '
    config_args='-der'
    hint=previous, 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 ='-D_REENTRANT -m64
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV
-DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV
-DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV',
    optimize='-xO4',
    cppflags='-D_REENTRANT -m64 -D_REENTRANT -m64 -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV
-D_REENTRANT -m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV
-DPERL_USE_SAFE_PUTENV'
    ccversion='Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12',
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 ='-m64
-L/opt/SUNWspro/prod/lib/v9 -L/lib/sparcv9 -L/usr/lib/sparcv9
-L/usr/ccs/lib/sparcv9 '
    libpth=/opt/SUNWspro/prod/lib/v9 /lib/sparcv9 /usr/lib/sparcv9
/usr/ccs/lib/sparcv9 /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lpthread -lc -lsunmath
    perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc -lsunmath
    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
/opt/mssperl5/lib/5.8.8/sun4-solaris-thread-multi-64-ld/CORE'
    cccdlflags='-KPIC', lddlflags='-G -m64 -L/opt/SUNWspro/prod/lib/v9
-L/lib/sparcv9 -L/usr/lib/sparcv9 -L/usr/ccs/lib/sparcv9'


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 Apr 23 2008 15:05:33

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About