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

Set dynamic libraries stack limit to match pthreads' stack limit #13332

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jprendes
Copy link
Contributor

Side modules are initialized with the main thread's stack limits. However, those limits are never updated in establishStackSpace to match the thread's stack limit when running with pthread.

This makes side modules running in pthreads and using stack space to incorrectly abort due stack overflow when compiling with STACK_OVERFLOW_CHECK.

Fixes #13327

@jprendes jprendes marked this pull request as ready for review January 28, 2021 23:43
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Looks right to me, but we should check with @sbc100 - @sbc100 this is on pthreads+dynamic linking which you are working on.

Base automatically changed from master to main March 8, 2021 23:49
@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant.

@stale stale bot added the wontfix label Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Side module on a pthread requiring any amount of stack aborts if built with STACK_OVERFLOW_CHECK
2 participants