Date: Tue, 3 Jun 2025 10:29:18 +0100
On Tue, Jun 3, 2025 at 2:00 AM Oliver Hunt wrote:
>
> Here’s what happens when you aren’t compiling for x86_64:
>
> Address of stringstream: 0x16efeaf18
>
> Address of ostream: 0x16efeaf28
>
> [1] 74787 bus error ./a.out
I presume that machine you're working on is 64-Bit ARM using the
aarch64 instruction set?
Here's what you need:
https://godbolt.org/z/aaMjfvbro
I can do this for every compiler, every operating system, every
instruction set, every CPU. Including when pointer authentication
comes out for Linux. The only one that takes a little more work is
Microsoft, hence my idea of 'std::polyhandle'.
That GodBolt I gave you just now has no undefined behaviour on 64-Bit ARM.
>
> Here’s what happens when you aren’t compiling for x86_64:
>
> Address of stringstream: 0x16efeaf18
>
> Address of ostream: 0x16efeaf28
>
> [1] 74787 bus error ./a.out
I presume that machine you're working on is 64-Bit ARM using the
aarch64 instruction set?
Here's what you need:
https://godbolt.org/z/aaMjfvbro
I can do this for every compiler, every operating system, every
instruction set, every CPU. Including when pointer authentication
comes out for Linux. The only one that takes a little more work is
Microsoft, hence my idea of 'std::polyhandle'.
That GodBolt I gave you just now has no undefined behaviour on 64-Bit ARM.
Received on 2025-06-03 09:29:34