Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

Angelscript 64bit-ness?

$
0
0

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 …

Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>