Skip to content

FATAL ERROR: v8::FromJust Maybe value is Nothing #56020

@rozzilla

Description

@rozzilla

Version

v20.18.0

Platform

Darwin N4V4PGFGPT 23.6.0 Darwin Kernel Version 23.6.0: Wed Jul 31 20:53:05 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_ARM64_T8112 arm64

Subsystem

No response

What steps will reproduce the bug?

Checkout the branch chore/node/v8-fatal-error-reproduction of this repo. Then:

  • npm run setup
  • npm run start

You'll get:

[14:28:51.817] INFO (31321): Starting the service "bug"...
FATAL ERROR: v8::FromJust Maybe value is Nothing
----- Native stack trace -----

 1: 0x104427d74 node::OnFatalError(char const*, char const*) ...

How often does it reproduce? Is there a required condition?

Always.

If you add a comment on the 2nd call to pino (line 6), it doesn't occur.

What is the expected behavior? Why is that the expected behavior?

Node should handle the shutdown differently, instead of throwing.

What do you see instead?

A stack trace of the error from v8

Additional information

I'm available to provide further information if this can help to fix the bug 😊

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions