Skip to content

Sementation fault when running @swc-node/register/esm on GNU/Linux (Alpine Linux not affected) #920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
joshunrau opened this issue Apr 1, 2025 · 0 comments

Comments

@joshunrau
Copy link

See reproduction here: https://github.com/joshunrau/segfault

package.json

{
    "name": "app",
    "type": "module",
    "dependencies": {
        "@swc-node/register": "^1.10.10",
        "@swc/core": "^1.11.16"
    },
    "devDependencies": {
        "@types/node": "22.x"
    }
}

index.js

import * as module from 'node:module';

module.register('@swc-node/register/esm', import.meta.url);
dnpws15% node index.js
zsh: segmentation fault (core dumped)  node index.js
dnpws15% uname -a           
Linux dnpws15 6.12.20-x64v3-xanmod1 #0~20250323.gf5cd360 SMP PREEMPT_DYNAMIC Sun Mar 23 03:39:27 UTC x86_64 x86_64 x86_64 GNU/Linux
dnpws15% node --version
v22.14.0
@joshunrau joshunrau changed the title Sementation when running @swc-node/register/esm on GNU/Linux (Alpine Linux not affected) Sementation fault when running @swc-node/register/esm on GNU/Linux (Alpine Linux not affected) Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant