-
Notifications
You must be signed in to change notification settings - Fork 339
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
π Bug Report β V8 fatal error when debugging #3248
Comments
I have the same problem with wrangler To give more context, I'm on MacOS 15.2 and if I understand good, the problem seems to appear when there is a breakpoint in a for of loop |
Dito, Windows11, wrangler 3.107.3 I was trying to iterate over an empty array, this fixed the problem initially:
However, as soon as the array has a length the error reappears even for
I also tried using a key iterator approach rather than producting an entries array. Same issue. There seems to be something wrong with nested obects create with JSON.parse. Worse, the error is completely silent when not debugging, i.e. I just get empty object back becuase the worker crashes without completely shutting down.. Finally I even tried this directly
It crashes! tried rolling back to 3.94.0 .. same issue I suppose the good news is, I was able to debig my code without the debugger, so at least my app works. Below is the error: workerd/jsg/setup.c++:38: fatal: V8 fatal error; location = :0; message = Check failed: needs_context && current_scope_ == closure_scope_ && current_scope_->is_function_scope() && !function_.is_null() implies function_->context() != *context_. In case it is on any assistaance this is the JSON object retrieved by the first fetch:
|
When developing a worker locally, I've started encountering fatal errors that happen only when a debugger is attached. There are certain points in the JS code where the debugger cannot step over without triggering the fatal error. When the debugger is not attached, execution proceeds fine.
Wrangler version 3.95.0
The worker responds with:
And the following in the logs (no stack trace):
Can you tell me what other information you need?
The text was updated successfully, but these errors were encountered: