-
Notifications
You must be signed in to change notification settings - Fork 30k
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
PerformanceObserver 'gc' crash with multiple observers #39548
Labels
perf_hooks
Issues and PRs related to the implementation of the Performance Timing API.
Comments
legendecas
added
the
perf_hooks
Issues and PRs related to the implementation of the Performance Timing API.
label
Jul 27, 2021
Interestingly, it seems to only happen if all observers are disconnected. If multiple observers are created and disconnected while at least one is still observing, then there is no crash. |
Investigating! |
jasnell
added a commit
to jasnell/node
that referenced
this issue
Jul 27, 2021
Signed-off-by: James M Snell <jasnell@gmail.com> Fixes: nodejs#39548
jasnell
added a commit
to jasnell/node
that referenced
this issue
Jul 27, 2021
Signed-off-by: James M Snell <jasnell@gmail.com> Fixes: nodejs#39548
Fix in #39550 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
16.5.0
Platform
Darwin COMP-C02DC1F0ML87 19.6.0 Darwin Kernel Version 19.6.0: Tue Jun 22 19:49:55 PDT 2021; root:xnu-6153.141.35~1/RELEASE_X86_64 x86_64
Subsystem
perf_hooks
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Every time when multiple observers are used and disconnected. In the reproduction example this happens synchronously but in our actual code the observer is disconnected later on asynchronously and then a new observer is created, which happens every 10 seconds.
What is the expected behavior?
Multiple observers for the same type should work.
What do you see instead?
Additional information
The crash happens on both macOS and Linux, and on every version of Node since 16.1.0. From what I can tell, it was caused by #38414 since there is no crash in previous Node versions (tested
12.0.0 - 16.0.0
).The text was updated successfully, but these errors were encountered: