Skip to content

How to interpret "memory access out of bounds" error? #233

@KalleV

Description

@KalleV

Hello, we are seeing an intermittent error in production during QuickJS sandbox creation:

   errorStack: RuntimeError: memory access out of bounds
    at wasm://wasm/001fab82:wasm-function[167]:0x7af3
    at wasm://wasm/001fab82:wasm-function[541]:0x28136
    at wasm://wasm/001fab82:wasm-function[1071]:0x581ed
    at c._QTS_NewRuntime [as QTS_NewRuntime] (file:///.../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs:30:46)
    at QuickJSWASMModule.newRuntime (file:///.../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs:6:1545)

The error message is similar to this issue, but the root cause seems to be different: #30

Does this error mean the Node process did not have sufficient memory to initialize a new runtime?

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