deno
deno copied to clipboard
deno ffi regression (?) in 1.44.3 when running in docker
the smallest repro i could make: https://gist.github.com/teidesu/199abcd47a3fb494564a2c41965be5ad
on linux amd64 host, put these 2 files in the same directory, and run
docker run --rm $(docker build -q .)
then, change deno version to 1.44.2 in dockerfile and run the same command again
on 1.44.3 the code fails with a random error from the library being ffi-ed (e.g. pcre2_substitute_8 error: -8
. sometimes it's different error code, but always PCRE2_ERROR_NULL
or PCRE2_ERROR_UTF8_ERR
family)
and on 1.44.2 everything works fine and outputs goodbye world
correctly
on the other hand, everything seems to work fine when running outside docker or on arm64 linux, so i'm not really sure what could be the issue here... could be that my bindings are wrong in some way that worked fine before some ffi improvements
the issue is also present in 1.44.4, 1.45.0, 1.45.1 and latest (as of writing) canary version