AngelScript-JIT-Compiler
AngelScript-JIT-Compiler copied to clipboard
formatInt from scriptstdstring add-on crashes with Jit
When I use AngelScript-JIT my application crashes (with corrupted stack so no backtrace) when I use formatInt in scripts. When I disable JIT it works fine. Strings themselves also works fine, but only formatFloat and formatInt crashes. parseFloat and parseInt doesn't crash.
Maybe others can replicate this?
AS version is AngelScript 2.29.2.
I cannot replicate the issue. Could you provide a script that reproduces the error for you? Are you building 32 or 64 bit, and for Windows or Linux?
I'm building 32bit on windows. I'll try reducing the code size. The issue might be with something else, as AS is a part of a much larger system.
I can replicate the problem with Tutorial example that comes with AngelScript. Just add JIT to it and call a script having formatFloat or formatInt in it. Here is the script: http://pastebin.com/PcWkFMjm Here is the modified example: http://pastebin.com/eQzsb9cu
Even in this simple example the stack trace cannot be recovered, so I cannot really tell you what the problem is. I compile with gcc 4.9.2. Full config: http://pastebin.com/qgsshjg5
Unfortunately, your reproduction case does not reproduce the issue for us.
This also happens for me, too, so it definitely happens on multiple computers. Even changing the name or definition to use to_string doesn't work. The workaround is to use the Generic versions of these functions.