matrix-org / matrix-org/matrix-bifrost

Running test.js results in segmentation fault

Open
#300 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

S-Tolerable T-Defect
Dominant language
TypeScript
Stars
187
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
When trying to run the test.js code, it doesn't create the eventloop for setInterval and after functions returned the results, console gives "zsh: segmentation fault". Even without setInterval still gives me the same error afterwards.

To Reproduce
Steps to reproduce the behavior:

  1. Build the module using the command "node-gyp configure & build"
  2. importing the module from lib folder
  3. running the code with "node test.js"
  4. See error

Expected behavior
Eventloop starting and setInterval function working and not resulting in segmentation fault
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Artix Linux (openrc)
  • Browser Brave
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by building with "node-gyp configure & build" and running "node test.js". Start with test.js and the imported module in the lib folder, then verify that the event loop and setInterval run without producing a segmentation fault.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.