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

Fix #10829, freeing of uninitialized pointer #10832

Merged
merged 1 commit into from
Apr 17, 2015

Conversation

garrison
Copy link
Member

The change in 11a0f43 made the assumption that handle->errmsg would be initialized to NUL. This is true within julia itself, but BinDeps violates this assumption. The current commit changes things to fix the memory leak at its actual source, in jl_load_dynamic_library_.

The change in 11a0f43 made the assumption that `handle->errmsg`
would be initialized to NUL.  This is true within julia itself, but
BinDeps violates this assumption.  The current commit changes things
to fix the memory leak at its actual source, in `jl_load_dynamic_library_`.
@garrison garrison changed the title Fix #10829 Fix #10829, freeing of uninitialized pointer Apr 15, 2015
@jiahao
Copy link
Member

jiahao commented Apr 16, 2015

This did not work for me on OSX 10.10.3

julia> Pkg.build("AudioIO")
...

julia(59826,0x7fff7d0f6300) malloc: *** error for object 0x7ffceb882ad0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

signal (6): Abort trap: 6
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
[1]    59826 abort      julia

@garrison
Copy link
Member Author

Are you using BinDeps master?

@jiahao
Copy link
Member

jiahao commented Apr 16, 2015

I wasn't on the latest master. Just pulled and it works now.

@ihnorton
Copy link
Member

LGTM, but I'd like a +1 from someone else.

@rened
Copy link
Member

rened commented Apr 16, 2015

Fixes #10829 for me on linux when using BinDeps master. (update: OSX as well)

ihnorton added a commit that referenced this pull request Apr 17, 2015
Fix #10829, freeing of uninitialized pointer
@ihnorton ihnorton merged commit 3cda7a5 into JuliaLang:master Apr 17, 2015
@ihnorton
Copy link
Member

Thanks @garrison.

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

Successfully merging this pull request may close these issues.

4 participants