🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Angelscript 64bit-ness?

Started by
1 comment, last by WitchLord 4 years, 1 month ago

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.

Advertisement

This is the first time I've seen anything like this reported. AngelScript should be fully 64bit compatible, though there is always a chance of a bug.

Can you provide more details on this? Perhaps a small example that reproduces the problem so I can analyze it?

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement