Skip to content

Segfault in 16.3.0 with promise hooks #39019

Closed
@stephenh

Description

@stephenh
  • Version: v16.3.0
  • Platform:Linux sh12 5.11.0-18-generic #19-Ubuntu SMP Fri May 7 14:22:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • Subsystem: async_hooks

What steps will reproduce the bug?

I cannot reproduce it outside of our internal codebase yet.

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

It deterministically reproduces in the test I am running, but I cannot reproduce it outside of that yet

What do you see instead?

A seg fault:

   1   │ PID 457702 received SIGSEGV for address: 0x0
   2   │ /home/stephen/homebound/graphql-service/node_modules/segfault-handler/build/Release/segfault-handler.node(+0x3745)[0x7fde18334745]
   3   │ /lib/x86_64-linux-gnu/libpthread.so.0(+0x141f0)[0x7fde17f971f0]
   4   │ /home/stephen/.asdf/installs/nodejs/16.3.0/bin/node(_ZN2v87Context15SetPromiseHooksENS_5LocalINS_8FunctionEEES3_S3_S3_+0x17)[0xd0cfc7]
   5   │ /home/stephen/.asdf/installs/nodejs/16.3.0/bin/node[0xa61a68]
   6   │ /home/stephen/.asdf/installs/nodejs/16.3.0/bin/node[0xd655cb]
   7   │ /home/stephen/.asdf/installs/nodejs/16.3.0/bin/node[0xd66a6c]
   8   │ /home/stephen/.asdf/installs/nodejs/16.3.0/bin/node(_ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE+0x16)[0xd670e6]
   9   │ /home/stephen/.asdf/installs/nodejs/16.3.0/bin/node[0x16148d9]

Additional information

cc'ing @Qard because of the SetPromiseHooks in the above segfault.

Sorry I don't have any useful reproductions yet :-( will keep poking at it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    async_hooksIssues and PRs related to the async hooks subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions