Skip to content

bug: Always first check process.report.getReport #29

@gabyx

Description

@gabyx

Why is this a bug.

  • If we have no way to control the behavior of this library's fallback sequence etc, it might fail in envs, e.g. alpine linux (musl) with nix package manager which runs node (glibc, and pnpm also with glibc etc). This library then forcefully detects some /bin/ldd content which is from alpine (musl) which is a wrong result.

TL:DR:

  • IMO the only reliable way to first check the process.report.getReport for anything (the context is node and checking for an executable ldd is highly orthogonal).

  • Also making any fallback optional with env variable NODE_LOVELL_DETECT_LIBC_NO_FALLBACKS=true might be good.

Related:

nodejs/node#48204

I highly suggest to change that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions