-
Notifications
You must be signed in to change notification settings - Fork 74
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
Don't free() the handle after dlclose #140
Conversation
Of the possible code paths, there was only one that freed the handle after calling dlclose. This change removes that free() statement, fixing an issue that was recently brought to light by JuliaLang/julia#10808.
Don't free() the handle after dlclose
Should this be conditional on VERSION? |
Sure, this introduces a (very small) memory leak for old |
What would people think of doing a BinDeps release now that this change is merged? Right now the released version of BinDeps doesn't jive with julia |
Are we positive this is the right fix, before or after JuliaLang/julia#10832 or equivalent gets merged? I'm very very hesitant to change any behavior of BinDeps on release Julia, since it's critical infrastructure, either directly or indirectly, for such a large portion of packages. If BinDeps was compensating for a memory leak in base and we're not going to backport the change to base (and if we did, we'd have to bump REQUIRE here to reflect that minimum version of Julia), I'd rather leave that in place. |
There were two symptoms in BinDeps that resulted from JuliaLang/julia#10808 being merged. The first resulted from JuliaLang/julia@11a0f43, the fix for which is in JuliaLang/julia#10832 (still waiting to be merged, though I am sure this is the correct fix). The other resulted from JuliaLang/julia@fcf4a47, which is fixed in this pull request. Yes, BinDeps was compensating for a memory leak in base, though not fully -- there are in fact two other calls to |
Is this memory leak just applicable during |
I agree it's not good to leave this broken on nightly for too long. If the memory leak on 0.3 is small and only occurs during |
I vote to add a conditional for 0.3 only (don't worry about 0.4-dev sub-versions), and then tag BinDeps. |
I concur with @ihnorton. |
That works for me. |
Done. |
didn't help for long, tuple changes caused more breakage |
Of the possible code paths, there was only one that freed the
handle
after callingdlclose
. This change removes thatfree()
statement, fixing an issue that was recently brought to light by JuliaLang/julia#10808.