Hi, I've been running my Angelscript code on 64-bit Ubuntu, with g++ address sanitizer etc on (-fsanitize=address -fsanitize=undefined)
I get lots of runtime alignment errors, especially related to strings. I can see in the hex that its 32-bit aligned, not 64-bit. I suspect this is the cause for some unexpected crashes, that seem to be happen in latter stages in string functions.
Like this, the string starts at 5th byte:
/usr/include/c++/9/bits/basic_string.h:628:4: runtime error: member call on misaligned address 0x621000006014 for type 'struct basic_string', which requires 8 byte alignment
0x621000006014: note: pointer points here
00 00 00 00 24 60 00 00 10 62 00 00 04 00 00 00 00 00 00 00 32 61 32 39 00 be be be be be be be
Is there any way to make things more 64-bit compatible? I compiled Angelscript with CMake as so lib.