You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to access Async local storage state when running code in debug mode #44415
Darwin xxxxx.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:29 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T8101 arm64
Subsystem
No response
What steps will reproduce the bug?
The issue has been extracted to this repo https://github.com/thetutlage/node-als-debugging that you can run without any dependencies. The README covers the steps to follow. However, I am happy to provide more info (if needed)
How often does it reproduce? Is there a required condition?
You can reproduce it every time. The only given condition is to run the code in debug mode with --inspect flag.
What is the expected behavior?
The Async local storage should work consistently regardless of it is in debug mode or not
What do you see instead?
Getting undefined when trying to access the ALS store while running the code in debug mode with --inspect flag.
changed the title [-]Unable to access Async local storage store when running code in debug mode[/-][+]Unable to access Async local storage state when running code in debug mode[/+]on Aug 27, 2022
Activity
[-]Unable to access Async local storage store when running code in debug mode[/-][+]Unable to access Async local storage state when running code in debug mode[/+]tonivj5 commentedon Aug 27, 2022
I think this is the same issue I reported some time ago #43148. The bug was introduced with 18.0.0
@Qard pushed a patch to V8 some time ago, so it should be fixed, I suppose, within a reasonably short time 👍
Qard commentedon Aug 28, 2022
Yep. A fix has landed in V8 now. Just need to find some time to do the Node.js backport as it doesn't land cleanly with the backport tool.
deps: V8: backport ff8d67c88449
targos commentedon Aug 28, 2022
Backport: #44423
deps: V8: backport ff8d67c88449
deps: V8: backport ff8d67c88449
deps: V8: backport ff8d67c88449
deps: V8: backport ff8d67c88449