issue_owner_repo
listlengths
2
2
issue_body
stringlengths
0
261k
issue_title
stringlengths
1
925
issue_comments_url
stringlengths
56
81
issue_comments_count
int64
0
2.5k
issue_created_at
stringlengths
20
20
issue_updated_at
stringlengths
20
20
issue_html_url
stringlengths
37
62
issue_github_id
int64
387k
2.46B
issue_number
int64
1
127k
[ "WebAssembly", "wabt" ]
Hello, I am compiling JVM code to WAT for a personal project, and then using wat2wasm to convert it to WASM. Since it works that way, I'd like to keep that process for now, and not implement WASM myself. (especially because WAT is easier to check and edit). However, when I am converting JVM code to WAT, my proje...
wat2wasm slow? How to debug?
https://api.github.com/repos/WebAssembly/wabt/issues/2030/comments
2
2022-10-30T11:16:08Z
2022-11-01T19:50:51Z
https://github.com/WebAssembly/wabt/issues/2030
1,428,737,813
2,030
[ "WebAssembly", "wabt" ]
``` (module (func block br 0 ;; Dead code, but still seems a validation error. drop end )) ``` The `drop` instruction should expect something on the stack.
Dead code stack validation error
https://api.github.com/repos/WebAssembly/wabt/issues/2027/comments
2
2022-10-27T05:28:13Z
2022-10-27T07:22:20Z
https://github.com/WebAssembly/wabt/issues/2027
1,425,054,649
2,027
[ "WebAssembly", "wabt" ]
``` (module (func (local i32) block i32.const 3 if (result i32) i32.const 4 else i32.const 3 if (result i32) i32.const 4 else local.get 0 end local.set 0 ;; This instruction pushes an i32 which is never used ;; Code should...
Stack validation error
https://api.github.com/repos/WebAssembly/wabt/issues/2026/comments
2
2022-10-27T05:22:35Z
2022-10-27T07:21:34Z
https://github.com/WebAssembly/wabt/issues/2026
1,425,050,326
2,026
[ "WebAssembly", "wabt" ]
When both the multi-memory and memory64 features are enabled it's possible for memory.copy to copy between two memories of different types. In this case, the memory64 proposal specifies that the src and dst arguments should correspond to the types of the memory they are accessing, and the size argument should correspon...
Incorrect arguments for `memory.copy` between memories of different types
https://api.github.com/repos/WebAssembly/wabt/issues/2025/comments
1
2022-10-26T10:22:21Z
2022-11-02T01:09:35Z
https://github.com/WebAssembly/wabt/issues/2025
1,423,789,456
2,025
[ "WebAssembly", "wabt" ]
I noticed this during catching up with [the latest spec test](https://github.com/WebAssembly/spec/commit/f2b7c60c6726d0857f137d9243107a74f8538668) Steps to repro: ``` $ cat original.wat (module (import "exporter" "table" (table $t 2 externref)) (elem (i32.const 0) externref (ref.null extern...
wat2wasm: incorrectly produces funcref from externref element
https://api.github.com/repos/WebAssembly/wabt/issues/2022/comments
2
2022-10-24T09:18:27Z
2022-11-14T00:11:40Z
https://github.com/WebAssembly/wabt/issues/2022
1,420,510,753
2,022
[ "WebAssembly", "wabt" ]
Compiling WABT 1.0.30 with gcc 12.2.0, I get the following warning: ``` /usr/include/c++/12/bits/stl_pair.h:665:43: warning: ‘index’ may be used uninitialized [-Wmaybe-uninitialized] 665 | || (!(__y.first < __x.first) && __x.second < __y.second); } | ~~~~~~~~~~~~~~~~~~~~~~~~~~...
warning: ‘index’ may be used uninitialized
https://api.github.com/repos/WebAssembly/wabt/issues/2020/comments
2
2022-10-17T22:58:35Z
2023-03-22T01:47:45Z
https://github.com/WebAssembly/wabt/issues/2020
1,412,341,517
2,020
[ "WebAssembly", "wabt" ]
Now that wasm2c has almost caught up to the current Wasm spec, maybe it's a good time to brainstorm about the roadmap from here and see what everything else thinks is useful/worth prioritizing. Here are some possible items and thoughts to get the discussion going: - [ ] A WASI implementation for Unix-ish hosts (PR #...
wasm2c roadmap ideas
https://api.github.com/repos/WebAssembly/wabt/issues/2019/comments
8
2022-10-12T21:23:55Z
2023-07-30T23:48:50Z
https://github.com/WebAssembly/wabt/issues/2019
1,406,825,652
2,019
[ "WebAssembly", "wabt" ]
Trying with eca3519d (current main branch), wast2json can parse [return_call.wast](https://github.com/WebAssembly/testsuite/blob/4f77306bb63151631d84f58dedf67958eb9911b9/proposals/tail-call/return_call.wast), but it cannot parse [return_call_indirect.wast](https://github.com/WebAssembly/testsuite/blob/4f77306bb63151631...
wast2json fails to parse tail call proposal test file
https://api.github.com/repos/WebAssembly/wabt/issues/2018/comments
1
2022-10-11T16:47:46Z
2022-11-08T19:19:34Z
https://github.com/WebAssembly/wabt/issues/2018
1,404,945,070
2,018
[ "WebAssembly", "wabt" ]
👋 trying to build the latest release, but run into some build issue. The error log is as below: <details> <summary>build error</summary> ``` /tmp/wabt-20221003-91990-ggldl9/src/interp/interp-wasi.cc:647:10: fatal error: 'wasi_api.def' file not found #include "wasi_api.def" ^~~~~~~~~~~~~~ ...
wabt 1.0.30 build issue
https://api.github.com/repos/WebAssembly/wabt/issues/2016/comments
1
2022-10-06T20:37:07Z
2022-10-06T22:48:49Z
https://github.com/WebAssembly/wabt/issues/2016
1,400,269,672
2,016
[ "WebAssembly", "wabt" ]
When running CMake and installing wabt, library loading issues are occurring around `cwriter-template`. This just started occurring with 1.0.30 and did not occur with 1.0.29. For example: ``` wasm2c --help wasm2c: error while loading shared libraries: libcwriter-template.so: cannot open shared object file: No such...
cwriter-template not being installed with 1.0.30?
https://api.github.com/repos/WebAssembly/wabt/issues/2014/comments
0
2022-10-04T09:32:13Z
2022-10-04T20:45:03Z
https://github.com/WebAssembly/wabt/issues/2014
1,395,947,382
2,014
[ "WebAssembly", "wabt" ]
Parser driving demo page is broken. (https://webassembly.github.io/wabt/demo/wat2wasm/) It doesn't parse many standard WABT examples. ~ It fails to parse several of its own sample code, including, for example 'sign-extension'. ~ It fails to parse its own sample code from about a year ago. See below. ~ If fails ...
Demo parser is broken
https://api.github.com/repos/WebAssembly/wabt/issues/2010/comments
4
2022-09-30T12:20:32Z
2022-10-03T12:57:45Z
https://github.com/WebAssembly/wabt/issues/2010
1,392,356,299
2,010
[ "WebAssembly", "wabt" ]
Now that the header layout change has landed, we (Halide) would like to have a version number to point to. I think this requires just a one-line change for the version number in the CMakeLists.txt file and then a Github release. Are there any blockers I'm not aware of?
Tag 1.0.30?
https://api.github.com/repos/WebAssembly/wabt/issues/2007/comments
6
2022-09-28T14:44:13Z
2022-10-04T19:55:40Z
https://github.com/WebAssembly/wabt/issues/2007
1,389,493,234
2,007
[ "WebAssembly", "wabt" ]
I would like to make imports simpler for wasm testing with the `wasm-interp` tool. Nothing fancy just something like `-m, --module=[NAME:]PATH` `use PATH as a wasm module and provide all exports under the name NAME (filename if not present) for imports` This way you could load any wasm-modules or possibly nat...
Load other wasm (and possibly native) modules for exposing exports/imports
https://api.github.com/repos/WebAssembly/wabt/issues/2005/comments
13
2022-09-22T18:44:08Z
2022-09-28T21:42:02Z
https://github.com/WebAssembly/wabt/issues/2005
1,382,867,297
2,005
[ "WebAssembly", "wabt" ]
I would like to ask how wasm is converted to S-expression form in wasm2wat. I know the concept of S-expressions, but I can't relate S-expressions to wasm instructions.
How wasm is converted to S-expression form in wasm2wat?
https://api.github.com/repos/WebAssembly/wabt/issues/2000/comments
4
2022-09-21T09:47:38Z
2022-09-23T01:57:12Z
https://github.com/WebAssembly/wabt/issues/2000
1,380,644,797
2,000
[ "WebAssembly", "wabt" ]
Hey, I am working on a compiler to port my game engine from JVM to WASM, but unfortunately, for my current file, wat2wasm just crashes without printing information, and it returns -1073741571 (-0x3FFFFF03). I run it three times, and always got the same return type. What am I doing wrong? / where is the internal bu...
Return code -1073741571 in wat2wasm.
https://api.github.com/repos/WebAssembly/wabt/issues/1997/comments
7
2022-09-18T18:41:56Z
2022-09-19T07:01:51Z
https://github.com/WebAssembly/wabt/issues/1997
1,377,143,334
1,997
[ "WebAssembly", "wabt" ]
It looks like clang/llvm converts function return types and parameters to signed (s32/s64) and wasm2c treats all numbers as unsinged. (unless there is also bug in wasm2wat which displays numeric types as signed) Compiling following code: ``` int main() { return 1; } ``` -> wasm2wat ``` (module (type (...
wasm2c converts signed to unsinged
https://api.github.com/repos/WebAssembly/wabt/issues/1995/comments
1
2022-09-15T15:46:36Z
2022-09-15T18:11:07Z
https://github.com/WebAssembly/wabt/issues/1995
1,374,741,366
1,995
[ "WebAssembly", "wabt" ]
### Environment ``` OS : Linux ubuntu 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 3054d61f703d609995798f872fc86b462617c294 Version : 1.0.29 Build : make clang-debug-asan ``` ### Proof of concept [poc-5.wasm.zip](https://github.com/WebA...
SEGV in wabt::cat_compute_size
https://api.github.com/repos/WebAssembly/wabt/issues/1992/comments
1
2022-09-05T13:44:45Z
2022-09-05T13:49:27Z
https://github.com/WebAssembly/wabt/issues/1992
1,362,003,678
1,992
[ "WebAssembly", "wabt" ]
### Environment ``` OS : Linux ubuntu 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 3054d61f703d609995798f872fc86b462617c294 Version : 1.0.29 Build : make clang-debug-asan ``` ### Proof of concept [poc-4.wasm.zip](https://github.com/WebA...
SEGV in wabt::Decompiler::WrapNAry
https://api.github.com/repos/WebAssembly/wabt/issues/1991/comments
0
2022-09-05T13:38:19Z
2022-09-18T05:06:15Z
https://github.com/WebAssembly/wabt/issues/1991
1,361,991,190
1,991
[ "WebAssembly", "wabt" ]
### Environment ``` OS : Linux ubuntu 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 3054d61f703d609995798f872fc86b462617c294 Version : 1.0.29 Build : make clang-debug-asan ``` ### Proof of concept [poc-3.wasm.zip](https://github.com/WebA...
SEGV in wabt::Decompiler::WrapChild
https://api.github.com/repos/WebAssembly/wabt/issues/1990/comments
1
2022-09-05T13:34:09Z
2023-03-17T12:06:11Z
https://github.com/WebAssembly/wabt/issues/1990
1,361,983,620
1,990
[ "WebAssembly", "wabt" ]
### Environment ``` OS : Linux ubuntu 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 3054d61f703d609995798f872fc86b462617c294 Version : 1.0.29 Build : make clang-debug-asan ``` ### Proof of concept [poc-2.wasm.zip](https://github.com/We...
heap overflow in wabt::Node::operator=(wabt::Node&&)
https://api.github.com/repos/WebAssembly/wabt/issues/1989/comments
1
2022-09-05T13:30:58Z
2023-03-17T12:04:27Z
https://github.com/WebAssembly/wabt/issues/1989
1,361,978,096
1,989
[ "WebAssembly", "wabt" ]
### Environment ``` OS : Linux ubuntu 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 3054d61f703d609995798f872fc86b462617c294 Version : 1.0.29 Build : make clang-debug-asan ``` ### Proof of concept [poc-1.wasm.zip](https://github.com/WebA...
SEGV in wabt::Node::operator=(wabt::Node&&)
https://api.github.com/repos/WebAssembly/wabt/issues/1988/comments
3
2022-09-05T13:29:09Z
2022-09-18T05:21:16Z
https://github.com/WebAssembly/wabt/issues/1988
1,361,974,973
1,988
[ "WebAssembly", "wabt" ]
### Environment ``` OS : Linux ubuntu 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 3054d61f703d609995798f872fc86b462617c294 Version : 1.0.29 Build : make clang-debug-asan ``` ### Proof of concept poc_wasm-validate.wasm [poc_wasm-validate...
Assertion `enum_ == Enum::Reference' failed at wasm-validate
https://api.github.com/repos/WebAssembly/wabt/issues/1987/comments
1
2022-09-05T13:01:21Z
2022-09-17T23:30:37Z
https://github.com/WebAssembly/wabt/issues/1987
1,361,925,343
1,987
[ "WebAssembly", "wabt" ]
### Environment ``` OS : Linux ubuntu 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 3054d61f703d609995798f872fc86b462617c294 Version : 1.0.29 Build : make clang-debug-asan ``` ### Proof of concept poc_wasm2wat.wasm [poc_wasm2wat.wasm.zip]...
Assertion `enum_ == Enum::Reference' failed at wasm2wat
https://api.github.com/repos/WebAssembly/wabt/issues/1986/comments
1
2022-09-05T13:00:04Z
2022-09-17T23:28:33Z
https://github.com/WebAssembly/wabt/issues/1986
1,361,923,206
1,986
[ "WebAssembly", "wabt" ]
### Environment ``` OS : Linux ubuntu 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 3054d61f703d609995798f872fc86b462617c294 Version : 1.0.29 Build : make clang-debug-asan ``` ### Proof of concept poc_wasm2c-1.wasm [poc_wasm2c-1.wasm.zip]...
Aborted in CWriter::Write at wasm2c
https://api.github.com/repos/WebAssembly/wabt/issues/1985/comments
1
2022-09-05T12:58:25Z
2022-10-03T06:27:37Z
https://github.com/WebAssembly/wabt/issues/1985
1,361,920,430
1,985
[ "WebAssembly", "wabt" ]
### Title Aborted in CWriter::MangleType at wasm2c ### Environment ``` OS : Linux ubuntu 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 3054d61f703d609995798f872fc86b462617c294 Version : 1.0.29 Build : make clang-debug-asan ``` ### Proof o...
Aborted in CWriter::MangleType at wasm2c
https://api.github.com/repos/WebAssembly/wabt/issues/1984/comments
5
2022-09-05T12:57:12Z
2023-03-17T16:55:00Z
https://github.com/WebAssembly/wabt/issues/1984
1,361,918,475
1,984
[ "WebAssembly", "wabt" ]
### Environment ``` OS : Linux ubuntu 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 3054d61f703d609995798f872fc86b462617c294 Version : 1.0.29 Build : make clang-debug-asan ``` ### Proof of concept poc-interp-3.wasm [poc-interp-3.wasm.zip]...
Out-of-bound read in OnReturnCallIndirectExpr->GetReturnCallDropKeepCount
https://api.github.com/repos/WebAssembly/wabt/issues/1983/comments
1
2022-09-05T12:51:24Z
2022-09-17T19:15:54Z
https://github.com/WebAssembly/wabt/issues/1983
1,361,907,936
1,983
[ "WebAssembly", "wabt" ]
### Environment ``` OS : Linux ubuntu 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 3054d61f703d609995798f872fc86b462617c294 Version : 1.0.29 Build : make clang-debug-asan ``` ### Proof of concept poc-interp-2.wasm [poc-interp-2.wasm.zip]...
Out-of-bound read in OnReturnCallExpr->GetReturnCallDropKeepCount
https://api.github.com/repos/WebAssembly/wabt/issues/1982/comments
1
2022-09-05T12:50:49Z
2022-09-17T19:13:47Z
https://github.com/WebAssembly/wabt/issues/1982
1,361,906,900
1,982
[ "WebAssembly", "wabt" ]
### Environment ``` OS : Linux ubuntu 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 3054d61f703d609995798f872fc86b462617c294 Version : 1.0.29 Build : make clang-debug-asan ``` ### Proof of concept poc-interp-1.wasm [poc-interp-1.wasm....
heap overflow in wasm-interp
https://api.github.com/repos/WebAssembly/wabt/issues/1981/comments
1
2022-09-05T12:50:09Z
2022-09-17T19:11:15Z
https://github.com/WebAssembly/wabt/issues/1981
1,361,905,751
1,981
[ "WebAssembly", "wabt" ]
Even before my changes to the build (i.e. try on tag `1.0.29`) the code for running git-describe did nothing because of the following bogus check: https://github.com/WebAssembly/wabt/blob/3054d61f703d609995798f872fc86b462617c294/CMakeLists.txt#L53-L55 On a tagged version like `1.0.29`, the `CMAKE_PROJECT_VERSION`...
The git describe code does nothing
https://api.github.com/repos/WebAssembly/wabt/issues/1978/comments
0
2022-09-01T15:21:41Z
2022-09-05T18:59:22Z
https://github.com/WebAssembly/wabt/issues/1978
1,359,025,257
1,978
[ "WebAssembly", "wabt" ]
When configuring a git-clone of wabt on a non-tagged commit (like `main`), the following warning is issued: ``` CMake Warning at CMakeLists.txt:46 (message): fatal: No names found, cannot describe anything. Error running git describe to determine version ``` This comes from `git describe --tags` failing.
Noisy warnings from git describe
https://api.github.com/repos/WebAssembly/wabt/issues/1977/comments
0
2022-09-01T14:46:21Z
2022-09-05T18:59:22Z
https://github.com/WebAssembly/wabt/issues/1977
1,358,969,371
1,977
[ "WebAssembly", "wabt" ]
Hi, this is the first time I'm posting here and also the first time I'm trying to install wabt, so please bare with me if this isn't the right place to place this question. With that said, here it is. I am trying to install wabt on Kali Linux but cmake is giving me a strange error that I can't get past... It tells m...
No such file or directory wasm2c.top.h
https://api.github.com/repos/WebAssembly/wabt/issues/1975/comments
1
2022-08-30T19:25:54Z
2022-08-30T19:52:43Z
https://github.com/WebAssembly/wabt/issues/1975
1,356,204,121
1,975
[ "WebAssembly", "wabt" ]
When running the full test suite on i386, many floating-point-related failures occur. The test summary is reproduced below. ``` **** FAILED ****************************************************************** - test/spec/float_exprs.txt /ws/build/spectest-interp out/test/spec/float_exprs/float_exprs.json - tes...
Many floating-point errors on i386
https://api.github.com/repos/WebAssembly/wabt/issues/1973/comments
2
2022-08-27T22:29:39Z
2023-01-08T22:06:49Z
https://github.com/WebAssembly/wabt/issues/1973
1,353,189,285
1,973
[ "WebAssembly", "wabt" ]
When running the unittests on an s390x Docker image, the Rot13 test fails. ``` [ RUN ] InterpTest.Rot13 ../src/test-interp.cc:546: Failure Expected equality of these values: "Uryyb, JroNffrzoyl!" string_data Which is: "Hello, WebAssembly!" [ FAILED ] InterpTest.Rot13 (8 ms) ``` Here is a li...
Rot13 test fails on s390x
https://api.github.com/repos/WebAssembly/wabt/issues/1972/comments
9
2022-08-27T21:02:39Z
2023-10-27T00:56:27Z
https://github.com/WebAssembly/wabt/issues/1972
1,353,144,015
1,972
[ "WebAssembly", "wabt" ]
Hi, I'm using the `wast2json` tool to generate the test suites. In the spec test suites [L190-L192](https://github.com/WebAssembly/spec/blob/main/test/core/memory_init.wast#L190-L192) and [L227-L229](https://github.com/WebAssembly/spec/blob/main/test/core/memory_init.wast#L227-L229), authought they are the `assert_inv...
Lost Data Count Section when encoding from WAT in `wast2json` tool
https://api.github.com/repos/WebAssembly/wabt/issues/1959/comments
4
2022-08-14T01:02:29Z
2022-09-01T14:28:40Z
https://github.com/WebAssembly/wabt/issues/1959
1,338,101,026
1,959
[ "WebAssembly", "wabt" ]
Hi, I found that when I encode the following WAT into WASM by the `wat2wasm` binary tool in both `1.0.29` or `master`: (The WAT is in the [test case of the multiple memories proposal](https://github.com/WebAssembly/multi-memory/blob/main/test/core/memory-multi.wast#L47-L84)) ``` (module (memory 1) (memory...
Wrong encoding WAT format with the multiple memories proposal
https://api.github.com/repos/WebAssembly/wabt/issues/1958/comments
4
2022-08-14T00:09:41Z
2022-08-15T21:39:35Z
https://github.com/WebAssembly/wabt/issues/1958
1,338,088,244
1,958
[ "WebAssembly", "wabt" ]
0000004: error: bad magic value
decompiling error
https://api.github.com/repos/WebAssembly/wabt/issues/1956/comments
2
2022-08-11T23:17:00Z
2024-06-26T02:48:27Z
https://github.com/WebAssembly/wabt/issues/1956
1,336,584,807
1,956
[ "WebAssembly", "wabt" ]
The `wasm2wat` works fine, but `wasm2c` returns: `000002c: error: invalid section code: 12` Full output: wasm2wat: ``` (module (import "env" "__linear_memory" (memory (;0;) 1)) (data $_ZN5woff210kKnownTagsE (i32.const 0) "pamcdaehaehhxtmhpxameman2/SOtsop tvcmgpffylgacolperp FFCGROVTDBECLBEpsagxmdhnrekHSTLTLC...
000002c: error: invalid section code: 12
https://api.github.com/repos/WebAssembly/wabt/issues/1955/comments
3
2022-08-11T14:44:31Z
2022-08-14T23:53:18Z
https://github.com/WebAssembly/wabt/issues/1955
1,336,067,579
1,955
[ "WebAssembly", "wabt" ]
Hi, Here I am back again with some stupid question. The module I'm trying to run dynamically allocates with `malloc` (It's an emscripten WASM binary) I've worked out sending pointers from the inner runtime to the outside by "transforming" the pointer to `&memory->data[pointer]`, so my runtime can read the value...
[wasm2c] Passing pointer from outside of the runtime to inside the runtime
https://api.github.com/repos/WebAssembly/wabt/issues/1953/comments
1
2022-07-26T11:37:37Z
2022-07-26T13:56:10Z
https://github.com/WebAssembly/wabt/issues/1953
1,318,112,888
1,953
[ "WebAssembly", "wabt" ]
If I make a roundtrip through wabt of an object file, then some objects from WriteBinaryModule() end up with: ``` emnm libskia.SkGeometry.o /opt/emscripten-llvm/bin/llvm-nm: error: ./libskia.SkGeometry.o: duplicate symbol name sqrtf ``` I'm not really sure whats special about the sqrtf symbol in this object, b...
Roundtrip of object through ReadBinaryIR() -> WriteBinaryModule() result in : emnm : Error duplicate symbol.
https://api.github.com/repos/WebAssembly/wabt/issues/1952/comments
10
2022-07-21T19:34:01Z
2022-09-18T05:55:37Z
https://github.com/WebAssembly/wabt/issues/1952
1,313,711,717
1,952
[ "WebAssembly", "wabt" ]
I've been debugging my transformation, and I've found if I read in a wasm file with ReadBinaryIR() and then just write it back with no modification using WriteBinaryModule(), then I can't link with the new object. E.g. emnm gives and error, out of order section type:0 Interestingly, if I then do: ``` wasm2wat ou...
wabbt - ReadBinaryIR() -> WriteBinaryModule() -> emnm output.o :: error: output.o: out of order section type: 0
https://api.github.com/repos/WebAssembly/wabt/issues/1951/comments
1
2022-07-21T14:12:56Z
2022-07-21T15:40:39Z
https://github.com/WebAssembly/wabt/issues/1951
1,313,328,605
1,951
[ "WebAssembly", "wabt" ]
Hi, Lately I've been reverse engineering some software on the web that uses WebAssembly. I'm pretty familiar with it as I have developed applications with it myself. I found this beautiful program `wasm2c` to aid me in my efforts, but now I'm looking to inject code into the binary. My idea was to use `wasm2c` to dec...
(wasm2c) Re-compiling to WASM
https://api.github.com/repos/WebAssembly/wabt/issues/1950/comments
8
2022-07-20T15:45:53Z
2023-03-07T11:47:33Z
https://github.com/WebAssembly/wabt/issues/1950
1,311,382,556
1,950
[ "WebAssembly", "wabt" ]
wasm-rt.h is not fully documented on the following points, which is an issue when evaluating wasm2c for embedded targets (or any project that cannot rely on wasm-rt-impl.c): * What headers generated code and wasm-rt.h are depending on ? E.g. currently wasm-rt.h depends on `#include <setjmp.h>`. While standard, embed...
wasm2c's wasm-rt.h documentation
https://api.github.com/repos/WebAssembly/wabt/issues/1949/comments
5
2022-07-20T11:32:56Z
2022-08-15T17:50:15Z
https://github.com/WebAssembly/wabt/issues/1949
1,310,901,617
1,949
[ "WebAssembly", "wabt" ]
Hi, I would like to add a tool to wabt, that can make some simple modifications to the wasm module loaded. I've tried to iterate through the module and make some some changes, like renaming the functions.. But when I write the binary again, nothing has changed. Is it possible to do something like this with wa...
How to implement a transformation.
https://api.github.com/repos/WebAssembly/wabt/issues/1948/comments
1
2022-07-18T22:53:02Z
2022-07-19T00:04:57Z
https://github.com/WebAssembly/wabt/issues/1948
1,308,772,170
1,948
[ "WebAssembly", "wabt" ]
I was playing with tables and it _seems_ that `wat2wasm` doesn’t support `elem` sections as they are defined [spec](https://webassembly.github.io/spec/core/text/modules.html#element-segments). However, I might also be reading the spec wrong. Here are some examples I _think_ should work, but don’t: ```wat ;; `ite...
Element sections not fully spec compliant?
https://api.github.com/repos/WebAssembly/wabt/issues/1946/comments
4
2022-07-17T22:27:58Z
2022-07-18T14:38:57Z
https://github.com/WebAssembly/wabt/issues/1946
1,307,225,822
1,946
[ "WebAssembly", "wabt" ]
I have a WASM program written in text format that uses the `table.size` instruction. When using wat2wasm, and then passing that output to wasm2c, I get the following error: error: unexpected opcode: 0xfc 0x10 I'm using WABT 1.0.29 on macOS. FYI, I also use `table.grow`.
wasm2c: Support `table.size`
https://api.github.com/repos/WebAssembly/wabt/issues/1944/comments
2
2022-07-10T17:46:29Z
2022-07-13T18:44:40Z
https://github.com/WebAssembly/wabt/issues/1944
1,299,977,908
1,944
[ "WebAssembly", "wabt" ]
Hello! Just getting started with WebAssembly. Downloaded, built, and installed the `wabt` repository on my Windows system. I created a simple `.wat` file (`test.wat`): ```wat (module) ``` Then, I ran `wat2wasm` to "parse and typecheck" the file: ```bash $ wat2wasm test.wat ``` I was surprised to see t...
wat2wasm compiles to .wasm with no options, contrary to documentation
https://api.github.com/repos/WebAssembly/wabt/issues/1941/comments
4
2022-07-07T02:56:18Z
2022-07-08T20:40:33Z
https://github.com/WebAssembly/wabt/issues/1941
1,296,723,883
1,941
[ "WebAssembly", "wabt" ]
### Environment ``` OS : Linux ubuntu 5.13.0-51-generic #58~20.04.1-Ubuntu SMP Tue Jun 14 11:29:12 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Commit : 57e6a58bfdd0babfd6f7fe401c9f2d8238ec3213 Version : 1.0.29 ``` ### Proof of concept [poc.wasm.zip](https://github.com/WebAssembly/wabt/files/8973781/poc.wasm....
Segmentation fault in wabt::cat_compute_size
https://api.github.com/repos/WebAssembly/wabt/issues/1938/comments
1
2022-06-24T06:43:25Z
2023-03-17T11:32:55Z
https://github.com/WebAssembly/wabt/issues/1938
1,283,331,255
1,938
[ "WebAssembly", "wabt" ]
The goal is to run the code locally with wasmtime. wat from WasmFiddle [native_messaging_host_c_wat.txt](https://github.com/WebAssembly/wabt/files/8945714/native_messaging_host_c_wat.txt) Errors from wat2wasm demo ``` ​ Error: parseWat failed: test.wast:11:11: error: unexpected token "anyfunc", expec...
wat2wasm demo throws error for wat from wasdk/WasmFiddle
https://api.github.com/repos/WebAssembly/wabt/issues/1937/comments
6
2022-06-21T04:15:35Z
2022-06-21T07:56:02Z
https://github.com/WebAssembly/wabt/issues/1937
1,277,857,168
1,937
[ "WebAssembly", "wabt" ]
``` PS C:\users\XXXXXX\desktop\wabt-main\build> cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_INSTALL_PREFIX=..\ -G "Visual Studio 17 2022" -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044. -- The C compiler identification is MSVC 19.30.30709.0 -- The CXX compiler identification is MSVC 19.30....
Trying to CMake on windows but got Configuring incomplete
https://api.github.com/repos/WebAssembly/wabt/issues/1936/comments
1
2022-06-15T03:26:35Z
2022-06-17T14:40:03Z
https://github.com/WebAssembly/wabt/issues/1936
1,271,618,242
1,936
[ "WebAssembly", "wabt" ]
wasm2c (v1.0.23) throws 0000075: error: invalid section code: 12 Checked spec, and there is such a section: https://webassembly.github.io/spec/core/binary/modules.html#data-count-section
0000075: error: invalid section code: 12
https://api.github.com/repos/WebAssembly/wabt/issues/1935/comments
1
2022-06-14T22:02:50Z
2022-06-15T05:05:52Z
https://github.com/WebAssembly/wabt/issues/1935
1,271,410,993
1,935
[ "WebAssembly", "wabt" ]
I have a WASM program written in text format that uses bulk memory operations. When using wat2wasm, and then passing that output to wasm2c, I get the following error: > error: unexpected opcode: 0xfc 0xa I'm using WABT 1.0.29 on macOS.
Bulk memory problem with wat2wasm + wasm2c
https://api.github.com/repos/WebAssembly/wabt/issues/1934/comments
2
2022-06-10T18:44:35Z
2022-07-13T18:45:33Z
https://github.com/WebAssembly/wabt/issues/1934
1,267,891,964
1,934
[ "WebAssembly", "wabt" ]
from the example https://github.com/WebAssembly/wabt/blob/main/wasm2c/README.md, no multi instance example. I mean create multi vm instance, and load diff module and run at diff memory block.
multi instance of wasm2c support
https://api.github.com/repos/WebAssembly/wabt/issues/1933/comments
6
2022-06-02T09:34:23Z
2022-06-21T05:50:51Z
https://github.com/WebAssembly/wabt/issues/1933
1,257,938,064
1,933
[ "WebAssembly", "wabt" ]
Commit: `83a226bcd1816c86fb1fcb0963c6a11e2c373aaf` ## Reproduce Sample: [interp_sig_index_oob.zip](https://github.com/WebAssembly/wabt/files/8789638/interp_sig_index_oob.zip) ```bash ./wasm-objdump -d interp_sig_index_oob.wasm ./wasm-interp --enable-tail-call interp_sig_index_oob.wasm ``` Output: ``...
Out-of-bound Read at `BinaryReaderInterp::OnReturnCallIndirectExpr`
https://api.github.com/repos/WebAssembly/wabt/issues/1929/comments
2
2022-05-27T20:45:58Z
2022-09-17T18:35:32Z
https://github.com/WebAssembly/wabt/issues/1929
1,251,258,400
1,929
[ "WebAssembly", "wabt" ]
Tried with d8517aa9. test.wast: ```wast (module binary "\00asm" "\01\00\00\00" "\04\04\01" ;; Table section with 1 entry "\70\00\00" ;; no max, minimum 0, funcref "\09\09\01" ;; Element section with 1 entry "\02" ...
wast2json changes element section contents in `(module binary ...)`
https://api.github.com/repos/WebAssembly/wabt/issues/1927/comments
13
2022-05-26T13:46:57Z
2022-06-06T18:04:31Z
https://github.com/WebAssembly/wabt/issues/1927
1,249,597,202
1,927
[ "WebAssembly", "wabt" ]
I convert the file into a C file and compile the code using gcc. `mv webgl.wasm.unity webgl.wasm.gz` `gunzip webgl.wasm.gz` `wasm2c webgl.wasm` `gcc -c webgl.wasm -o webgl` gcc quits the shell without any prompt.
Use wasm2c to convert unityweb into c
https://api.github.com/repos/WebAssembly/wabt/issues/1926/comments
1
2022-05-25T05:51:30Z
2022-05-25T07:35:39Z
https://github.com/WebAssembly/wabt/issues/1926
1,247,521,729
1,926
[ "WebAssembly", "wabt" ]
wasm2c is failing several spec tests if we add `-O` or `-O2` to the compiler command line. - Example commit here: https://github.com/fixpointOS/wabt/commit/551b3dba69f9d35ddf0271e0e0383e3525d2e50f - Corresponding CI output on Ubuntu: https://github.com/fixpointOS/wabt/runs/6547538885?check_suite_focus=true There...
Several spec tests fail if wasm2c output compiled with `-O` or `-O2`
https://api.github.com/repos/WebAssembly/wabt/issues/1925/comments
5
2022-05-23T21:59:01Z
2022-07-12T00:12:50Z
https://github.com/WebAssembly/wabt/issues/1925
1,245,740,051
1,925
[ "WebAssembly", "wabt" ]
Commit: `d8517aa922ddd3ffd6d7f28f00d2bb0f9853cf88` ## Reproduce Fuzzed Sample: [wabt_decomp_is_name_assert.zip](https://github.com/WebAssembly/wabt/files/8750089/wabt_decomp_is_name_assert.zip) Simplified Sample: ``` $ cat simplified.wat (module (type (;0;) (func (result i64))) (func (;0;) (type 0)...
Assertion `is_name()` failed at wasm-decompiler caused by empty global name
https://api.github.com/repos/WebAssembly/wabt/issues/1924/comments
3
2022-05-22T19:08:09Z
2022-09-17T18:35:32Z
https://github.com/WebAssembly/wabt/issues/1924
1,244,340,785
1,924
[ "WebAssembly", "wabt" ]
Commit: `d8517aa922ddd3ffd6d7f28f00d2bb0f9853cf88` ## Reproduce Fuzzed Sample: [decomp_heap_of.zip](https://github.com/WebAssembly/wabt/files/8748689/decomp_heap_of.zip) Simplified Sample: ``` $ cat simplified.wat (module (type (;0;) (func (param i32 i64 i64 f32) (result i32 i64 i64 f64))) (func (...
Memory corruption at wasm-decompile caused by unmatched parameters
https://api.github.com/repos/WebAssembly/wabt/issues/1923/comments
1
2022-05-22T03:14:08Z
2022-05-22T03:54:00Z
https://github.com/WebAssembly/wabt/issues/1923
1,244,134,438
1,923
[ "WebAssembly", "wabt" ]
Commit: `d8517aa922ddd3ffd6d7f28f00d2bb0f9853cf88` ## Reproduce Fuzzed Sample: [decomp_size_ge_nargs.zip](https://github.com/WebAssembly/wabt/files/8748269/decomp_size_ge_nargs.zip) Simplified Sample: ```bash $ cat simplified.wat (module (type (;0;) (func (param i32 i32) (result i32))) (func (;0;)...
OOB Read at wasm-decompile caused by lack of BrTable handling
https://api.github.com/repos/WebAssembly/wabt/issues/1922/comments
0
2022-05-21T19:52:13Z
2022-09-17T18:35:31Z
https://github.com/WebAssembly/wabt/issues/1922
1,244,068,730
1,922
[ "WebAssembly", "wabt" ]
null
any way to link multi wat file to one module?
https://api.github.com/repos/WebAssembly/wabt/issues/1921/comments
1
2022-05-17T09:26:10Z
2022-05-17T20:44:30Z
https://github.com/WebAssembly/wabt/issues/1921
1,238,347,331
1,921
[ "WebAssembly", "wabt" ]
Commit: `d8517aa922ddd3ffd6d7f28f00d2bb0f9853cf88` Reproduce: ```bash ./wasm2wat_fuzzer < ./wabt_intrusive_list_back.wasm ``` Stack Trace: ``` #4 0x00000000004c3963 in wabt::intrusive_list<wabt::Expr>::back() () #5 0x00000000004c2cfa in wabt::(anonymous namespace)::BinaryReaderIR::TopLabelExpr(wabt::(an...
Assertion `!empty()` failed at `wabt::intrusive_list<wabt::Expr>::back()` of `intrusive-list.h:402`
https://api.github.com/repos/WebAssembly/wabt/issues/1920/comments
0
2022-05-16T17:33:19Z
2022-05-18T01:38:09Z
https://github.com/WebAssembly/wabt/issues/1920
1,237,478,158
1,920
[ "WebAssembly", "wabt" ]
It looks like `wamrc` currently supports generating LLVM optimized and unoptimzed code. I am looking to run some instrumentation passes on this LL file and generate an AoT executable again. However, function labels seem to be discarded in the generated LL file (particularly the `main` or `start` function), and it c...
wamrc: Compiling generated LL files
https://api.github.com/repos/WebAssembly/wabt/issues/1916/comments
2
2022-05-03T19:43:28Z
2022-05-03T22:56:06Z
https://github.com/WebAssembly/wabt/issues/1916
1,224,535,960
1,916
[ "WebAssembly", "wabt" ]
In the process of re-compiling the output of `wasm2c`, the `wasm-rt-impl.c` file requires `setjmp.h`, which cannot be found by the wasi-sdk clang release. How do you get around this? Thanks!
wasm2c compilation error: 'setjmp.h' cannot be found
https://api.github.com/repos/WebAssembly/wabt/issues/1914/comments
8
2022-05-03T14:56:25Z
2022-05-18T01:49:13Z
https://github.com/WebAssembly/wabt/issues/1914
1,224,214,725
1,914
[ "WebAssembly", "wabt" ]
null
F
https://api.github.com/repos/WebAssembly/wabt/issues/1913/comments
0
2022-05-02T01:28:30Z
2022-05-02T03:15:15Z
https://github.com/WebAssembly/wabt/issues/1913
1,222,378,738
1,913
[ "WebAssembly", "wabt" ]
(Spinning this off from https://github.com/WebAssembly/wabt/pull/1814#discussion_r850917266) Here is a proposal for how to improve safety when linking multiple modules together with wasm2c. As background: - At present, for every import **or** export, wasm2c writes an extern declaration in the generated header ...
wasm2c linking safety (enforcing import subtyping rules at compile time)
https://api.github.com/repos/WebAssembly/wabt/issues/1908/comments
9
2022-04-26T09:03:12Z
2022-07-04T06:24:27Z
https://github.com/WebAssembly/wabt/issues/1908
1,215,636,966
1,908
[ "WebAssembly", "wabt" ]
Tried https://webassembly.github.io/wabt/demo/wat2wasm/ feeding in some simple Wat with exception definitions: ![image](https://user-images.githubusercontent.com/5368500/165032910-6e6a82be-83b4-4858-b6e7-2810b5e36c99.png) I do not get the errors if I run the tool manually.
Make online wat2wasm respect the enable exception flag
https://api.github.com/repos/WebAssembly/wabt/issues/1906/comments
8
2022-04-25T06:32:44Z
2022-12-23T04:53:16Z
https://github.com/WebAssembly/wabt/issues/1906
1,214,037,831
1,906
[ "WebAssembly", "wabt" ]
Since this is a repo in the org for the W3C core recommendation, I think it is a fair ask to have a flag that constrains features to what's included in that, and no more. It will help with tracking https://github.com/WebAssembly/wabt#supported-proposals and make upgrades seamless. I'm not asking for this to be by de...
Add a flag that constrains features to the W3C recommendation
https://api.github.com/repos/WebAssembly/wabt/issues/1899/comments
7
2022-04-14T00:02:48Z
2022-04-14T00:36:09Z
https://github.com/WebAssembly/wabt/issues/1899
1,203,896,313
1,899
[ "WebAssembly", "wabt" ]
When function indices are used in `ref.func`, there is a check to make sure the index is declared in the element section before the code section. However, this check is too strong in wabt as uses in the global section should be ok. Example: ``` ;; the reference in the global is ok (module (func $f1) (global fun...
[reference types]: `ref.func` declaration check is overly strict
https://api.github.com/repos/WebAssembly/wabt/issues/1893/comments
1
2022-04-12T20:43:59Z
2022-04-13T20:07:30Z
https://github.com/WebAssembly/wabt/issues/1893
1,202,368,716
1,893
[ "WebAssembly", "wabt" ]
It would be great to be able to copy-paste the binary .wasm output as base64 rather than having to download it. Thank you!
RFE: Make online wat2wasm demo output base64
https://api.github.com/repos/WebAssembly/wabt/issues/1891/comments
4
2022-04-07T16:20:24Z
2022-04-26T18:15:59Z
https://github.com/WebAssembly/wabt/issues/1891
1,196,285,223
1,891
[ "WebAssembly", "wabt" ]
An example program like the following should fail during validation: ``` ;;; TOOL: wat2wasm ;;; ARGS: --enable-function-references ;;; ERROR: 1 (module (func (param $f (ref $x)) (result f32)) ) (;; STDERR ;;; ;;; STDERR ;;) ``` Because the `ref $x` is unbound. Right now this will trigger an assert...
Typed funcref: handle unbound type names in validation
https://api.github.com/repos/WebAssembly/wabt/issues/1890/comments
2
2022-04-05T02:05:16Z
2022-04-11T09:35:16Z
https://github.com/WebAssembly/wabt/issues/1890
1,192,511,737
1,890
[ "WebAssembly", "wabt" ]
When building wabt-1.0.28 with gcc-12.0.1 (Fedora 36 Beta), I'm getting these new testsuite failures: ``` ... - test/wasm2c/spec/names.txt expected error code 0, got 1. STDERR MISMATCH: --- expected +++ actual @@ -0,0 +1,139 @@ +In file included from out/test/wasm2c/spec/names/names.2.c:5: +out/...
testsuite failures due to new warnings in GCC 12
https://api.github.com/repos/WebAssembly/wabt/issues/1885/comments
1
2022-04-04T08:13:52Z
2023-03-15T02:06:03Z
https://github.com/WebAssembly/wabt/issues/1885
1,191,419,770
1,885
[ "WebAssembly", "wabt" ]
This is the wat file used: ```wat (module (func $how_old (param $year_now i32) (param $year_born i32) (result i32) get_local $year_now get_local $year_born i32.sub) (export "how_old" (func $how_old)) ) ``` I am using the binary for 1.0.28
wat2wasm failing with: unexpected token get_local, expected ).
https://api.github.com/repos/WebAssembly/wabt/issues/1883/comments
3
2022-04-02T17:03:22Z
2022-04-03T04:20:40Z
https://github.com/WebAssembly/wabt/issues/1883
1,190,685,597
1,883
[ "WebAssembly", "wabt" ]
Non-null references are opcode `-0x15` and are supported already in wabt. Nullable references (opcode `-0x14`) should also be supported. https://github.com/WebAssembly/function-references/blob/main/proposals/function-references/Overview.md#binary-format
Typed funcref support should include nullable references
https://api.github.com/repos/WebAssembly/wabt/issues/1882/comments
0
2022-04-01T18:46:37Z
2022-04-01T18:46:46Z
https://github.com/WebAssembly/wabt/issues/1882
1,190,154,931
1,882
[ "WebAssembly", "wabt" ]
A test like the following currently crashes in type-checking: ``` ;;; TOOL: wat2wasm ;;; ARGS: --enable-function-references ;;; ERROR: 1 (module (type $f32-f32-1 (func (param f32) (result f32))) (type $f32-f32-2 (func (param f32) (result f32))) (func $foo (param $f (ref $f32-f32-1)) (result f32) ...
Type funcref crash due to ref type getting read as "any" type instead of a ref type
https://api.github.com/repos/WebAssembly/wabt/issues/1881/comments
1
2022-04-01T17:15:47Z
2022-04-04T23:36:38Z
https://github.com/WebAssembly/wabt/issues/1881
1,190,074,424
1,881
[ "WebAssembly", "wabt" ]
On line 311, undefined is spelled as undefine. @nickvidal can I work on this?
Omitted letter in word in the README.md file
https://api.github.com/repos/WebAssembly/wabt/issues/1879/comments
0
2022-04-01T12:18:54Z
2022-04-04T16:49:18Z
https://github.com/WebAssembly/wabt/issues/1879
1,189,715,160
1,879
[ "WebAssembly", "wabt" ]
1.24 has no problem, but current versions including latest mistake the table element ID for re-defining the element: ```bash ~/Downloads/wabt-1.0.28/bin/wast2json --debug-names ./tests/spectest/testdata/elem.wast ./tests/spectest/testdata/elem.wast:16:4: error: redefinition of elem "$t" (elem $t (i32.const 0)...
Issue decoding table elements
https://api.github.com/repos/WebAssembly/wabt/issues/1878/comments
7
2022-04-01T06:22:31Z
2022-04-14T00:11:12Z
https://github.com/WebAssembly/wabt/issues/1878
1,189,302,941
1,878
[ "WebAssembly", "wabt" ]
There is some support for the GC proposal in wabt already behind a flag, but it predates the current design for the proposal (that recently went to phase 2) that includes new type constructs like `rec`, `sub`, and so on. Now that the design is more stable, it could be a good time to catch up support in wabt. I'm int...
Update GC proposal support to recent phase 2 version
https://api.github.com/repos/WebAssembly/wabt/issues/1874/comments
3
2022-03-30T17:11:08Z
2023-12-14T17:04:38Z
https://github.com/WebAssembly/wabt/issues/1874
1,186,754,270
1,874
[ "WebAssembly", "wabt" ]
null
add an homebrew method of installation for all tools
https://api.github.com/repos/WebAssembly/wabt/issues/1873/comments
8
2022-03-28T14:07:37Z
2022-03-29T15:18:20Z
https://github.com/WebAssembly/wabt/issues/1873
1,183,498,549
1,873
[ "WebAssembly", "wabt" ]
Attempting to use wat2wasm.exe on Twitch's source, downloadable [here](https://static.twitchcdn.net/assets/amazon-ivs-wasmworker.min-516e603bd6ff6160ceb3.wasm), produces this error: `wat2wasm.exe amazon-ivs-wasmworker.min-516e603bd6ff6160ceb3.wasm -o out.wasm` ``` amazon-ivs-wasmworker.min-516e603bd6ff6160ceb3.wasm:...
wat2wasm error: unexpected token current_memory
https://api.github.com/repos/WebAssembly/wabt/issues/1868/comments
3
2022-03-17T12:56:19Z
2022-03-22T21:08:25Z
https://github.com/WebAssembly/wabt/issues/1868
1,172,349,579
1,868
[ "WebAssembly", "wabt" ]
@sbc100 I have updated the test suite according to your suggestion. There are 94 new failures introduced. Output: https://gist.github.com/zherczeg/be736057cf92b09c1d6eed752f548c4b The following files are added (count: 81). It seems all of them fails, although I have not checked all of them. Maybe these needs t...
Update test suite
https://api.github.com/repos/WebAssembly/wabt/issues/1867/comments
1
2022-03-17T09:21:24Z
2022-04-01T18:11:38Z
https://github.com/WebAssembly/wabt/issues/1867
1,172,124,620
1,867
[ "WebAssembly", "wabt" ]
I'm not quite sure if this a bug, but I think it's not quite in sync with the official spec. From my wasm file's disassembly, wasm-objdump generate the following line: ``` 00b994: 11 87 80 80 80 00 00 | call_indirect 7 0 ``` This here should have the type index 7 and the table index 0. Unfortunately...
call_indirect in wasm-objdump switches x and y
https://api.github.com/repos/WebAssembly/wabt/issues/1865/comments
7
2022-03-12T21:53:15Z
2022-03-17T17:56:15Z
https://github.com/WebAssembly/wabt/issues/1865
1,167,410,684
1,865
[ "WebAssembly", "wabt" ]
This is probably not within the purvey of `WebAssembly` though you are th experts re compilation/decompilation of native code, and Google recommends migrating from Native Client to WebAssembly https://developer.chrome.com/docs/native-client/migration/. Google released an extension which relies on Native Client that ...
How to extract source code from Native Client .nexe file, migrate to WebAssembly?
https://api.github.com/repos/WebAssembly/wabt/issues/1864/comments
8
2022-03-12T16:29:31Z
2022-03-14T01:20:35Z
https://github.com/WebAssembly/wabt/issues/1864
1,167,333,582
1,864
[ "WebAssembly", "wabt" ]
My wat is : ``` (module (func $thirteen (result i32) (i32.const 13)) (func $fourtytwo (result i32) (i32.const 42)) (table (export "tbl") anyfunc (elem $thirteen $fourtytwo)) ) ``` when i excute : `wat2wasm table.wat -o table.wasm` I get an error: ``` table.wat:4:25: error: unexpected token "...
unexpected token "anyfunc", expected a natural number
https://api.github.com/repos/WebAssembly/wabt/issues/1863/comments
3
2022-03-11T10:05:31Z
2022-03-30T19:17:26Z
https://github.com/WebAssembly/wabt/issues/1863
1,166,228,497
1,863
[ "WebAssembly", "wabt" ]
;tldr; I think we should. It has been proposed in #1833 that we don't need to be mangling the names at all (except to turn them into valid C symbols). In particular there is no need to append the mangled signature to the symbol names. e.g. foo_vi (for a void function `foo` that takes an i32). For exports ther...
Should we remove signature mangling from wasm2c output?
https://api.github.com/repos/WebAssembly/wabt/issues/1858/comments
8
2022-03-09T19:25:18Z
2022-04-14T07:58:11Z
https://github.com/WebAssembly/wabt/issues/1858
1,164,345,903
1,858
[ "WebAssembly", "wabt" ]
Currently it seems these are the only tests that test `--disable-`: - https://github.com/WebAssembly/wabt/blob/1f3a1d5fae0296fdf503968131905be9e8f40cf4/test/parse/expr/atomic-disabled.txt - https://github.com/WebAssembly/wabt/blob/1f3a1d5fae0296fdf503968131905be9e8f40cf4/test/parse/expr/bulk-memory-disabled.txt - ...
There should be more tests for --enable- and --disable-
https://api.github.com/repos/WebAssembly/wabt/issues/1837/comments
1
2022-02-22T16:05:12Z
2022-02-22T16:07:20Z
https://github.com/WebAssembly/wabt/issues/1837
1,147,093,907
1,837
[ "WebAssembly", "wabt" ]
Running the 1.0.25 testsuite on 32-bit ARM and 32-bit x86 yields failures in these tests: ``` dump/reference-types.txt dump/relocations-all-features.txt dump/relocations.txt dump/table.txt ``` I can reproduce this across all currently supported Fedora releases (34, 35 and rawhide). Log extract below: ``` [......
1.0.25: new test failures on 32-bit arches
https://api.github.com/repos/WebAssembly/wabt/issues/1822/comments
4
2022-02-08T09:24:59Z
2022-04-04T08:32:03Z
https://github.com/WebAssembly/wabt/issues/1822
1,126,994,136
1,822
[ "WebAssembly", "wabt" ]
Build from source on macOS 12.3 beta with cmake 3.19.2 The input file (add1.wat) should not contain any errors. ``` (module (func $add (param $lhs i32) (param $rhs i32) (result i32) get_local $lhs get_local $rhs i32.add) (export "add" (func $add)) ) ``` Run `wat2wasm add1.wat -o add.wasm...
wabt2wasm error: unexpected token get_local
https://api.github.com/repos/WebAssembly/wabt/issues/1820/comments
2
2022-02-04T05:58:54Z
2022-02-04T09:12:19Z
https://github.com/WebAssembly/wabt/issues/1820
1,123,846,818
1,820
[ "WebAssembly", "wabt" ]
I was inspecting the binary wasm file to clarify the wasm spec, and I noticed that version `1.0.23` of `wat2wasm` was producing non-canonical varints, for the `i32.const` I checked on the current main branch and it's a problem there too, it doesn't seem it was fixed by: https://github.com/WebAssembly/wabt/pull/1632 ...
wat2wasm produces non-cannonical varint
https://api.github.com/repos/WebAssembly/wabt/issues/1816/comments
2
2022-01-31T13:13:22Z
2023-02-13T08:47:26Z
https://github.com/WebAssembly/wabt/issues/1816
1,119,412,881
1,816
[ "WebAssembly", "wabt" ]
So far as I can tell, wasm-objdump doesn't use local names when printing instructions such as local.get. I wanted to check if this was so (rather than, for instance, my test file specifying the names incorrectly -- wasm2wat includes the names, so I assume this isn't the case), and whether there would be any interest in...
Local names in wasm-objdump -x
https://api.github.com/repos/WebAssembly/wabt/issues/1815/comments
1
2022-01-30T21:58:44Z
2022-02-02T20:27:44Z
https://github.com/WebAssembly/wabt/issues/1815
1,118,732,646
1,815
[ "WebAssembly", "wabt" ]
According to [the MVP spec](https://www.w3.org/TR/wasm-core-1/#text-functype), a type can include symbolic IDs for parameters. It [elaborates](https://www.w3.org/TR/wasm-core-1/#functions%E2%91%A2) that a function's local index is its parameters followed by its locals. Finally, it [states](https://www.w3.org/TR/wasm-co...
text format: local index isn't enforced on type parameter IDs
https://api.github.com/repos/WebAssembly/wabt/issues/1813/comments
1
2022-01-25T01:31:55Z
2022-01-26T23:25:10Z
https://github.com/WebAssembly/wabt/issues/1813
1,113,321,744
1,813
[ "WebAssembly", "wabt" ]
Why is WABT version 1.0.26 marked as a pre-release version and not the latest version? My unit test use https://github.com/WebAssembly/wabt/releases/latest for execution and are broken.
1.0.26 Pre-release
https://api.github.com/repos/WebAssembly/wabt/issues/1812/comments
0
2022-01-22T13:48:08Z
2022-02-19T11:38:39Z
https://github.com/WebAssembly/wabt/issues/1812
1,111,569,221
1,812
[ "WebAssembly", "wabt" ]
Some features are really hard to implement without typed unions like std::variant and other features from c++17. For example, with typed function references and gc proposal we have named types during parsing `(ref null $foo_func)` and `(ref null $struct_type)` but we can't just add `std::string` to struct Type becau...
Move to c++ 17
https://api.github.com/repos/WebAssembly/wabt/issues/1811/comments
1
2022-01-21T12:33:40Z
2022-02-11T17:41:49Z
https://github.com/WebAssembly/wabt/issues/1811
1,110,421,726
1,811
[ "WebAssembly", "wabt" ]
Latest version 1.0.25 seems to fail reading param names following a type field. this is allowed by spec and works with wasm-tools. https://www.w3.org/TR/wasm-core-1/#type-uses%E2%91%A0 ``` (module (type $i32i32_i32 (func (param i32 i32) (result i32))) (import "Math" "Mul" (func $mul (param $x f32)...
Fails reading local name after inlined type
https://api.github.com/repos/WebAssembly/wabt/issues/1806/comments
3
2022-01-13T23:47:22Z
2022-01-15T00:17:42Z
https://github.com/WebAssembly/wabt/issues/1806
1,102,595,529
1,806
[ "WebAssembly", "wabt" ]
Hello all, I would like to start a conversation about the best way to make wasm2c thread-safe so that the same module can be instantiated multiple times with different memory contexts, and functions from different instances can be executed in parallel. Our current plan was to move global memory variables into a stru...
Thoughts on making wasm2c thread-safe
https://api.github.com/repos/WebAssembly/wabt/issues/1805/comments
4
2022-01-13T21:11:55Z
2022-04-14T23:28:59Z
https://github.com/WebAssembly/wabt/issues/1805
1,102,382,737
1,805
[ "WebAssembly", "wabt" ]
running `wasm-strip` 1.0.24 on one of our Rust-compiled, with SIMD enabled, WASM modules fails with: ``` 0000a70: error: expected valid local type ``` and another similar one (repro binary: [opcode_fail_module.wasm.zip](https://github.com/WebAssembly/wabt/files/7854907/opcode_fail_module.wasm.zip)) fail with: ``...
wasm-strip fails on module with SIMD instructions
https://api.github.com/repos/WebAssembly/wabt/issues/1803/comments
2
2022-01-12T13:28:07Z
2022-04-27T04:41:45Z
https://github.com/WebAssembly/wabt/issues/1803
1,100,343,043
1,803
[ "WebAssembly", "wabt" ]
I have downloaded **wabt** in my Linux Mint machine, but when I try to use the **wat2wasm _file.wat_** command into a simple example like this, it gives me error. ``` (module (func $add (param $lhs i32) (param $rhs i32) (result i32) get_local $lhs get_local $rhs i32.add) (export "add" (func $add)) ) ``` T...
wat2wasm gives error: unexpected token get_local
https://api.github.com/repos/WebAssembly/wabt/issues/1802/comments
6
2022-01-11T20:13:17Z
2022-09-05T07:52:55Z
https://github.com/WebAssembly/wabt/issues/1802
1,099,576,889
1,802
[ "WebAssembly", "wabt" ]
See https://github.com/WebAssembly/binaryen/issues/4418 for details. It looks like on imported functions wabt's name section emitting code will emit an empty name for params. That is, the empty string "". That seems like a bug to me as it is not useful for a debugger (the index would be better than the name).
Empty param name in name section for imported functions
https://api.github.com/repos/WebAssembly/wabt/issues/1799/comments
9
2022-01-06T21:23:34Z
2022-01-08T21:48:39Z
https://github.com/WebAssembly/wabt/issues/1799
1,095,706,985
1,799
[ "WebAssembly", "wabt" ]
In `SharedValidator::OnFuncType`, there is this code: ``` if (!options_.features.multi_value_enabled() && result_count > 1) { result |= PrintError(loc, "multiple result values not currently supported."); } ``` WABT does indeed support multi-value, however. Maybe the error message should say 'n...
Wording of error message 'multiple result values not currently supported'
https://api.github.com/repos/WebAssembly/wabt/issues/1796/comments
2
2021-12-23T19:47:54Z
2022-01-10T15:59:46Z
https://github.com/WebAssembly/wabt/issues/1796
1,087,956,833
1,796
[ "WebAssembly", "wabt" ]
Describe the bug A bug was found within the wabt. Though it might not be an intended use of the relevant API, the bug can still produce critical issues within a program using wabt. It would be best if the affected logic is checked beforehand. The bug was found with a fuzzer based on the function "WastParser.LongToken...
Bug report on wabt( AddressSanitizer: OOM)
https://api.github.com/repos/WebAssembly/wabt/issues/1794/comments
0
2021-12-23T01:25:28Z
2022-09-18T05:13:37Z
https://github.com/WebAssembly/wabt/issues/1794
1,087,297,335
1,794
[ "WebAssembly", "wabt" ]
Describe the bug A bug was found within the wabt. Though it might not be an intended use of the relevant API, the bug can still produce critical issues within a program using wabt. It would be best if the affected logic is checked beforehand. The bug was found with a fuzzer based on the function "string_view.rfind2"....
Bug report on wabt( AddressSanitizer: SEGV)
https://api.github.com/repos/WebAssembly/wabt/issues/1793/comments
2
2021-12-23T01:22:31Z
2022-09-18T05:13:56Z
https://github.com/WebAssembly/wabt/issues/1793
1,087,296,349
1,793