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

SIGSTKSZ is -1 in glibc 2.34 #4

Open
heiner opened this issue Aug 6, 2022 · 0 comments
Open

SIGSTKSZ is -1 in glibc 2.34 #4

heiner opened this issue Aug 6, 2022 · 0 comments

Comments

@heiner
Copy link

heiner commented Aug 6, 2022

glibc 2.34 sets the SIGSTKSZ constant to -1 when _GNU_SOURCE or _SC_SIGSTKSZ_SOURCE are defined: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=6c57d320484988e87e446e2e60ce42816bf51d53

This caused a number of issues in various projects, e.g., vim/vim#7895. It also breaks the default stack size logic when using create_fcontext_stack(0). The suggested alternative is apparently sysconf(_SC_SIGSTKSZ), which has the downside of being GNU/Linux specific.

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

No branches or pull requests

1 participant