Skip to content
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

Open
jzrake opened this issue Jan 29, 2012 · 2 comments
Open

__gc not called on Redhat #1

jzrake opened this issue Jan 29, 2012 · 2 comments

Comments

@jzrake
Copy link
Owner

jzrake commented Jan 29, 2012

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

@jzrake jzrake closed this as completed Jan 29, 2012
@jzrake
Copy link
Owner Author

jzrake commented Jan 29, 2012

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.

@jzrake jzrake reopened this Jan 30, 2012
@jzrake
Copy link
Owner Author

jzrake commented Jan 30, 2012

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant