Skip to content
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

WASMFS + NODERAWFS fails a bunch of test #23618

Closed
sbc100 opened this issue Feb 7, 2025 · 0 comments · Fixed by #23617
Closed

WASMFS + NODERAWFS fails a bunch of test #23618

sbc100 opened this issue Feb 7, 2025 · 0 comments · Fixed by #23617

Comments

@sbc100
Copy link
Collaborator

sbc100 commented Feb 7, 2025

I tried to enable more wasmfs + noderawfs tests in #23617 and got a bunch of errors:

https://app.circleci.com/pipelines/github/emscripten-core/emscripten/40315/workflows/32243af5-fccf-4d17-865b-c534dd4d6749/jobs/895465

Here is a sample of one of the failures (with -g added to get symbols):

$ EMCC_CFLAGS=-g ./test/runner core0.test_unistd_truncate_wasmfs_rawfs
Test suites:
['test_core']
Running test_core: (1 tests)
(checking sanity from test runner)
shared:INFO: (Emscripten: Running sanity checks)
test_unistd_truncate_wasmfs_rawfs (test_core.core0.test_unistd_truncate_wasmfs_rawfs) ... -- begin program output --
f2: 4
st_size: 0

TODO: implement NodeFile::setSize
UNREACHABLE executed
at /emsdk/emscripten/system/lib/wasmfs/backends/node_backend.cpp:121
wasm://wasm/truncate.wasm-00a4bdc2:1


RuntimeError: unreachable
    at truncate.wasm.wasmfs::handle_unreachable(char const*, char const*, unsigned int) (wasm://wasm/truncate.wasm-00a4bdc2:wasm-function[332]:0xc066)
    at truncate.wasm.wasmfs::NodeFile::setSize(long long) (wasm://wasm/truncate.wasm-00a4bdc2:wasm-function[300]:0xaf8a)
    at truncate.wasm.wasmfs::DataFile::Handle::setSize(long long) (wasm://wasm/truncate.wasm-00a4bdc2:wasm-function[481]:0x16543)
    at truncate.wasm.doTruncate(std::__2::shared_ptr<wasmfs::File>&, long long) (wasm://wasm/truncate.wasm-00a4bdc2:wasm-function[508]:0x1a24f)
    at truncate.wasm.__syscall_ftruncate64 (wasm://wasm/truncate.wasm-00a4bdc2:wasm-function[509]:0x1a40a)
    at truncate.wasm.ftruncate (wasm://wasm/truncate.wasm-00a4bdc2:wasm-function[57]:0x2542)
    at truncate.wasm.__original_main (wasm://wasm/truncate.wasm-00a4bdc2:wasm-function[36]:0x104c)
    at truncate.wasm.main (wasm://wasm/truncate.wasm-00a4bdc2:wasm-function[37]:0x1b12)
    at /usr/local/google/home/sbc/dev/wasm/emscripten/out/test/truncate.js:657:12
    at callMain (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/truncate.js:2747:15)
    at doRun (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/truncate.js:2799:24)
    at run (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/truncate.js:2812:5)
    at removeRunDependency (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/truncate.js:612:7)
    at receiveInstance (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/truncate.js:760:5)
    at receiveInstantiationResult (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/truncate.js:778:12)
    at createWasm (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/truncate.js:806:19)
Thrown at:
    at $wasmfs::handle_unreachable(char const*, char const*, unsigned int) (wasm://wasm/truncate.wasm-00a4bdc2:1:49255)
    at $wasmfs::NodeFile::setSize(long long) (wasm://wasm/truncate.wasm-00a4bdc2:1:44939)
    at $wasmfs::DataFile::Handle::setSize(long long) (wasm://wasm/truncate.wasm-00a4bdc2:1:91460)
    at $doTruncate(std::__2::shared_ptr<wasmfs::File>&, long long) (wasm://wasm/truncate.wasm-00a4bdc2:1:107088)
    at $__syscall_ftruncate64 (wasm://wasm/truncate.wasm-00a4bdc2:1:107531)
    at $ftruncate (wasm://wasm/truncate.wasm-00a4bdc2:1:9539)
    at $__original_main (wasm://wasm/truncate.wasm-00a4bdc2:1:4173)
    at $main (wasm://wasm/truncate.wasm-00a4bdc2:1:6931)
    at /usr/local/google/home/sbc/dev/wasm/emscripten/out/test/truncate.js:657:12
    at callMain (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/truncate.js:2747:15)


Node.js v20.18.0
-- end program output --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant