Repository navigation
wasi/test-wasi failure to create link #39484
Copy link
Copy link
Closed
Labels
ibm iIssues and PRs related to the IBM i platform.Issues and PRs related to the IBM i platform.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.wasiIssues and PRs related to the WebAssembly System Interface.Issues and PRs related to the WebAssembly System Interface.
Description
- Test: wasi/test-wasi
- Platform: IBM i
- Console Output:
07:56:29 Assertion failed: 0 == link(OLD, NEW) (c/link.c: main: 13)
07:56:29 wasm://wasm/0001eae2:1
07:56:29
07:56:29
07:56:29 RuntimeError: unreachable
07:56:29 at <anonymous>:wasm-function[14]:0x4f4
07:56:29 at <anonymous>:wasm-function[31]:0x2e45
07:56:29 at <anonymous>:wasm-function[12]:0x3f4
07:56:29 at <anonymous>:wasm-function[11]:0x2b9
07:56:29 at WASI.start (node:wasi:127:7)
07:56:29 at /home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/test/wasi/test-wasi.js:32:10
07:56:29
07:56:29 node:assert:123
07:56:29 throw new AssertionError(obj);
07:56:29 ^
07:56:29
07:56:29 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
07:56:29
07:56:29 1 !== 0
07:56:29
07:56:29 at runWASI (/home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/test/wasi/test-wasi.js:59:12)
07:56:29 at Object.<anonymous> (/home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/test/wasi/test-wasi.js:81:3)
07:56:29 at Module._compile (node:internal/modules/cjs/loader:1101:14)
07:56:29 at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
07:56:29 at Module.load (node:internal/modules/cjs/loader:981:32)
07:56:29 at Function.Module._load (node:internal/modules/cjs/loader:822:12)
07:56:29 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
07:56:29 at node:internal/main/run_main_module:17:47 {
07:56:29 generatedMessage: true,
07:56:29 code: 'ERR_ASSERTION',
07:56:29 actual: 1,
07:56:29 expected: 0,
07:56:29 operator: 'strictEqual'
07:56:29 }
Details
07:56:29 not ok 3084 wasi/test-wasi
07:56:29 ---
07:56:29 duration_ms: 14.105
07:56:29 severity: fail
07:56:29 exitcode: 1
07:56:29 stack: |-
07:56:29 executing cant_dotdot
07:56:29 (node:2241933) ExperimentalWarning: WASI is an experimental feature. This feature could change at any time
07:56:29 (Use `node --trace-warnings ...` to show where the warning was created)
07:56:29 fd_prestat_get(3, 69720)
07:56:29 fd_prestat_dir_name(3, 131088, 9)
07:56:29 fd_prestat_get(4, 69720)
07:56:29 fd_prestat_dir_name(4, 131152, 5)
07:56:29 fd_prestat_get(5, 69720)
07:56:29 environ_sizes_get(69724, 69720)
07:56:29 environ_get(135760, 131168)
07:56:29 fd_fdstat_get(3, 69672)
07:56:29 path_open(3, 1, 1033, 14, 0, 264240830, 268435455, 0, 69668)
07:56:29
07:56:29 executing exitcode
07:56:29 (node:2241941) ExperimentalWarning: WASI is an experimental feature. This feature could change at any time
07:56:29 (Use `node --trace-warnings ...` to show where the warning was created)
07:56:29 fd_prestat_get(3, 67080)
07:56:29 fd_prestat_dir_name(3, 131088, 9)
07:56:29 fd_prestat_get(4, 67080)
07:56:29 fd_prestat_dir_name(4, 131152, 5)
07:56:29 fd_prestat_get(5, 67080)
07:56:29 environ_sizes_get(67084, 67080)
07:56:29 environ_get(135760, 131168)
07:56:29 proc_exit(120)
07:56:29
07:56:29 executing fd_prestat_get_refresh
07:56:29 (node:2241945) ExperimentalWarning: WASI is an experimental feature. This feature could change at any time
07:56:29 (Use `node --trace-warnings ...` to show where the warning was created)
07:56:29 fd_prestat_get(3, 67080)
07:56:29 fd_prestat_dir_name(3, 131088, 9)
07:56:29 fd_prestat_get(4, 67080)
07:56:29 fd_prestat_dir_name(4, 131152, 5)
07:56:29 fd_prestat_get(5, 67080)
07:56:29 environ_sizes_get(67084, 67080)
07:56:29 environ_get(135760, 131168)
07:56:29 fd_fdstat_get(1, 67048)
07:56:29 fd_fdstat_get(1, 67048)
07:56:29
07:56:29 executing freopen
07:56:29 (node:2241948) ExperimentalWarning: WASI is an experimental feature. This feature could change at any time
07:56:29 (Use `node --trace-warnings ...` to show where the warning was created)
07:56:29 fd_prestat_get(3, 70920)
07:56:29 fd_prestat_dir_name(3, 131088, 9)
07:56:29 fd_prestat_get(4, 70920)
07:56:29 fd_prestat_dir_name(4, 131152, 5)
07:56:29 fd_prestat_get(5, 70920)
07:56:29 environ_sizes_get(70924, 70920)
07:56:29 environ_get(135760, 131168)
07:56:29 fd_fdstat_get(3, 70856)
07:56:29 path_open(3, 1, 1033, 9, 0, 264240830, 268435455, 0, 70852)
07:56:29 fd_fdstat_get(3, 70840)
07:56:29 path_open(3, 1, 1089, 10, 0, 264240830, 268435455, 0, 70836)
07:56:29 fd_renumber(6, 5)
07:56:29 fd_read(5, 70856, 1, 70852)
07:56:29 fd_fdstat_get(1, 70856)
07:56:29 fd_write(1, 70864, 2, 70860)
07:56:29 fd_read(5, 70856, 1, 70852)
07:56:29
07:56:29 executing ftruncate
07:56:29 (node:2241954) ExperimentalWarning: WASI is an experimental feature. This feature could change at any time
07:56:29 (Use `node --trace-warnings ...` to show where the warning was created)
07:56:29 fd_prestat_get(3, 69928)
07:56:29 fd_prestat_dir_name(3, 131088, 9)
07:56:29 fd_prestat_get(4, 69928)
07:56:29 fd_prestat_dir_name(4, 131152, 5)
07:56:29 fd_prestat_get(5, 69928)
07:56:29 environ_sizes_get(69932, 69928)
07:56:29 environ_get(135760, 131168)
07:56:29 path_create_directory(4, 1029, 7)
07:56:29 fd_fdstat_get(4, 69624)
07:56:29 path_open(4, 1, 1090, 18, 1, 268419069, 268435455, 0, 69620)
07:56:29 fd_filestat_get(5, 69568)
07:56:29 fd_tell(5, 69656)
07:56:29 fd_filestat_set_size(5, 500)
07:56:29 fd_filestat_get(5, 69568)
07:56:29 fd_tell(5, 69656)
07:56:29 fd_filestat_set_size(5, 300)
07:56:29 fd_filestat_get(5, 69568)
07:56:29 fd_tell(5, 69656)
07:56:29 fd_close(5)
07:56:29
07:56:29 executing getentropy
07:56:29 (node:2241965) ExperimentalWarning: WASI is an experimental feature. This feature could change at any time
07:56:29 (Use `node --trace-warnings ...` to show where the warning was created)
07:56:29 fd_prestat_get(3, 69656)
07:56:29 fd_prestat_dir_name(3, 131088, 9)
07:56:29 fd_prestat_get(4, 69656)
07:56:29 fd_prestat_dir_name(4, 131152, 5)
07:56:29 fd_prestat_get(5, 69656)
07:56:29 environ_sizes_get(69660, 69656)
07:56:29 environ_get(135760, 131168)
07:56:29 random_get(69392, 256)
07:56:29
07:56:29 executing gettimeofday
07:56:29 (node:2241975) ExperimentalWarning: WASI is an experimental feature. This feature could change at any time
07:56:29 (Use `node --trace-warnings ...` to show where the warning was created)
07:56:29 fd_prestat_get(3, 69688)
07:56:29 fd_prestat_dir_name(3, 131088, 9)
07:56:29 fd_prestat_get(4, 69688)
07:56:29 fd_prestat_dir_name(4, 131152, 5)
07:56:29 fd_prestat_get(5, 69688)
07:56:29 environ_sizes_get(69692, 69688)
07:56:29 environ_get(135760, 131168)
07:56:29 clock_time_get(0, 1000, 69592)
07:56:29 clock_time_get(0, 1000, 69592)
07:56:29
07:56:29 executing link
07:56:29 (node:2241987) ExperimentalWarning: WASI is an experimental feature. This feature could change at any time
07:56:29 (Use `node --trace-warnings ...` to show where the warning was created)
07:56:29 fd_prestat_get(3, 69816)
07:56:29 fd_prestat_dir_name(3, 131088, 9)
07:56:29 fd_prestat_get(4, 69816)
07:56:29 fd_prestat_dir_name(4, 131152, 5)
07:56:29 fd_prestat_get(5, 69816)
07:56:29 environ_sizes_get(69820, 69816)
07:56:29 environ_get(135760, 131168)
07:56:29 path_filestat_get(3, 1033, 9)
07:56:29 path_link(3, 0, 1033, 9, 4, 1086, 10)
07:56:29 fd_write(2, 69264, 2, 69260)
07:56:29 Assertion failed: 0 == link(OLD, NEW) (c/link.c: main: 13)
07:56:29 wasm://wasm/0001eae2:1
07:56:29
07:56:29
07:56:29 RuntimeError: unreachable
07:56:29 at <anonymous>:wasm-function[14]:0x4f4
07:56:29 at <anonymous>:wasm-function[31]:0x2e45
07:56:29 at <anonymous>:wasm-function[12]:0x3f4
07:56:29 at <anonymous>:wasm-function[11]:0x2b9
07:56:29 at WASI.start (node:wasi:127:7)
07:56:29 at /home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/test/wasi/test-wasi.js:32:10
07:56:29
07:56:29 node:assert:123
07:56:29 throw new AssertionError(obj);
07:56:29 ^
07:56:29
07:56:29 AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
07:56:29
07:56:29 1 !== 0
07:56:29
07:56:29 at runWASI (/home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/test/wasi/test-wasi.js:59:12)
07:56:29 at Object.<anonymous> (/home/IOJS/build/workspace/node-test-commit-ibmi/nodes/ibmi73-ppc64/test/wasi/test-wasi.js:81:3)
07:56:29 at Module._compile (node:internal/modules/cjs/loader:1101:14)
07:56:29 at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
07:56:29 at Module.load (node:internal/modules/cjs/loader:981:32)
07:56:29 at Function.Module._load (node:internal/modules/cjs/loader:822:12)
07:56:29 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
07:56:29 at node:internal/main/run_main_module:17:47 {
07:56:29 generatedMessage: true,
07:56:29 code: 'ERR_ASSERTION',
07:56:29 actual: 1,
07:56:29 expected: 0,
07:56:29 operator: 'strictEqual'
07:56:29 }
07:56:29 ...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ibm iIssues and PRs related to the IBM i platform.Issues and PRs related to the IBM i platform.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.wasiIssues and PRs related to the WebAssembly System Interface.Issues and PRs related to the WebAssembly System Interface.
Activity
richardlau commentedon Jul 22, 2021
Seeing this consistently on the updated IBM i machines after nodejs/build#2638 and it looks like it's because we're running with the directory set as
NODE_TEST_DIRon a different device to the test fixtures directory. I can reproduce this running on a local Linux system:PR incoming.
test: fix WASI link test
test: fix WASI link test
test: fix WASI link test
test: fix WASI link test
test: fix WASI link test