Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/perl5Public

perl 5.40.0: Crash while trying to compile perl on i686 with quadmath and SSE. #22577

Closed
Assignees
tonycoz
@abatyiev

Description

@abatyiev

Module: core

Description
I'm trying to build perl on 32bit Gentoo Linux box with SSE enabled

Steps to Reproduce
I'm trying to compile perl via following configure:
sh ./Configure -des -Dusequadmath -Accflags="-O2 -fwrapv -pipe -msse" -Doptimize="-O2 -fwrapv -pipe -msse"
However,miniperl binary crashes during build.

Investigation
Crash inPerl_init_constants (sv.c:16516) is due to misaligned access toPL_sv_no of__float128 type, because it requires 16 bytes alignment while perl's allocator (new_XPVNV) provides only 8 byte alignment.
Compiler usesmovaps instruction that is part of SSE instruction set that triggers the crash.

Perl's allocator seem to allocate memory in blocks of 40 bytes on i686. Crash does not reproduce on x64 due to bigger allocated block (64 bytes) that provides correct alignment.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp