-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Several Undefined Behaviours and Stack Use After Scope reports when running tests #296
Comments
Interesting. So it's MacOS. It's Lua which allocates memory for userdata, so actually LuaBridge has no control over the initial alignment. Also I can see a lot of tests are failed. |
Maybe this will help: http://lua-users.org/lists/lua-l/2019-07/msg00197.html |
Yes the problem is a misalignment of the memory returned by lua (newuserdata) that is used as is to do placement new luabridge classes (without taking into account class alignment), no matter which lua version you chose. |
@kunitoki Are the tests failed on MacOS without the ASAN? |
The tests are passing but if i will enable ASAN and UBSAN in an application using luabridge, it's annoying as it creates lot of noise when one should be interested in reports coming from the application itself. |
Running the tests with ASAN and UBSAN triggers tons of reports.
See https://pastebin.com/VDygjbSv (was too big to paste here).
The text was updated successfully, but these errors were encountered: