cmondestin / luainterface

Automatically exported from code.google.com/p/luainterface
0 stars 0 forks source link

Recover from infinite loop does not work like the native C version #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Instance a new Lua class and execute DoString with a infinite loop script 
like while (true) do end
2. Call lua.Close() to end the DoString method
3. run the code again (Or just instance a new Lua class)

What is the expected output? What do you see instead?
Lua should run again without problems
But instead it crashes with error

"Attempted to read or write protected memory. This is often an indication that 
other memory is corrupt."

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by anders.m...@gmail.com on 23 Jul 2012 at 9:08

GoogleCodeExporter commented 9 years ago
I made a feature branch so that you can see the code

https://github.com/AndersMalmgren/FreePIE/commit/8700a2d947474a1aeab818b1187ccdb
fd7499fd4

You can also download and test the feature branch

https://github.com/AndersMalmgren/FreePIE/tree/detect-and-recover-infite-lua-loo
p

(Note that the branch name is missspelled :D)

Original comment by anders.m...@gmail.com on 23 Jul 2012 at 9:22