-
Notifications
You must be signed in to change notification settings - Fork 6
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
__gc not called on Redhat #1
Comments
This bug had nothing to do with lunar, or the build procedure. In fact, it's a bug in Lua 5.1.4 on Redhat that seems not to be reported. It can be reproduced easily in pure Lua, where an object's __gc metamethod is never called. This bug does not appear in Lua 5.2.0. |
The same bug appears on some Mac OS 10.6 systems (GHL's laptop). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Memory leaks are reported by valgrind on Redhat, having the same size as allocated arrays. It turns out that the __gc metamethod is not being called. Compile flags are:
export CFLAGS = -Wall -O2 -fPIC
export SO = $(CC) -O -shared
The text was updated successfully, but these errors were encountered: