DenoDDeno
Powered by
alina 🌸A
Denoβ€’2y agoβ€’
4 replies
alina 🌸

has there been a regression in 1.44.3 in deno ffi?

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 .)
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
pcre2_substitute_8 error: -8
. sometimes it's different error code, but always
PCRE2_ERROR_NULL
PCRE2_ERROR_NULL
or
PCRE2_ERROR_UTF8_ERR
PCRE2_ERROR_UTF8_ERR
family), and on 1.44.2 everything works fine and outputs
goodbye world
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...
Gist
deno ffi issue repro
deno ffi issue repro. GitHub Gist: instantly share code, notes, and snippets.
deno ffi issue repro
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Using Rust FFI in a public Deno module
abiAabi / help
3y ago
Is there any way to know currently running has been deno compiled?
impactakyIimpactaky / help
3y ago