1 / 5 · Welcome

Every problem is a question the world is asking.

Zetema (ζήτημα, Greek for “a thing sought”) gathers real problems people want solved, from public pages around the world. Builders find something worth building, and anyone living with a problem can share it, no coding needed.

← Back to the problem

The builder's path

Six steps from this problem to its solution.

For: Vitest and bytenode users hit segfaults when running code through vm modules.

“The unexamined life is not worth living.”

ὁ δὲ ἀνεξέταστος βίος οὐ βιωτὸς ἀνθρώπῳ

Socrates · Plato, Apology 38a

Written for this problem

The path

  1. Ask the people who live it

    Start with developers using Vitest or bytenode with Node.js vm modules. The sources leave these open:

    • How often do these segfaults happen outside debug mode?
    • Do the segfaults still occur on current Node.js versions?
  2. Talk to Node.js project (nodejs/node issue tracker)

    Maintainers can confirm whether the root cause is the V8 bug and which versions are affected.

    • Vitest maintainers (vitest-dev): They can say whether Vitest's own vm usage is involved and what workaround they would accept.
  3. Get the data

    Start from what is already published.

    • Node.js vm documentation ↗ · Official reference for vm.runInThisContext and related calls, useful for checking documented behaviour against the crash.
    • Node.js releases ↗ · Release schedule and support status for Node.js versions, needed to test whether the segfault still occurs on current versions.
    • Vitest GitHub issues ↗ · Where Vitest users report segfaults and workarounds; search here for the vm.runInThisContext reports before opening a new one.
  4. Prototype: Reproduction matrix for the segfault

    Build a small public repository that runs vm.runInThisContext under Vitest and bytenode across Node.js versions, with and without the VSCode debugger, to record when the crash happens. The results would answer the open questions about debug mode and current Node.js releases.

  5. Prototype: Workaround wrapper for bytenode and Vitest users

    Write a small helper that runs vm calls in a child process or worker thread so a crash is isolated and reported instead of killing the test run. Test it against the reproduction matrix before offering it to users.

  6. Test it with the people affected

    It is solved when: vm.runInThisContext and related calls no longer crash when used by Vitest or bytenode.

Routes to a solution

Six ways to take this forward

Each route is a different kind of journey, with real people and organisations to contact at each step, starting with those in every country.

  1. Step 1

    Build in the open

    Publish the code and invite contributors from the community.

  2. Step 2

    Fund the maintainers

    Sponsors, collectives and open source grants.

  3. Step 3

    Get it adopted

    Civic tech groups and public bodies take it up.

What this problem needs

Ideas, sources and tools for this problem, from first interviews to funding.

  • Automation
  • Support and funding

Ideas to explore

  • Idea 1Reproduction matrix for the segfaultBuild a small public repository that runs vm.runInThisContext under Vitest and bytenode across Node.js versions, with and without the VSCode debugger, to record when the crash happens. The results would answer the open questions about debug mode and current Node.js releases.
  • Idea 2Workaround wrapper for bytenode and Vitest usersWrite a small helper that runs vm calls in a child process or worker thread so a crash is isolated and reported instead of killing the test run. Test it against the reproduction matrix before offering it to users.

Specific to this problem

  • Node.js vm documentation ↗

    Official reference for vm.runInThisContext and related calls, useful for checking documented behaviour against the crash.

  • Node.js releases ↗

    Release schedule and support status for Node.js versions, needed to test whether the segfault still occurs on current versions.

  • Vitest GitHub issues ↗

    Where Vitest users report segfaults and workarounds; search here for the vm.runInThisContext reports before opening a new one.

Talk to first

Starter prompt

Built from this problem's brief. Paste it into Claude or any AI assistant.

Help me design and build a first working prototype for this problem in Anywhere.

Problem: Vitest and bytenode users hit segfaults when running code through vm modules.
Who it hurts: Developers using Vitest or bytenode with Node.js vm modules
The moment it hurts: Vitest segfaults on vm.runInThisContext when run in debug mode in VSCode.
Why it is still unsolved: The root cause is a V8 bug that the source says is still being worked on.
What solved looks like: vm.runInThisContext and related calls no longer crash when used by Vitest or bytenode.
Where: Anywhere

First, list what you would need to learn from the people affected before building, as interview questions.
Then propose the simplest version that would help, the screens or messages it needs, and the data it would use.
Keep it cheap to run, accessible, and respectful of people's privacy. Flag anything you are unsure about instead of guessing.
  1. Understand it

    Talk to the people who live it before you build.

    “The true creator is necessity, which is the mother of our invention.”
    Plato · Republic II, 369c (tr. B. Jowett)
  2. Prototype with AI

    Get a working version in front of people fast.

    Using AI is not cheating. Every tool carries the work of the people who made it, and using it well is how knowledge has always moved forward. The thinking, the care for the people who live the problem, and the judgement are still yours.

    “The Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves.”
    Ada Lovelace · Notes on Menabrea's Sketch of the Analytical Engine, Note A (1843)
  3. Find the data

    Open data that fits this problem.

    “The first principle is that you must not fool yourself, and you are the easiest person to fool.”
    Richard Feynman · Cargo Cult Science, Caltech commencement address (1974)
  4. Build it

    Tools matched to what this problem needs.

    “Life is short, and Art long; the crisis fleeting; experience perilous, and decision difficult.”

    ὁ βίος βραχύς, ἡ δὲ τέχνη μακρή

    Hippocrates · Aphorisms 1.1 (tr. F. Adams)
  5. Launch and get support

    Ship it responsibly, and find help and funding.

    “Speak the truth. Do what is right.”

    सत्यं वद। धर्मं चर।

    satyaṃ vada, dharmaṃ cara

    Taittirīya Upaniṣad · 1.11.1

Kit generated with claude-haiku-5-5; every link was checked when it was made. Links go to each provider's own site. Zetema is not paid for any listing.

Take it to someone

Ready to send, with the sources in place

Built from this problem's evidence. Fill in the [brackets], make it yours, and send it. Read every line first: it goes out under your name.

Ask someone who knows this problem for 20 minutes.