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

πŸ› Bug Report β€” V8 fatal error when debugging #3248

Open
brettwillis opened this issue Dec 16, 2024 · 1 comment
Open

πŸ› Bug Report β€” V8 fatal error when debugging #3248

brettwillis opened this issue Dec 16, 2024 · 1 comment

Comments

@brettwillis
Copy link

brettwillis commented Dec 16, 2024

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?

@ayoubqrt
Copy link

ayoubqrt commented Jan 22, 2025

I have the same problem with wrangler 3.102.0, I think it's a regression I didn't had such a problem with wrangler 3.65.1

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 (for const var in var2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants