Skip to content

Segmentation faults with LLVM 3.4 #5696

cdsousa opened this Issue Feb 6, 2014 · 5 comments

3 participants

cdsousa commented Feb 6, 2014

While LLVM 3.4 support will probably be skiped (#4597 (comment)), I'm droping here some backtraces I obtained when I was inadvertently using Julia with my system LLVM v3.4.

Short story: I got this segfaults when doing Pkg.update():

Long story:!topic/julia-users/5zjoL6nMHyE

Isaiah asked me to open this issue. I'm available for more tests if it's worth.

The Julia Language member
Keno commented Feb 6, 2014

Unfortunately I suspect these are due to memory corruption. I've been trying to track these down, but no luck so far.

The Julia Language member

Thanks; it's always good to capture this stuff.

cdsousa commented Feb 7, 2014

I'm not sure if this can be useful, but let me add that when I was unawarely using LLVM v3.4, I'd tackled a segmentation fault in IJulia for which I did a PR: JuliaLang/IJulia.jl#142

It seems that the segfault was due to a cfunction object, which was being passed to a pthread_create, going out of scope too soon.

I can confirm that segmentation fault occurred solely due to LLVM v3.4, since after the change back to v3.3 IJulia works without the patch.

The Julia Language member
Keno commented Feb 7, 2014

Thanks for that info, that might actually be extremely helpful.

@cdsousa cdsousa referenced this issue in JuliaLang/IJulia.jl Feb 7, 2014

Fix heartbeat pthread_create segmentation fault #142

The Julia Language member
Keno commented Feb 8, 2014

Fixed by 5c1b5ad

@Keno Keno closed this Feb 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.