Open
Description
I guess this might have always been failing?
This test is not run in github CI because we only run a small subset of asan tests there.
This test is not run on emscripten-release CI because we don't have a recent version of node there so we set EMTEST_SKIP_JSPI
there.
$ ./test/runner asan.test_dlfcn_jspi
Running test_core: (1 tests)
test_dlfcn_jspi (test_core.asan.test_dlfcn_jspi) ... error: undefined symbol: test (referenced by root reference (e.g. compiled C/C++ code))
warning: To disable errors for undefined symbols use `-sERROR_ON_UNDEFINED_SYMBOLS=0`
warning: _test may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
Error: Aborting compilation due to previous errors
emcc: error: '/usr/local/google/home/sbc/dev/wasm/emsdk/node/22.16.0_64bit/bin/node /usr/local/google/home/sbc/dev/wasm/emscripten/tools/compiler.mjs -' failed (returned 1)
None
None
FAIL
======================================================================
FAIL: test_dlfcn_jspi (test_core.asan.test_dlfcn_jspi)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/google/home/sbc/dev/wasm/emscripten/test/common.py", line 1772, in run_process
return shared.run_process(cmd, check=check, **args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/sbc/dev/wasm/emscripten/tools/shared.py", line 112, in run_process
ret = subprocess.run(cmd, check=check, input=input, *args, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 573, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/local/google/home/sbc/dev/wasm/emscripten/emcc', '/usr/local/google/home/sbc/dev/wasm/emscripten/test/core/test_dlfcn_jspi.c', '-o', 'test_dlfcn_jspi.js', '-sNO_DEFAULT_TO_CXX', '-sALLOW_MEMORY_GROWTH', '-sJSPI', '-Wclosure', '-Werror', '-Wno-limited-postlink-optimizations', '-fsanitize=address', '--profiling', '-Wno-unused-command-line-argument', '-Wno-experimental', '-sENVIRONMENT=shell', 'side.so', '-sMAIN_MODULE=2']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/google/home/sbc/dev/wasm/emscripten/test/common.py", line 355, in decorated
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/sbc/dev/wasm/emscripten/test/test_core.py", line 153, in decorated
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/sbc/dev/wasm/emscripten/test/test_core.py", line 3904, in test_dlfcn_jspi
self.do_run_in_out_file_test("core/test_dlfcn_jspi.c", cflags=["side.so", "-sMAIN_MODULE=2"])
File "/usr/local/google/home/sbc/dev/wasm/emscripten/test/common.py", line 1957, in do_run_in_out_file_test
output = self._build_and_run(srcfile, expected, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/sbc/dev/wasm/emscripten/test/common.py", line 1975, in _build_and_run
js_file = self.build(filename, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/google/home/sbc/dev/wasm/emscripten/test/common.py", line 1435, in build
self.run_process(cmd, stderr=self.stderr_redirect if not DEBUG else None)
File "/usr/local/google/home/sbc/dev/wasm/emscripten/test/common.py", line 1777, in run_process
self.fail(f'subprocess exited with non-zero return code({e.returncode}): `{shlex.join(cmd)}`')
AssertionError: subprocess exited with non-zero return code(1): `/usr/local/google/home/sbc/dev/wasm/emscripten/emcc /usr/local/google/home/sbc/dev/wasm/emscripten/test/core/test_dlfcn_jspi.c -o test_dlfcn_jspi.js -sNO_DEFAULT_TO_CXX -sALLOW_MEMORY_GROWTH -sJSPI -Wclosure -Werror -Wno-limited-postlink-optimizations -fsanitize=address --profiling -Wno-unused-command-line-argument -Wno-experimental -sENVIRONMENT=shell side.so -sMAIN_MODULE=2`
----------------------------------------------------------------------
Ran 1 test in 1.109s
FAILED (failures=1)
Metadata
Metadata
Assignees
Labels
No labels