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 heartbeat pthread_create segmentation fault #142

Merged
merged 1 commit into from
Feb 4, 2014

Conversation

cdsousa
Copy link
Contributor

@cdsousa cdsousa commented Feb 4, 2014

In recent Julia builds (Version 0.3.0-prerelease+1379 Commit 00760bd*), at least in Arch Linux, IJulia kernel segfaults in the heartbeat pthread creation.

I found that moving the heartbeat_c cfunction object out of the start_heartbeat function solves the issue.

(Probably this is the issue also mentioned by @aelg in #138)

@aelg
Copy link

aelg commented Feb 4, 2014

Can confirm that this fixes the issue for me too. Why does it fix it? Is the problem that the heartbeat_c cfunction goes out of scope and is destroyed before being called by the new thread?

stevengj added a commit that referenced this pull request Feb 4, 2014
Fix heartbeat pthread_create segmentation fault
@stevengj stevengj merged commit 5a09e17 into JuliaLang:master Feb 4, 2014
@cdsousa cdsousa deleted the fixheartbeat branch February 7, 2014 03:19
@cdsousa
Copy link
Contributor Author

cdsousa commented Feb 7, 2014

It seems that this issue was due to my Arch linux system being using LLVM v3.4, which also caused other segfaults, see JuliaLang/julia#5696
cc @aelg

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.

3 participants