`wasmtime wast` ignores `-W max-memory-size` and other store limits
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 75/100
Hướng nghiên cứu
Read src/commands/wast.rs and trace how each store is configured through CommonOptions::configure_store; compare it with RunCommon::store_limits and the wasmtime run behavior described in the issue. Check existing WAST tests for store limits and add coverage for memory and table limits. Done when wasmtime wast applies the configured limits or clearly rejects unsupported limit options, without silently allowing growth.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Test Case
limit.wast:
(module
(memory 1)
(func (export "grow") (param i32) (result i32) (memory.grow (local.get 0))))
(assert_return (invoke "grow" (i32.const 10)) (i32.const -1))
Steps to Reproduce
wasmtime wast -W max-memory-size=65536 limit.wast- For comparison, the same module (the first three lines saved as
limit.wat):wasmtime run -W max-memory-size=65536 --invoke grow limit.wat 10
Expected Results
The script passes: growing to 11 pages exceeds the 64 KiB limit, so memory.grow returns -1, as it does under wasmtime run, which prints -1.
Actual Results
result 0 didn't match
expected -1 / 0x00000000ffffffff
actual 1 / 0x0000000000000001
The limit is silently ignored. -W max-table-elements behaves the same way (a table.grow past the limit succeeds under wasmtime wast and returns -1 under wasmtime run). -W fuel is applied.
Versions and Environment
Wasmtime version or commit: 50.0.1; the same code is on main (88b8d15bf0b2)
Operating system: Linux
Architecture: x86_64
Extra Info
src/commands/wast.rs configures each store with CommonOptions::configure_store, which does not install the StoreLimits that RunCommon::store_limits builds from max-memory-size, max-table-elements, max-instances and the rest. Applying those limits in wast, or rejecting the options there, would avoid the silent difference.
- Ngôn ngữ chính
- Rust
- Star
- 18.9k
- Fork
- 2k
- Merge trung bình
- 1 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 238
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bytecodealliance/wasmtime
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
bytecodealliance/wasmtime#15536 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
bytecodealliance/wasmtime#15455 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
wasi-preview1-component-adapter: fd_write does not invalidate cached InputStream, causing stale readsCó thể đã có người làm @dpfens đã nhận 13 ngày trước. Đang mởwasi
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bytecodealliance/wasmtime#15296 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug wasm-proposal:exceptions wasmtime:debugging
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
bytecodealliance/wasmtime#14102 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
wasm-proposal:gc
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
bytecodealliance/wasmtime#13808 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của bytecodealliance/wasmtime
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: plugins bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
clipy-recorder/clipy#1039 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
valkey-io/valkey-glide#7975 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
gofractally/psibase#2379 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Qwen stream parser: a chunk with "error": null is treated as a stream errorCó thể đã có người làm @Beehtrix đã nhận hôm nay. Đang mởarea:models bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
brekkylab/ailoy#681 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày