Skip to content

Conversation

@nevkontakte
Copy link
Member

Setting stack size exactly to the system limit will cause node to
segfault before it has a chance to notice that it ran out of space. In
my experiemnts values closer than 64 KiB may still cause a segfault from
time to time.

I also changed the multiplier to 1024, since that's what v8 actually
uses for the flag value.

Fixes #470.

@nevkontakte nevkontakte requested a review from flimzy June 8, 2022 20:30
@nevkontakte nevkontakte enabled auto-merge June 8, 2022 20:32
Setting stack size exactly to the system limit will cause node to
segfault before it has a chance to notice that it ran out of space. In
my experiemnts values closer than 64 KiB may still cause a segfault from
time to time.

I also changed the multiplier to 1024, since that's what v8 actually
uses for the flag value.
@nevkontakte nevkontakte merged commit f2ebe46 into gopherjs:master Jun 13, 2022
@nevkontakte nevkontakte deleted the issue470 branch June 13, 2022 21:14
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.

"Maximum call stack size exceeded" errors get swallowed

2 participants