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

DWARF: Disable GC around dl_iterate_phdr in freebsd #10259

Merged
merged 1 commit into from
Jan 18, 2021

Conversation

bcardiff
Copy link
Member

Fixes #10084. Prevents deadlock as shown in #10084 (comment)

I don't know if it's a good idea to disable it in every platform or in every bsd platform.

@asterite
Copy link
Member

What about #10084 (comment)?

@bcardiff
Copy link
Member Author

I think that would require iterating the structure twice, to count the required memory. Disabling the GC seems a less error prone approach to me.

Copy link
Member

@straight-shoota straight-shoota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a TODO comment? This is merely a workaround and we should keep looking for a proper fix with LLVM probably, right?

@bcardiff
Copy link
Member Author

@straight-shoota mmm, no. There is no llvm issue here. We are preventing a deadlock in freebsd.

@straight-shoota straight-shoota added this to the 0.36.0 milestone Jan 18, 2021
@straight-shoota
Copy link
Member

straight-shoota commented Jan 18, 2021

Okay, if that's all. Sry, I couldn't look into it more closely, just rememberd your initial hunch it might be caused by LLVM.

@bcardiff bcardiff merged commit ef93a80 into crystal-lang:master Jan 18, 2021
@bcardiff bcardiff deleted the dwarf-freebsd-lock branch January 19, 2021 19:48
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Feb 12, 2021
ChangeLog: https://github.com/crystal-lang/crystal/blob/0.36.1/CHANGELOG.md

Should fix this issue: crystal-lang/crystal#10259

PR:	253111
Submitted by:	rlwestlund@gmail.com
Approved by:	greg@unrelenting.technology (maintainer)
MFH:	2021Q1 (runtime fix)


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@565009 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Feb 12, 2021
ChangeLog: https://github.com/crystal-lang/crystal/blob/0.36.1/CHANGELOG.md

Should fix this issue: crystal-lang/crystal#10259

PR:	253111
Submitted by:	rlwestlund@gmail.com
Approved by:	greg@unrelenting.technology (maintainer)
MFH:	2021Q1 (runtime fix)
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Feb 12, 2021
lang/crystal: Update to 0.36.1

ChangeLog: https://github.com/crystal-lang/crystal/blob/0.36.1/CHANGELOG.md

Should fix this issue: crystal-lang/crystal#10259

PR:	253111
Submitted by:	rlwestlund@gmail.com
Approved by:	greg@unrelenting.technology (maintainer)
Jehops pushed a commit to Jehops/freebsd-ports-legacy that referenced this pull request Feb 12, 2021
ChangeLog: https://github.com/crystal-lang/crystal/blob/0.36.1/CHANGELOG.md

Should fix this issue: crystal-lang/crystal#10259

PR:	253111
Submitted by:	rlwestlund@gmail.com
Approved by:	greg@unrelenting.technology (maintainer)
MFH:	2021Q1 (runtime fix)


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@565009 35697150-7ecd-e111-bb59-0022644237b5
dch pushed a commit to skunkwerks/ports that referenced this pull request Feb 14, 2021
ChangeLog: https://github.com/crystal-lang/crystal/blob/0.36.1/CHANGELOG.md

Should fix this issue: crystal-lang/crystal#10259

PR:	253111
Submitted by:	rlwestlund@gmail.com
Approved by:	greg@unrelenting.technology (maintainer)
MFH:	2021Q1 (runtime fix)
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Apr 1, 2021
lang/crystal: Update to 0.36.1

ChangeLog: https://github.com/crystal-lang/crystal/blob/0.36.1/CHANGELOG.md

Should fix this issue: crystal-lang/crystal#10259

PR:	253111
Submitted by:	rlwestlund@gmail.com
Approved by:	greg@unrelenting.technology (maintainer)
svmhdvn pushed a commit to svmhdvn/freebsd-ports that referenced this pull request Jan 10, 2024
ChangeLog: https://github.com/crystal-lang/crystal/blob/0.36.1/CHANGELOG.md

Should fix this issue: crystal-lang/crystal#10259

PR:	253111
Submitted by:	rlwestlund@gmail.com
Approved by:	greg@unrelenting.technology (maintainer)
MFH:	2021Q1 (runtime fix)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception hangs process on FreeBSD
3 participants