Skip to content

test_posix_fallocate() fails under test_posix under WASI #111804

Closed

Description

@brettcannon
======================================================================
ERROR: test_posix_fallocate (__main__.PosixTester.test_posix_fallocate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Lib/test/test_posix.py", line 405, in test_posix_fallocate
    posix.posix_fallocate(fd, 0, 10)
OSError: [Errno 58] Not supported

----------------------------------------------------------------------

Detected with WASI-SDK 20 and wasmtime 14.

Linked PRs

Activity

  1. brettcannon commented on Nov 7, 2023

    @brettcannon
    MemberAuthor

    I have asked at https://bytecodealliance.zulipchat.com/#narrow/stream/219900-wasi/topic/Who.20is.20expected.20to.20make.20.60posix_fallocate.60.20work.3F to find out who I should reach out to for finding out what this function errors out.

  2. brettcannon commented on Nov 7, 2023

    @brettcannon
    MemberAuthor

    Turns out posix_fallocate() was in WASI preview1, but has been yanked in preview2 due to inconsistent semantics across OSs. Best solution then is to just skip posix_fallocate() on WASI unconditionally.

  3. added
    stdlibStandard Library Python modules in the Lib/ directory
    3.11only security fixes
    3.12only security fixes
    3.13only security fixes
    on Nov 9, 2023
  4. added a commit that references this issue on Nov 9, 2023
  5. brettcannon commented on Nov 9, 2023

    @brettcannon
    MemberAuthor

    Fixed in main, but the backports to 3.11 and 3.12 still need to be done.

  6. self-assigned this
    on Nov 9, 2023
  7. added 5 commits that reference this issue on Nov 9, 2023
  8. added a commit that references this issue on Feb 11, 2024
  9. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.11only security fixes3.12only security fixes3.13only security fixesOS-wasistdlibStandard Library Python modules in the Lib/ directory

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions