Skip to content

Segmentation fault using wildcard in ignore option on Node.js 22.7.0 #184

@mtsmfm

Description

@mtsmfm

Description

ref: #170 (comment)

The following code causes segmentation fault

import watcher from "@parcel/watcher";

watcher.subscribe(
  process.cwd(),
  () => {
    console.log("src changed");
  },
  { ignore: [".git/*"] }
);

Steps to reproduce

  1. Clone https://github.com/mtsmfm/parcel-watcher-segv
  2. npm install
  3. node index.mjs

Actual result

$ node -v
v22.7.0

$ node index.mjs
[1]    2710 segmentation fault  node index.mjs

Expectation

node index.mjs keeps subscribing current dir

Other info

I can reproduce this issue with v2.4.2-alpha.0

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