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

Merge ocaml backported bugfixes into 4.12.1+esy #60

Merged
merged 3 commits into from
Feb 11, 2022

Conversation

danvonk
Copy link

@danvonk danvonk commented Jan 24, 2022

Projects such as revery won't build on the latest distributions e.g. Ubuntu 21.10 and Fedora 35 due to an ocaml bug with the latest glibc (ocaml#10250). This PR merges ocaml upstream (which backported a fix) back into 4.12.1+esy.

xavierleroy and others added 3 commits January 20, 2022 17:41
In Glibc 2.34 and later, SIGSTKSZ may not be a compile-time constant.
It is no longer possible to statically allocate the alternate signal
stack for the main thread, as we've been doing for the last 25 years.

This commit implements dynamic allocation of the alternate signal stack
even for the main thread.  It reuses the code already in place to allocate
the alternate signal stack for other threads.

The alternate signal stack is freed when the main OCaml code / an OCaml thread
stops.

(partial back-port of PR#10266 and PR#10726)
Updated separately to allow the previous patch to be used for multiple
releases.
@ManasJayanth ManasJayanth merged commit 2640e06 into esy-ocaml:4.12.1+esy Feb 11, 2022
@ManasJayanth
Copy link
Collaborator

Thank you!

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.

None yet

3 participants