Skip to content

Segmentation fault: 11 on macOS #44219

Closed as not planned
Closed as not planned
@adlerfaulkner

Description

@adlerfaulkner

Version

v16.16.0

Platform

Locally:
macOS Monterey 12.4
Darwin 20.6.0

Reproduced in a github workflow:
macOS Big Sur 11
Darwin 20.?

Subsystem

No response

What steps will reproduce the bug?

I have a node application which uses the Components.js dependency injection framework. As soon as the call is made to instantiate my application (like this) I get a Segmentation fault: 11.

Full trace using the Segfault handler package:

PID 5340 received SIGSEGV for address: 0x18
0   segfault-handler.node               0x0000000106e3c0ba _ZL16segfault_handleriP9__siginfoPv + 298
1   libsystem_platform.dylib            0x00007ff8027e4dfd _sigtramp + 29
2   node                                0x00000001049ab124 _ZN2v88internal7SlotSet6InsertILNS0_10AccessModeE1EEEvm + 60
3   node                                0x0000000104955022 _ZN2v88internal7Isolate38RunHostImportModuleDynamicallyCallbackENS0_6HandleINS0_6ScriptEEENS2_INS0_6ObjectEEENS0_11MaybeHandleIS5_EE + 218
4   node                                0x0000000104c19ecf _ZN2v88internal25Runtime_DynamicImportCallEiPmPNS0_7IsolateE + 314
5   node                                0x0000000104eac5b4 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvInRegister_NoBuiltinExit + 52
6   node                                0x0000000104f3ae8e Builtins_CallRuntimeHandler + 78
7   node                                0x0000000104e3eeca Builtins_InterpreterEntryTrampoline + 202

I am also getting Segmentation fault: 11 when running a script with node ./dist/index.js that does not use Components.js.

I'm not sure what I should do to debug further.

This seems related to: #25424, #44211, or #43205?

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

Sometimes if I restart my computer it works.

What is the expected behavior?

No segmentation fault and the application doesn't crash

What do you see instead?

The application crashes

Additional information

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