-
Notifications
You must be signed in to change notification settings - Fork 54
Fix: unaligned stack pointer can cause crashes in jump_fcontext() #385
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
Open
zhangh43
wants to merge
15
commits into
main
Choose a base branch
from
overflow
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
e1e52ec
Increase coroutine stack size to 8MB
zhangh43 272a92d
Fix unaligned stack pointer can cause crashes in jump_fcontext()
zhangh43 aed3ee0
Debug jump_fcontext crash
xiexiaoy 60eba8c
fix the sp.size alignment as well
zhangh43 c994e74
update submodule
zhangh43 dcc7547
Fix dangling reference in coroutine resume functors
zhangh43 d675efa
Harden coroutine functors against SSM teardown races
zhangh43 f6c1d13
Fix coroutine yield capturing stack-local continuation
zhangh43 8011a5e
Add safety guards + invariants around coroutine yield/resume
zhangh43 c8ae4bb
Fix coroutine forced_unwind termination
zhangh43 3b25393
change new range fill factor
60140f2
Update data_substrate
githubzilla 09233cb
Revert "Update data_substrate"
zhangh43 3d34a65
Revert "Revert "Update data_substrate""
zhangh43 2696c5e
update submodule: adapt to boost::context asan position change
thweetkomputer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule data_substrate
updated
4 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: eloqdata/eloqdoc
Length of output: 13016
Document memory impact analysis and load testing for 8MB coroutine stack increase.
The 2.5x increase in coroutine stack size (3.2MB → 8MB) is implemented consistently across two critical code paths:
service_state_machine.handkill_sessions_local.cpp. Each mmap allocation of 8MB per connection introduces measurable memory overhead for deployments with thousands of concurrent connections.The code rationale (preventing stack overflow in deep recursion and large BSON processing) is documented in both locations, but the following verification gaps remain:
These should be addressed in deployment documentation or as follow-up work, particularly for high-connection-count deployments where memory efficiency is critical.
🤖 Prompt for AI Agents