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

Re: [perl #60574] sv_upgrade() loses 64-bit alignment, causingSIGBUS on sparc

Thread Previous | Thread Next
From:
Niko Tyni
Date:
November 16, 2008 18:36
Subject:
Re: [perl #60574] sv_upgrade() loses 64-bit alignment, causingSIGBUS on sparc
Message ID:
20081116181717.GA3551@rebekka
On Sun, Nov 16, 2008 at 05:15:36PM +0000, Nicholas Clark wrote:
> On Sun, Nov 16, 2008 at 04:16:14AM -0800, Niko Tyni wrote:
> 
> > As seen in <http://bugs.debian.org/505415>, calling sv_chop() or otherwise
> > upgrading an SV can result in an unaligned 64-bit access on the sparc
> > architecture.

> What is __alignof__(XPVIV) and sizeof(XPVIV) on the same system?

8 and 24.

> >     cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
> 
> I see that -fno-strict-aliasing is on. That might prove relevant in my reply
> to your reply.

I didn't explicitly ask for it, so it would seem to be on by default.
-- 
Niko Tyni   ntyni@debian.org

Thread Previous | Thread Next


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