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

Plugin: Reset stack limit at draining time #98

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

awelzel
Copy link
Collaborator

@awelzel awelzel commented Feb 12, 2025

Spicy is using alternative stacks to execute fibres and may drain
and execute events on these alternative stacks. E.g., this happens
during DataIn() and subsequent GetFileID() calls.
This confuses V8's own stack limit checking, reporting that the call
stack was exceeded.

Reset the stack limit whenever events are drained, or the IO sources
Process() method is called.

This was triggered when implementing file_state_remove() with the
spicy-zip analyzer enabled and analyzing a ZIP file.

@awelzel awelzel requested a review from bbannier February 12, 2025 01:37
@awelzel awelzel force-pushed the topic/awelzel/set-stack-limit-at-drain-time branch from 5fd25e3 to 09e984e Compare February 12, 2025 07:13
@awelzel awelzel changed the title Plugin: Reset stack limit at draining time Reset stack limit at draining time Feb 12, 2025
@awelzel awelzel changed the title Reset stack limit at draining time Plugin: Reset stack limit at draining time Feb 12, 2025
Spicy is using alternative stacks to execute fibres and may drain
and execute events on these alternative stacks. E.g., this happens
during DataIn() and subsequent GetFileID() calls.
This confuses V8's own stack limit checking, reporting that the call
stack was exceeded.

Reset the stack limit whenever events are drained, or the IO sources
Process() method is called.

This was triggered when implementing file_state_remove() with the
spicy-zip analyzer enabled and analyzing a ZIP file.
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.

1 participant