AngelScript-JIT-Compiler icon indicating copy to clipboard operation
AngelScript-JIT-Compiler copied to clipboard

formatInt from scriptstdstring add-on crashes with Jit

Open TheExDeus opened this issue 10 years ago • 5 comments

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.

TheExDeus avatar Feb 21 '15 17:02 TheExDeus

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?

ThyReaper avatar Feb 21 '15 21:02 ThyReaper

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.

TheExDeus avatar Feb 22 '15 23:02 TheExDeus

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

TheExDeus avatar Feb 23 '15 22:02 TheExDeus

Unfortunately, your reproduction case does not reproduce the issue for us.

ThyReaper avatar Mar 01 '15 04:03 ThyReaper

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.

xKamuna avatar May 11 '17 23:05 xKamuna