cloudflare / cloudflare/workerd
🐛 Bug Report — V8 fatal error when debugging
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
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:
```
503
Your worker restarted mid-request. Please try sending the request again. Only GET or HEAD requests are retried automatically.
```
And the following in the logs (no stack trace):
```
✘ [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_.
*** Received signal #6: Abort trap: 6
stack:
```
Can you tell me what other information you need?
Contributor guide
Assessment
This issue has not been assessed yet.