https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110773
--- Comment #8 from Wilco <wilco at gcc dot gnu.org> --- (In reply to Sainan from comment #7) > (In reply to Wilco from comment #6) > > That does not make any sense. The only thing I think might happen is that > > your structure is not correctly aligned (for example by using a custom > > memory allocator). Can you check the address of count when it fails? (should > > be in the crash logs, or you can see it in gdb or just printf it). > > I feel silly for not thinking of printing the address, but now that I did, I > see the final hexit is '9' and so it just so happens this CPU can't deal > with that... So it's unaligned then, and that's not supported. And you're lucky your specific alignment happens to work on v8.4 cores - it would fail for other offsets.