JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.43k stars 5.46k forks source link

dlopen fails with segmentation fault #838

Closed pragmascript closed 12 years ago

pragmascript commented 12 years ago

i'm using julia version 0.0.0+86002406.r738c Commit 738cda1a57 (2012-05-14 15:12:32).

i tried to execute the line libc = dlopen("libc") from the julia manual inside the repl.

the result is a Segmentation fault (core dumped)

JeffBezanson commented 12 years ago

dlopen is broken. I think the code might be confusing handle with handle->handle in some places.

Keno commented 12 years ago

Should be fixed on master as of d632134be777dabc43589560e8f005f3e21b1f68. Feel free to reopen this issue if the issue persists.

pragmascript commented 12 years ago

The issue does still persist. I'm using ubuntu 12.04 64bit. Your commit seems to be addressing win32.

Keno commented 12 years ago

Ok. Fixed on master and verified on Ubuntu. Note, that you will not be able to load libc using dlopen as it is a linker script on Ubuntu. You'll have to use openlib from extras/openlib.jl instead. (This is still experimental though)