Skip to content

Conversation

@bluhm
Copy link

@bluhm bluhm commented Sep 12, 2025

g++ (Debian 14.2.0-19) 14.2.0 compiles with Intel SSE instructions that need 32 byte alignment. With -std=gnu++11 flag it still uses these instructions, but the C++ 11 new operator does not support the additional alignment parameter. This results in a segmentation fault due to unaligned access. When using the -std=c++17 compile time option, the dynamically allocated memory is aligned correctly.

g++ (Debian 14.2.0-19) 14.2.0 compiles with Intel SSE instructions
that need 32 byte alignment.  With -std=gnu++11 flag it still uses
these instructions, but the C++ 11 new operator does not support
the additional alignment parameter.  This results in a segmentation
fault due to unaligned access.  When using the -std=c++17 compile
time option, the dynamically allocated memory is aligned correctly.

Signed-off-by: Alexander Bluhm <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant