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

fix: should report errors if stats was being accessed after the compiler was closed #8561

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

h-a-n-a
Copy link
Collaborator

@h-a-n-a h-a-n-a commented Nov 28, 2024

Summary

Fixed an issue where the compiler/compilation was accessed after it was closed.

Otherwise, it might report segmentation faults.

EDIT: use process.nextTick to postpone cleanups to the next tick to support accessing stats within the same tick.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack. labels Nov 28, 2024
Copy link

netlify bot commented Nov 28, 2024

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 164686a
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/67484e47a66b61000846b8b1

@h-a-n-a h-a-n-a marked this pull request as ready for review November 28, 2024 09:26
@h-a-n-a h-a-n-a force-pushed the stats-guard branch 2 times, most recently from 8cc5923 to 2f51484 Compare November 28, 2024 09:46
SyMind
SyMind previously approved these changes Nov 28, 2024
@h-a-n-a h-a-n-a merged commit d249e62 into main Nov 28, 2024
33 checks passed
@h-a-n-a h-a-n-a deleted the stats-guard branch November 28, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants