Skip to content

fix: double RUST_MIN_STACK to resolve stack overflow #19695

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

Merged
merged 7 commits into from
Dec 10, 2024

Conversation

tabVersion
Copy link
Contributor

@tabVersion tabVersion commented Dec 6, 2024

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

when running SQL planner test, we meet a stack overflow panic https://buildkite.com/risingwavelabs/pull-request/builds/63818#0193962f-47f4-484f-bd3e-21aa7aa25ae5
and same observation by @Li0k

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • I have added test labels as necessary. See details.
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
  • All checks passed in ./risedev check (or alias, ./risedev c)
  • My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)
  • My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note

If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

@github-actions github-actions bot added the type/fix Type: Bug fix. Only for pull requests. label Dec 6, 2024
Copy link
Contributor

@Li0k Li0k left a comment

Choose a reason for hiding this comment

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

LGTM

@Li0k
Copy link
Contributor

Li0k commented Dec 6, 2024

qq: Can we also change the risedev test command with RUST_MIN_STACK ?

Makefile.toml Outdated
Comment on lines 31 to 32
set_env RW_TEMP_SECRET_FILE_DIR "${PREFIX_SECRET}"
set_env RUST_MIN_STACK 8388608
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Li0k risedev command utilizes the Makefile here. So it has been applied to risedev test

Copy link
Member

Choose a reason for hiding this comment

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

I suggest not touching this, or at least only set if it's unset.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But running risedev test locally also fails. I am afraid we cannot accept this.

Copy link
Member

Choose a reason for hiding this comment

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

I am afraid we cannot accept this.

Yeah, so I suggest #19695 (review) 🥺

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I am checking the PR you mentioned.

Signed-off-by: tabVersion <[email protected]>
Copy link
Member

@BugenZhao BugenZhao left a comment

Choose a reason for hiding this comment

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

I think we'd better investigate which phase of planning requires the most stack space (and whether or why it grows recently), then adopt #16279 to enable stack growing there.

@tabVersion
Copy link
Contributor Author

Setting RUST_MIN_STACK to 8388608 (8MB) just when running risedev test and UT section in CI. Leave RUST_MIN_STACK to 4194304 ib other cases.

@tabVersion tabVersion requested review from Li0k and BugenZhao December 9, 2024 10:05
tabversion and others added 2 commits December 9, 2024 18:15
@graphite-app graphite-app bot requested a review from a team December 9, 2024 11:01
Co-authored-by: stonepage <[email protected]>
@tabVersion tabVersion enabled auto-merge December 10, 2024 05:51
@tabVersion tabVersion added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit a2e53a5 Dec 10, 2024
28 of 29 checks passed
@tabVersion tabVersion deleted the tab/increase-RUST_MIN_STACK branch December 10, 2024 07:23
xxchan added a commit that referenced this pull request Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/fix Type: Bug fix. Only for pull requests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants