WebAssembly / WebAssembly/wabt

test/wasm2c/spec/skip-stack-guard-page.txt fails on 32-bit ARM

Open
#1,365 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
C++
Stars
8.1k
Forks
827
Avg merge
4d 6h
Merged PRs (30d)
18

Description

I'm getting this test failure when running 1.0.13 test suite on ARM:

- test/wasm2c/spec/skip-stack-guard-page.txt
  expected error code 0, got 1.
  STDERR MISMATCH:
  --- expected
  +++ actual
  @@ -0,0 +1,14 @@
  +Traceback (most recent call last):
  +  File "/builddir/build/BUILD/wabt-1.0.13/test/run-spec-wasm2c.py", line 421, in <module>
  +    sys.exit(main(sys.argv[1:]))
  +  File "/builddir/build/BUILD/wabt-1.0.13/test/run-spec-wasm2c.py", line 413, in main
  +    utils.Executable(os.path.join(out_dir, main_exe),
  +  File "/builddir/build/BUILD/wabt-1.0.13/test/utils.py", line 104, in RunWithArgs
  +    raise error
  +utils.Error: Signal raised running "out/test/wasm2c/spec/skip-stack-guard-page/skip-stack-guard-page": SIGSEGV
  +b''
  +During handling of the above exception, another exception occurred:
  +Traceback (most recent call last):
  +  File "/builddir/build/BUILD/wabt-1.0.13/test/run-spec-wasm2c.py", line 427, in <module>
  +    sys.stderr.write(u'{0}\n'.format(e).encode('ascii', 'replace'))
  +TypeError: write() argument must be str, not bytes
  STDOUT MISMATCH:
  --- expected
  +++ actual
  @@ -1 +0,0 @@
  -10/10 tests passed.

Any idea what's going on here?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing test/wasm2c/spec/skip-stack-guard-page.txt on 32-bit ARM and inspect the failure through test/run-spec-wasm2c.py and test/utils.py. Check both the SIGSEGV from the generated executable and the Python traceback shown in the report. Done means the test completes with exit code 0 and reports 10/10 tests passed without stderr mismatch.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python, wasm
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.