Skip to content

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

Open

Description

@rathann

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?

Activity

  1. binji commented on Mar 20, 2020

    @binji
    Member

    The main issue is the SIGSEGV; the python traceback happens because of a python2/python3 issue (which has since been resolved, since we've switched to python3 everywhere.)

    I'm guessing the segfault is from a stack overflow. I ran into a similar issue when trying to get the MSVC build of wasm2c working too. Unfortunately, that hasn't landed yet.

  2. changed the title [-]test/wasm2c/spec/skip-stack-guard-page.txt fails on ARM[/-] [+]test/wasm2c/spec/skip-stack-guard-page.txt fails on 32-bit ARM and 32-bit x86[/+] on Jul 15, 2020
  3. rathann commented on Jul 15, 2020

    @rathann
    ContributorAuthor

    I'm getting a failure here on i686, too (with 1.0.17 on Fedora 31):

    - test/wasm2c/spec/skip-stack-guard-page.txt
      expected error code 0, got 1.
      STDERR MISMATCH:
      --- expected
      +++ actual
      @@ -0,0 +1,9 @@
      +Traceback (most recent call last):
      +  File "/builddir/build/BUILD/wabt-1.0.17/test/run-spec-wasm2c.py", line 415, in <module>
      +    sys.exit(main(sys.argv[1:]))
      +  File "/builddir/build/BUILD/wabt-1.0.17/test/run-spec-wasm2c.py", line 409, in main
      +    forward_stdout=True).RunWithArgs()
      +  File "/builddir/build/BUILD/wabt-1.0.17/test/utils.py", line 103, in RunWithArgs
      +    raise error
      +utils.Error: Signal raised running "out/test/wasm2c/spec/skip-stack-guard-page/skip-stack-guard-page": SIGABRT
      +mmap failed: Invalid argument
    
  4. rathann commented on Jul 16, 2020

    @rathann
    ContributorAuthor

    Looks like it was only due to the new signal handler. It's still ARM 32bit-only, after all.

  5. changed the title [-]test/wasm2c/spec/skip-stack-guard-page.txt fails on 32-bit ARM and 32-bit x86[/-] [+]test/wasm2c/spec/skip-stack-guard-page.txt fails on 32-bit ARM[/+] on Jul 16, 2020
  6. rathann commented on Aug 8, 2021

    @rathann
    ContributorAuthor

    Still getting the SIGSEGV on ARM 32-bit with 1.0.23 on Fedora rawhide.

  7. rathann commented on Mar 15, 2022

    @rathann
    ContributorAuthor

    FWIW, Fedora is dropping support for ARM 32-bit starting with Fedora 37. The next release, Fedora 36, will be the last to run on ARM 32-bit. I guess this can be left unfixed. For the record, these are the tests failing on ARM 32-bit with 1.0.27:

    dump/reference-types.txt
    dump/relocations-all-features.txt
    dump/relocations.txt
    dump/table.txt
    wasm2c/spec/skip-stack-guard-page.txt
    
  8. sbc100 commented on Mar 15, 2022

    @sbc100
    Member

    I'll mark as help wanted in case anyone with access to arm32 wants to take a stab a fixing this.

  9. rathann commented on Apr 4, 2022

    @rathann
    ContributorAuthor

    Only the wasm2c/spec/skip-stack-guard-page.txt test is failing in 1.0.28.

  10. rathann commented on Jan 3, 2023

    @rathann
    ContributorAuthor

    Same in 1.0.32. Note that I'll stop testing on ARM 32-bit in about 6 months, when Fedora 36 becomes EOL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions