avajs/ava

segfaults on node 18.x.x

8de2fdb0 opened this issue · 1 comments

ava 5.3.0 and earlier segfaults when run with nodejs 18.x.x, works fine with nodejs 16.x.x

I run it inside a docker container using precompiled nodejs binaries downloaded via

curl -fsSLO --compressed https://nodejs.org/dist/v16.9.1/node-v16.9.1-linux-x64.tar.gz
curl -fsSLO --compressed https://nodejs.org/dist/v18.1.0/node-v18.1.0-linux-x64.tar.gz

It crashes very early I played a little bit around with the imports in ./lib/cli.js and it crashes during loading the modules so I suspect some issues with the ESM module loader.

It never get's to the run stage, I tied to investigate with valgrind and and it only says

==20107== Memcheck, a memory error detector

What is a bit odd is that

valgrind node node_modules/.bin/ava

works, I suppose the module loading is delayed and the segfault is not triggered cause of that

When I use valgrind with npx it segfaults again

valgrind npx ava 

turned out to be a docker issue