Skip to content

wasm-c-api sample "Exception: Illegal" failure on the CI #4316

@yamt

Description

@yamt

the following failure seen on the ci.
#4309 (comment)
https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/15383272061/job/43277481348?pr=4309

Internal ctest changing into directory: /Users/runner/work/wasm-micro-runtime/wasm-micro-runtime/samples/wasm-c-api/build
Test project /Users/runner/work/wasm-micro-runtime/wasm-micro-runtime/samples/wasm-c-api/build
      Start  1: Test_callback
 1/10 Test  #1: Test_callback ....................   Passed    0.04 sec
      Start  2: Test_callback_chain
 2/10 Test  #2: Test_callback_chain ..............   Passed    0.08 sec
      Start  3: Test_empty_imports
 3/10 Test  #3: Test_empty_imports ...............   Passed    0.02 sec
      Start  4: Test_global
 4/10 Test  #4: Test_global ......................   Passed    0.10 sec
      Start  5: Test_hello
 5/10 Test  #5: Test_hello .......................   Passed    0.04 sec
      Start  6: Test_hostref
 6/10 Test  #6: Test_hostref .....................***Exception: Illegal  0.04 sec
Initializing...
Loading binary...
Compiling module...
[00:15:25:111 - 7FF856588A00]: failed to link function (, f): WASM module instantiate failed: unknown import
Creating callback...
Instantiating module...
Extracting exports...
Creating host references...
Accessing global...
call_v_r... okay
call_r_v... okay
call_v_r... okay
call_r_v... okay
call_v_r... okay
call_r_v... okay
call_v_r... okay
Accessing table...
call_i_r... okay
call_i_r... okay
call_ir_v... okay
call_ir_v... okay
call_i_r... okay
call_i_r... okay
call_ir_v... okay
call_i_r... okay
call_i_r... okay
Accessing function...
call_r_r... Calling back...
> > 0x0
okay
call_r_r... Calling back...
> > 0x1
okay
call_r_r... 

      Start  7: Test_memory
 7/10 Test  #7: Test_memory ......................   Passed    0.04 sec
      Start  8: Test_reflect
 8/10 Test  #8: Test_reflect .....................   Passed    0.09 sec
      Start  9: Test_table
 9/10 Test  #9: Test_table .......................   Passed    0.09 sec
      Start 10: Test_trap
10/10 Test #10: Test_trap ........................   Passed    0.07 sec

90% tests passed, 1 tests failed out of 10

Total Test time (real) =   0.69 sec

The following tests FAILED:
	  6 - Test_hostref (ILLEGAL)
Errors while running CTest
Error: Process completed with exit code 8.

the log archive downloaded from the ci:
logs_39450374750.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions