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.91B | issue_number int64 1 131k |
|---|---|---|---|---|---|---|---|---|---|
[
"WebAssembly",
"wabt"
] | This is unfortunately a bit of a difficult issue to reproduce, but the gist of the issue is that `wasm2wat` will normalize an elem segment when printing, so the text format isn't necessarily faithful to how the binary format was written down.
The general idea is with an element segment that looks like `(elem (;0;) f... | wasm2wat normalizes element segments when printing | https://api.github.com/repos/WebAssembly/wabt/issues/1447/comments | 1 | 2020-05-29T15:27:56Z | 2020-05-29T17:59:18Z | https://github.com/WebAssembly/wabt/issues/1447 | 627,351,258 | 1,447 |
[
"WebAssembly",
"wabt"
] | Given this input wat:
```wasm
(module $n
(table $t 0 funcref)
(table $u 0 funcref)
(elem $e 0)
(func
i32.const 0
i32.const 0
i32.const 0
table.copy $t $u)
(func
i32.const 0
i32.const 0
i32.const 0
table.init $u $e)
)
```
this prints out as:
```
$ wat... | wasm2wat: table.init and table.copy don't print table indices | https://api.github.com/repos/WebAssembly/wabt/issues/1445/comments | 0 | 2020-05-28T19:58:32Z | 2020-05-29T00:03:37Z | https://github.com/WebAssembly/wabt/issues/1445 | 626,775,588 | 1,445 |
[
"WebAssembly",
"wabt"
] | This input wat file:
```wasm
(module
(func
ref.null func
ref.null func
i32.const 0
select (result funcref)
drop
)
)
```
will succesfully get encoded in wasm, but when it comes back out it's printed with the wrong `select` instruction:
```
$ wat2wasm foo.wat -o foo.wasm --enab... | wasm2wat loses type information on `select` instruction (reference types) | https://api.github.com/repos/WebAssembly/wabt/issues/1444/comments | 0 | 2020-05-28T19:55:02Z | 2020-05-29T19:46:55Z | https://github.com/WebAssembly/wabt/issues/1444 | 626,773,581 | 1,444 |
[
"WebAssembly",
"wabt"
] | Currently it looks like `wasm2wat` doesn't print the table index for element segments if they're active on a nonzero table. For example with this input:
```wat
(module
(table 1 funcref)
(table 1 funcref)
(elem (table 1) (i32.const 0) 0)
(func)
)
```
will print:
```
$ wat2wasm foo.wat --enable-a... | `wasm2wat` doesn't print nonzero table indices | https://api.github.com/repos/WebAssembly/wabt/issues/1443/comments | 0 | 2020-05-28T19:40:17Z | 2020-05-29T00:03:37Z | https://github.com/WebAssembly/wabt/issues/1443 | 626,765,432 | 1,443 |
[
"WebAssembly",
"wabt"
] | Link to wasm-decompile on main page 404s | https://api.github.com/repos/WebAssembly/wabt/issues/1441/comments | 1 | 2020-05-27T22:41:12Z | 2020-05-27T22:41:41Z | https://github.com/WebAssembly/wabt/issues/1441 | 626,083,174 | 1,441 | |
[
"WebAssembly",
"wabt"
] | Most Wasm engines use the CPU's hardware memory protection to handle wasm sandboxing; since wasm32 pointers are 32-bit, we can reserve 8GiB (33-bits, 32-bit index plus 32-bit offset) of address space for each memory object. All addresses outside the valid range will trap in the OS, which then can be handled and convert... | [wasm2c] Add support for trap-handling memory sandboxing | https://api.github.com/repos/WebAssembly/wabt/issues/1440/comments | 1 | 2020-05-26T20:22:09Z | 2022-05-19T01:15:21Z | https://github.com/WebAssembly/wabt/issues/1440 | 625,173,930 | 1,440 |
[
"WebAssembly",
"wabt"
] | relates to https://github.com/Homebrew/homebrew-core/pull/55046
Just want to point out that the prerelease tag failed the homebrew audit check, let me know if that is intentional. Thanks! | prelease blocking the homebrew formula upgrade | https://api.github.com/repos/WebAssembly/wabt/issues/1439/comments | 13 | 2020-05-26T17:11:18Z | 2020-08-10T13:39:31Z | https://github.com/WebAssembly/wabt/issues/1439 | 625,045,188 | 1,439 |
[
"WebAssembly",
"wabt"
] | As mentioned in #1436 I need an npm package for wasm2c (basically I want to use it from emscripten, and an emscripten build is the easiest and best way to get one!)
I created a quick one now: https://www.npmjs.com/package/wasm2c it basically has my build and the wasm2c runtime sources.
cc @dcodeIO @binji - thoug... | npm packaging of wasm2c | https://api.github.com/repos/WebAssembly/wabt/issues/1438/comments | 6 | 2020-05-21T22:42:32Z | 2022-05-19T01:17:56Z | https://github.com/WebAssembly/wabt/issues/1438 | 622,834,129 | 1,438 |
[
"WebAssembly",
"wabt"
] | While working on an issue in Wasmer, we realized that wabt was unable to parse/validate a valid Wasm file, failing with a `needed_dynlibs` error (my local wabt was installed via homebrew).
```bash
$ wasm2wat lib/c-api/tests/assets/hello_wasm.wasm
0000018: error: unable to read u32 leb128: needed_dynlibs
```
``... | wasm2wat needed_dynlibs error | https://api.github.com/repos/WebAssembly/wabt/issues/1429/comments | 6 | 2020-05-16T07:49:47Z | 2020-05-19T05:08:09Z | https://github.com/WebAssembly/wabt/issues/1429 | 619,407,101 | 1,429 |
[
"WebAssembly",
"wabt"
] | On main page: https://github.com/WebAssembly/wabt the link to wasm-decompile doc is broken https://webassembly.github.io/wabt/doc/wasm-decompile.1.html
I think it is missing from https://github.com/WebAssembly/wabt/tree/master/docs/doc | wasm-decompile link in README is broken | https://api.github.com/repos/WebAssembly/wabt/issues/1428/comments | 5 | 2020-05-15T23:26:21Z | 2022-09-18T06:03:09Z | https://github.com/WebAssembly/wabt/issues/1428 | 619,323,348 | 1,428 |
[
"WebAssembly",
"wabt"
] | Right now compiling a wasm with a function called `main` leads to clang complaining about
```cpp
static u32 main(u32, u32);
static u32 main(u32, u32) {
.. impl ..
}
```
```cpp
a.c:179:1: warning: 'main' should not be declared static [-Wmain]
static u32 main(u32, u32);
^~~~~~~
a.c:179:8: warning: return... | wasm2c: function name mangling? | https://api.github.com/repos/WebAssembly/wabt/issues/1426/comments | 2 | 2020-05-15T14:08:17Z | 2020-05-15T20:50:37Z | https://github.com/WebAssembly/wabt/issues/1426 | 618,993,807 | 1,426 |
[
"WebAssembly",
"wabt"
] | Noticed this [here](https://github.com/AssemblyScript/wabt.js/pull/15) while attempting to update the wabt.js buildbot to GitHub Actions and decided to test with all of fastcomp, upstream and tot because why not.
Tracked this down so far to `Module._malloc` for example trying to call into `Module['asm']['ya']`, whic... | libwabt.js builds are broken with Emscripten upstream/tot | https://api.github.com/repos/WebAssembly/wabt/issues/1421/comments | 3 | 2020-05-12T19:53:56Z | 2020-05-13T15:17:56Z | https://github.com/WebAssembly/wabt/issues/1421 | 616,918,122 | 1,421 |
[
"WebAssembly",
"wabt"
] | On one hand there is the Readme.md providing information for cloning and building the suite manually.
On the other hand there are binaries packed in archives for different platforms provided on the 'releases' tab, which is very helpful for beginners.
What I am missing though, are instructions for what to do after u... | Missing instructions for the provided binary archives | https://api.github.com/repos/WebAssembly/wabt/issues/1420/comments | 3 | 2020-05-12T18:30:48Z | 2020-05-13T19:42:05Z | https://github.com/WebAssembly/wabt/issues/1420 | 616,868,815 | 1,420 |
[
"WebAssembly",
"wabt"
] | Given an input such as:
```wasm
(module (func (param i32) (param $b i32)))
```
This round-trip through tooling fails to succeed:
```
$ wat2wasm --debug-names foo.wat -o foo.wasm
$ wasm2wat foo.wasm > bar.wat
$ wat2wasm bar.wat -o bar.wasm
bar.wat:3:35: error: unexpected token $b, expected ).
(func (;... | `wasm2wat` may produce un-parseable WAT syntax with parameter names | https://api.github.com/repos/WebAssembly/wabt/issues/1417/comments | 2 | 2020-05-11T20:01:17Z | 2020-05-14T18:39:07Z | https://github.com/WebAssembly/wabt/issues/1417 | 616,145,794 | 1,417 |
[
"WebAssembly",
"wabt"
] | Hey,
Similar assertion failure than #1413 but in another expression.
```
Assertion `sig_index < module_->types.size()' failed.
```
Related code (line `737`):
https://github.com/WebAssembly/wabt/blob/e88bc660cf89ca84dccda358cfbadc8a7c2bc935/src/binary-reader-ir.cc#L736-L738
# Reproducing
Download: [asser... | [wasm2wat] Assertion failure in BinaryReaderIR::OnReturnCallIndirectExpr | https://api.github.com/repos/WebAssembly/wabt/issues/1414/comments | 1 | 2020-05-10T17:05:05Z | 2020-06-09T08:41:40Z | https://github.com/WebAssembly/wabt/issues/1414 | 615,433,760 | 1,414 |
[
"WebAssembly",
"wabt"
] | Hey,
During fuzzing I triggered this assertion failure using `wasm2wat --enable-all`:
```
Assertion `sig_index < module_->types.size()' failed.
```
Related code (line `725`):
https://github.com/WebAssembly/wabt/blob/e88bc660cf89ca84dccda358cfbadc8a7c2bc935/src/binary-reader-ir.cc#L724-L726
# Reproducing
... | [wasm2wat] Assertion failure in BinaryReaderIR::OnCallIndirectExpr | https://api.github.com/repos/WebAssembly/wabt/issues/1413/comments | 1 | 2020-05-10T17:00:06Z | 2020-06-09T08:40:51Z | https://github.com/WebAssembly/wabt/issues/1413 | 615,432,882 | 1,413 |
[
"WebAssembly",
"wabt"
] | Seems like adding a dependency on https://github.com/cjihrig/uvwasi might be a good start. | Add WASI API to wasm-interp / wasm2c | https://api.github.com/repos/WebAssembly/wabt/issues/1409/comments | 2 | 2020-05-10T00:21:57Z | 2020-05-13T01:28:44Z | https://github.com/WebAssembly/wabt/issues/1409 | 615,286,250 | 1,409 |
[
"WebAssembly",
"wabt"
] | `wasm-decompile.exe` tool is great!!! It gives better readable format.
Is it possible to have the mangled function name instead of demangled in the output file ?
| Is it possible to have de-mangled function name in the output of wasm-decompile.exe | https://api.github.com/repos/WebAssembly/wabt/issues/1406/comments | 13 | 2020-05-06T01:47:52Z | 2023-01-03T19:30:11Z | https://github.com/WebAssembly/wabt/issues/1406 | 612,998,200 | 1,406 |
[
"WebAssembly",
"wabt"
] | When `wast2json` is run on the upstream annotations proposal test it currently infinite loops:
```
$ wast2json testsuite/proposals/annotations/annotations.wast --enable-all
<hangs>
```
I've minimized this to:
```wat
(module quote "(@a \0a)") ;; \n
```
where `wast2json` run over that file infinite loop... | Infinite loop parsing upstream annotations proposal | https://api.github.com/repos/WebAssembly/wabt/issues/1404/comments | 1 | 2020-05-05T14:35:22Z | 2020-05-06T18:48:15Z | https://github.com/WebAssembly/wabt/issues/1404 | 612,651,834 | 1,404 |
[
"WebAssembly",
"wabt"
] | Hi,
I want to use clang to compile the c file generated by wasm2c into LLVM IR.
The command I used is as follows:
`clang -emit-llvm -c test.c -I ~/wabt/wasm2c/`
However it fails and I got some errors listed below:
```
error: static declaration of '__signbitl' follows non-static declaration
error: too man... | Compile test.c (generated by wasm2c) into LLVM | https://api.github.com/repos/WebAssembly/wabt/issues/1402/comments | 2 | 2020-05-01T14:39:19Z | 2022-04-27T17:57:23Z | https://github.com/WebAssembly/wabt/issues/1402 | 610,784,282 | 1,402 |
[
"WebAssembly",
"wabt"
] | Fuzz testcase:
```wat
(module
(type $none_=>_none (func))
(memory $0 1 1)
(global $global$0 (mut i32) (i32.const 10))
(export "hangLimitInitializer" (func $1))
(export "func_13_invoker" (func $0))
(func $0
(loop $label$1
(if
(global.get $global$0)
(block
(global.set $global$0
... | wasm2c load/store offset calculation | https://api.github.com/repos/WebAssembly/wabt/issues/1400/comments | 5 | 2020-04-28T16:06:21Z | 2020-04-29T15:29:41Z | https://github.com/WebAssembly/wabt/issues/1400 | 608,436,825 | 1,400 |
[
"WebAssembly",
"wabt"
] | For the input file
```
(module quote "")
```
wast2json 1.0.13 crashes:
```
$ wast2json malformed.wast --no-check
wast2json: /home/andrei/dev/wabt/src/wast-parser.cc:474: wabt::Token wabt::WastParser::Consume(): Assertion `!tokens_.empty()' failed.
Aborted (core dumped)
``` | wast2json assertion failure when file contains malformed module | https://api.github.com/repos/WebAssembly/wabt/issues/1399/comments | 0 | 2020-04-28T11:04:55Z | 2020-04-28T11:04:55Z | https://github.com/WebAssembly/wabt/issues/1399 | 608,228,514 | 1,399 |
[
"WebAssembly",
"wabt"
] | I've compiled a simple example with Clang 8.0.1:
```c
int f() {
return 42;
}
```
With latest wabt release (1.0.13), wasm2wat dump for this file is:
```wat
(module
(type (;0;) (func))
(func $__wasm_call_ctors (type 0))
(table (;0;) 1 1 funcref)
(memory (;0;) 2)
(global (;0;) (mut i32) (i32.... | wasm-decompile doesn't mark standard exported globals as exported | https://api.github.com/repos/WebAssembly/wabt/issues/1397/comments | 1 | 2020-04-27T18:03:47Z | 2023-01-03T19:30:27Z | https://github.com/WebAssembly/wabt/issues/1397 | 607,743,366 | 1,397 |
[
"WebAssembly",
"wabt"
] | I tried to decompile a Wasm file that contains SIMD instructions to Wat and got this error:
```
Error: readWasm failed:
0000039: error: expected valid local type
``` | wasm2wat crashes upon reaching SIMD instructions | https://api.github.com/repos/WebAssembly/wabt/issues/1396/comments | 12 | 2020-04-27T04:51:59Z | 2020-04-28T02:10:30Z | https://github.com/WebAssembly/wabt/issues/1396 | 607,231,333 | 1,396 |
[
"WebAssembly",
"wabt"
] | I tried to build the gc branch using CMake directly, as described in the README.
The build fails with
```
In file included from /[..]/wabt/src/shared-validator.cc:17:
/[..]/wabt/src/shared-validator.h:194:47:
error: ‘MutVector’ does not name a type; did you mean ‘VarVector’?
194 | StructType(const TypeVec... | Failing to compile GC branch | https://api.github.com/repos/WebAssembly/wabt/issues/1395/comments | 2 | 2020-04-25T15:31:42Z | 2020-05-24T14:25:51Z | https://github.com/WebAssembly/wabt/issues/1395 | 606,793,930 | 1,395 |
[
"WebAssembly",
"wabt"
] | I think wasm should have a framework that all browsers use. It should contain
- all the common numeric, literal and date type operations and casting.
- Dom manipulation operations.
- sending requests to the server if needs (like Ajax).
Isn't this all what we need from client code?
If this wasm framework contai... | Can we have a wasm framework? | https://api.github.com/repos/WebAssembly/wabt/issues/1394/comments | 1 | 2020-04-23T17:16:45Z | 2020-04-24T00:02:27Z | https://github.com/WebAssembly/wabt/issues/1394 | 605,707,635 | 1,394 |
[
"WebAssembly",
"wabt"
] | The "Legacy active, funcref elemexpr" element segment (flag = 4) is not supported in wat2wasm.
It is however supported in wasm2wat. | The "Legacy active, funcref elemexpr" element segment not supported in wat2wasm. | https://api.github.com/repos/WebAssembly/wabt/issues/1391/comments | 3 | 2020-04-15T19:12:45Z | 2020-04-16T18:05:12Z | https://github.com/WebAssembly/wabt/issues/1391 | 600,526,951 | 1,391 |
[
"WebAssembly",
"wabt"
] | The proposal document describes the opcode for v8x16.shuffle as 0xfd 0xc1,
The wabt tools however use the code 0xfd 0x03.
Which one is rightt? | Wrong opcode for v8x16.shuffle? | https://api.github.com/repos/WebAssembly/wabt/issues/1390/comments | 2 | 2020-04-15T19:08:11Z | 2020-04-15T20:38:35Z | https://github.com/WebAssembly/wabt/issues/1390 | 600,524,299 | 1,390 |
[
"WebAssembly",
"wabt"
] | If try to compile the follow sample code with the command line: `wat2wasm.exe --enable-all sample.wat`
```
(module
(func $test(local $exn exnref)
try
i32.const 0
drop
catch
local.tee $exn
drop
end
)
)
```
then I receive the error:
```
sample.... | locals of type exnref | https://api.github.com/repos/WebAssembly/wabt/issues/1388/comments | 2 | 2020-04-13T13:41:31Z | 2020-04-17T17:18:24Z | https://github.com/WebAssembly/wabt/issues/1388 | 598,896,263 | 1,388 |
[
"WebAssembly",
"wabt"
] | Hi,
During fuzzing I found this vulnerability inside `wabt::BinaryReader`.
Based on quick analysis using GDB, valgrind and ASAN, it seems to be a uncontrolled memory allocation vulnerability ([CWE-789](https://cwe.mitre.org/data/definitions/789.html)) which generates a `std::bad_alloc` exception and finally allow... | [crash] SIGABRT due to std::bad_alloc exception (resizing wasm br_table) | https://api.github.com/repos/WebAssembly/wabt/issues/1386/comments | 0 | 2020-04-12T10:42:13Z | 2020-05-13T22:27:33Z | https://github.com/WebAssembly/wabt/issues/1386 | 598,457,049 | 1,386 |
[
"WebAssembly",
"wabt"
] | The current build requires python 3.5, which is commonly found on modern *nixes, but may not be installed on Windows, Mac, etc. It's only used for running tests, so it would be nice to fail gracefully if python isn't available instead of preventing the build to proceed. | Don't require Python in build (if not found, skip those targets) | https://api.github.com/repos/WebAssembly/wabt/issues/1385/comments | 12 | 2020-04-09T19:43:22Z | 2022-08-26T02:15:19Z | https://github.com/WebAssembly/wabt/issues/1385 | 597,510,787 | 1,385 |
[
"WebAssembly",
"wabt"
] | I would be nice to get https://github.com/WebAssembly/simd/pull/197 into wabt. Though this seems to require the proposals test suite to be updated upstream first. @sbc100 ?
| Update to more recent test suite | https://api.github.com/repos/WebAssembly/wabt/issues/1379/comments | 3 | 2020-03-26T14:21:36Z | 2020-03-27T21:50:56Z | https://github.com/WebAssembly/wabt/issues/1379 | 588,458,660 | 1,379 |
[
"WebAssembly",
"wabt"
] | The exception proposal is currently supported for binary/text reading/writing and validation, but has no support in the interpreter.
Now that the interpreter has a garbage collector, it should be possible to implement this. | Implement exception proposal support in interpreter | https://api.github.com/repos/WebAssembly/wabt/issues/1378/comments | 1 | 2020-03-25T23:11:41Z | 2022-04-27T17:58:27Z | https://github.com/WebAssembly/wabt/issues/1378 | 588,046,295 | 1,378 |
[
"WebAssembly",
"wabt"
] | See https://github.com/webassembly/function-references and https://github.com/WebAssembly/function-references/blob/master/proposals/function-references/Overview.md. | Implement function-references proposal | https://api.github.com/repos/WebAssembly/wabt/issues/1377/comments | 1 | 2020-03-25T23:09:12Z | 2021-07-08T11:16:47Z | https://github.com/WebAssembly/wabt/issues/1377 | 588,045,424 | 1,377 |
[
"WebAssembly",
"wabt"
] | We are researching ways to support custom sections in the text file format (wat) so we can transform it easily to wasm and viceversa.
One of the ideas we came up with is to automatically base64 encode the custom section when decoding from a wasm file, and automatically base64 decode when passing from wat to wasm.
... | Custom sections wasm2wat / wat2wasm | https://api.github.com/repos/WebAssembly/wabt/issues/1376/comments | 14 | 2020-03-25T21:44:38Z | 2023-10-03T13:44:31Z | https://github.com/WebAssembly/wabt/issues/1376 | 588,009,887 | 1,376 |
[
"WebAssembly",
"wabt"
] | There are other TODOs in the source, but most of these should be small.
- [x] Update output from "type" to "func_type" [TODO](https://github.com/WebAssembly/wabt/blob/master/src/binary-reader-logging.cc#L146) [TODO](https://github.com/WebAssembly/wabt/blob/master/src/binary-writer.cc#L888)
- [ ] Rename LoadStoreEx... | Fix Various TODOs | https://api.github.com/repos/WebAssembly/wabt/issues/1375/comments | 6 | 2020-03-25T19:15:25Z | 2023-05-02T09:39:54Z | https://github.com/WebAssembly/wabt/issues/1375 | 587,930,331 | 1,375 |
[
"WebAssembly",
"wabt"
] | See #1275 where these were removed. The upstream spec was changed to use a more generic syntax:
```
(assert_return_canonical_nan (invoke "..."))
```
becomes
```
(assert_return (invoke "...") (nan:canonical))
```
(And similarly for `assert_return_arithmetic_nan` and `nan:arithmetic`).
But in general, ... | Provide backward compatible support for assert_return_arithmetic_nan | https://api.github.com/repos/WebAssembly/wabt/issues/1371/comments | 6 | 2020-03-23T19:16:25Z | 2023-03-15T08:12:25Z | https://github.com/WebAssembly/wabt/issues/1371 | 586,453,036 | 1,371 |
[
"WebAssembly",
"wabt"
] | In https://github.com/WebAssembly/bulk-memory-operations there is a test that checks for a validation error against `data.drop 0`.
https://github.com/WebAssembly/bulk-memory-operations/blob/ffdbb6e357d79818c88c3557cd3325346a057d27/test/core/memory_init.wast#L188
This test fails with a malformed error instead beca... | wast2json not generating wasm with DataCount section when data.drop is used in code | https://api.github.com/repos/WebAssembly/wabt/issues/1368/comments | 0 | 2020-03-22T21:29:31Z | 2020-03-23T18:34:44Z | https://github.com/WebAssembly/wabt/issues/1368 | 585,816,825 | 1,368 |
[
"WebAssembly",
"wabt"
] | ## OS Info
```bash
➜ wabt git:(master) cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubu... | build failed: fatal error: wasm.h : No such file or directory | https://api.github.com/repos/WebAssembly/wabt/issues/1367/comments | 2 | 2020-03-22T15:10:12Z | 2020-03-22T15:59:40Z | https://github.com/WebAssembly/wabt/issues/1367 | 585,740,267 | 1,367 |
[
"WebAssembly",
"wabt"
] | See in-progress PR here: https://github.com/WebAssembly/wabt/pull/909.
I was making pretty good progress, but then I stalled out. It would be great if someone else could pick it up, since it's not super easy for me to test on Windows! | Get wasm2c tests running on MSVC/windows | https://api.github.com/repos/WebAssembly/wabt/issues/1366/comments | 1 | 2020-03-20T23:44:42Z | 2022-04-01T06:52:49Z | https://github.com/WebAssembly/wabt/issues/1366 | 585,381,729 | 1,366 |
[
"WebAssembly",
"wabt"
] | 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-s... | test/wasm2c/spec/skip-stack-guard-page.txt fails on 32-bit ARM | https://api.github.com/repos/WebAssembly/wabt/issues/1365/comments | 8 | 2020-03-20T22:34:25Z | 2023-01-03T18:36:04Z | https://github.com/WebAssembly/wabt/issues/1365 | 585,360,701 | 1,365 |
[
"WebAssembly",
"wabt"
] | ### Versions
- wabt: 1.0.13 (installed via `brew install wabt`)
- OS: macOS 10.14
### Repro
[foo.wasm.zip](https://github.com/WebAssembly/wabt/files/4357744/foo.wasm.zip)
Unzip above wasm binary and run `wasm-dis foo.wasm -o foo.wat`.
It emits wat file as follows:
```wat
(module
(type $i32_=>_... | wasm-dis emits invalid 'if' instruction in folded form | https://api.github.com/repos/WebAssembly/wabt/issues/1362/comments | 1 | 2020-03-20T02:40:10Z | 2020-03-20T02:50:05Z | https://github.com/WebAssembly/wabt/issues/1362 | 584,808,015 | 1,362 |
[
"WebAssembly",
"wabt"
] | Since https://github.com/WebAssembly/wabt/commit/4c3189d1df4a4062fb2705182a525fd8c23d6af2, I get the following error:
```
[ 1%] Building CXX object CMakeFiles/wabt.dir/src/apply-names.cc.o
In file included from /tmp/wabt/src/apply-names.cc:17:
In file included from /tmp/wabt/src/apply-names.h:20:
In file included... | Compilation error on OpenBSD/clang | https://api.github.com/repos/WebAssembly/wabt/issues/1359/comments | 0 | 2020-03-14T17:16:45Z | 2020-03-15T17:12:05Z | https://github.com/WebAssembly/wabt/issues/1359 | 581,292,338 | 1,359 |
[
"WebAssembly",
"wabt"
] | Attaching example that fails to disassemble with
> 000023c: error: unexpected opcode: 0xfd 0x82 0x1
[decoder_simd.wasm.zip](https://github.com/WebAssembly/wabt/files/4238833/decoder_simd.wasm.zip)
| wasm-objdump: i32x4.max_s et al are not supported | https://api.github.com/repos/WebAssembly/wabt/issues/1343/comments | 2 | 2020-02-22T05:00:19Z | 2020-02-25T06:58:31Z | https://github.com/WebAssembly/wabt/issues/1343 | 569,282,291 | 1,343 |
[
"WebAssembly",
"wabt"
] | LLVM still builds code using the old encoding for `i8x16.shuffle`--`0xfd03`. WABT expects code to have the [new encoding](https://github.com/WebAssembly/simd/blob/master/proposals/simd/BinarySIMD.md)--`0xfdc1`. Over in an [emscripten issue](https://github.com/emscripten-core/emscripten/issues/9281#issuecomment-58933914... | Can't decode LLVM-built i8x16.shuffle | https://api.github.com/repos/WebAssembly/wabt/issues/1339/comments | 3 | 2020-02-21T00:08:51Z | 2020-02-24T20:20:11Z | https://github.com/WebAssembly/wabt/issues/1339 | 568,657,185 | 1,339 |
[
"WebAssembly",
"wabt"
] | ### Steps to Reproduce
```
$ wasm2wat --enable-multi-value --no-check foo.wasm
```
### Test Case
https://github.com/bytecodealliance/wasmparser/files/4171056/foo.wasm.2.gz
### Actual Results
```
0000081: error: invalid call function index: 2097156
```
### Expected Results
(Produced by https://... | wasm2wat fails to disassemble invalid wasm file, even with --no-check | https://api.github.com/repos/WebAssembly/wabt/issues/1331/comments | 2 | 2020-02-07T20:02:17Z | 2020-03-11T17:24:03Z | https://github.com/WebAssembly/wabt/issues/1331 | 561,843,604 | 1,331 |
[
"WebAssembly",
"wabt"
] | When I try to build wabt 1.0.13 from source, the build fails because wasm.h is not present in the source package.
I know that wasm.h is present in binaryen, but I don't understand how
src/interp/interp-wasm-c-api.cc
can be built from source in wabt without wasm.h.
In version 1.0.12 wasm.h was not required ... | wabt fails to build from source because of missing wasm.h | https://api.github.com/repos/WebAssembly/wabt/issues/1315/comments | 17 | 2020-01-23T01:13:45Z | 2021-03-14T17:07:57Z | https://github.com/WebAssembly/wabt/issues/1315 | 553,885,312 | 1,315 |
[
"WebAssembly",
"wabt"
] | Please don't require Git to build wabt. Similar to binaryen
https://github.com/WebAssembly/binaryen/issues/2563
Git is currently required to determine the version string. It would be great if wabt used the same method as binaryen to determine the version string. | Please don't require Git to build wabt | https://api.github.com/repos/WebAssembly/wabt/issues/1314/comments | 0 | 2020-01-23T01:05:14Z | 2020-01-24T01:50:05Z | https://github.com/WebAssembly/wabt/issues/1314 | 553,883,107 | 1,314 |
[
"WebAssembly",
"wabt"
] | With release 1.0.13 the tool wat2wasm.exe with the command line parameter "--enable-reference-types" produce ever a DataCount section with zero entries.
Is this expected? I would expected that an empty section is not written never to reduce size and prevent such problems.
Are there any workarounds with wat2wasm t... | WebAssembly.compile(): unexpected section <DataCount> | https://api.github.com/repos/WebAssembly/wabt/issues/1311/comments | 3 | 2020-01-18T12:12:10Z | 2020-01-21T19:30:14Z | https://github.com/WebAssembly/wabt/issues/1311 | 551,761,325 | 1,311 |
[
"WebAssembly",
"wabt"
] | If i use wasm-decompile the source / math is completely different to wasm2c
and using the math from either does not yeild the correct result compared to the original...
ie from nodejs...
```javascript
var t = [98, 111, 101, 110, 49, 110, 101, 57, 56, 99, 48, 104, 53, 49, 113, 53, 114, 51, 107, 48];
var fs =... | Decompiler doesn't yeild same result | https://api.github.com/repos/WebAssembly/wabt/issues/1307/comments | 1 | 2020-01-15T02:59:49Z | 2020-01-15T04:27:32Z | https://github.com/WebAssembly/wabt/issues/1307 | 549,935,820 | 1,307 |
[
"WebAssembly",
"wabt"
] | We currently have it as the `gh-pages` branch, but it will be easier to update if it was on `master`. See https://github.com/WebAssembly/wabt/pull/1295#discussion_r366575581 | Move documentation to subdirectory of main branch | https://api.github.com/repos/WebAssembly/wabt/issues/1306/comments | 0 | 2020-01-14T22:42:59Z | 2020-03-11T17:27:12Z | https://github.com/WebAssembly/wabt/issues/1306 | 549,861,338 | 1,306 |
[
"WebAssembly",
"wabt"
] | It looks like narrow and widen instructions aren't supported by the disassembler, so getting errors like this:
> 00009c3: error: unexpected opcode: 0xfd 0xca 0x1
[decoder_simd.zip](https://github.com/WebAssembly/wabt/files/4051426/decoder_simd.zip)
| wasm-objdump: Missing support for i16x8.widen_low_i8x16_s et al | https://api.github.com/repos/WebAssembly/wabt/issues/1300/comments | 1 | 2020-01-12T21:06:05Z | 2020-01-14T17:24:33Z | https://github.com/WebAssembly/wabt/issues/1300 | 548,626,995 | 1,300 |
[
"WebAssembly",
"wabt"
] | I'm attempting to perform analysis on this file - http://www.filedropper.com/buildexewasmcode
This file originates from a Unity WebGL Project, this is how they describe this file "build.wasm.code.unityweb file containing the WebAssembly binary."
- more about unity WebGl here https://docs.unity3d.com/Manual/webgl-b... | Problems with wasm binary created with UnityWebGL | https://api.github.com/repos/WebAssembly/wabt/issues/1299/comments | 1 | 2020-01-11T20:44:48Z | 2020-01-11T22:11:30Z | https://github.com/WebAssembly/wabt/issues/1299 | 548,478,157 | 1,299 |
[
"WebAssembly",
"wabt"
] | I am converting some c++ code to wasm with em++ as follows
em++ -o enums.wasm -c -s WASM -s STANDALONE_WASM=1 -std=c++17 -g -O2 enums.cpp
Then I want to produce readable text as follows:
wasm2wat enums.wasm -o enums.wat
Which results in an error:
0000270: error: invalid section code: 12
In the doc th... | wasm2wat produces 'error: invalid section code: 12' | https://api.github.com/repos/WebAssembly/wabt/issues/1292/comments | 4 | 2020-01-09T15:42:07Z | 2020-01-09T18:11:24Z | https://github.com/WebAssembly/wabt/issues/1292 | 547,557,344 | 1,292 |
[
"WebAssembly",
"wabt"
] | Given an input `*.wast` file:
```wat
(module)
(module
(func $f)
(func $g)
(table $t funcref (elem (ref.func $f) (ref.null) (ref.func $g)))
)
(module)
```
Executing:
```sh
$ mkdir tmp
$ wast2json foo.wast -o tmp/foo.json --enable-all
$ ls tmp
foo.0.wasm foo.1.wasm foo.json
```
that... | wast2json drops module with funcref table | https://api.github.com/repos/WebAssembly/wabt/issues/1291/comments | 2 | 2020-01-09T15:13:09Z | 2020-01-10T19:18:21Z | https://github.com/WebAssembly/wabt/issues/1291 | 547,539,112 | 1,291 |
[
"WebAssembly",
"wabt"
] | i'm compiling rust project to wasm with `wasm-pack`, then converting resulting wasm to wat and trying to read it.
currently I can find functions by their original names, but function params and variables lack original names.
so for this rust function
```rust
pub fn add_two(my_param: i32) -> i32 {
let my_... | wasm2wat can't read debug names of params / vars | https://api.github.com/repos/WebAssembly/wabt/issues/1290/comments | 5 | 2020-01-09T04:41:20Z | 2020-01-10T14:14:28Z | https://github.com/WebAssembly/wabt/issues/1290 | 547,244,813 | 1,290 |
[
"WebAssembly",
"wabt"
] | Hi,
I'm using wast2json as part of a test suite for a pet project. when using it with the reference test suite's `elem.wast` (https://github.com/WebAssembly/testsuite/blob/master/elem.wast#L15), the resulting first module is using the new segment flags which AFAIK are part of the bulk memory proposal, which that mea... | wast2json outputs wasm code using segment flags which are not part of the MVP | https://api.github.com/repos/WebAssembly/wabt/issues/1281/comments | 1 | 2020-01-04T17:15:51Z | 2020-01-09T06:10:56Z | https://github.com/WebAssembly/wabt/issues/1281 | 545,308,499 | 1,281 |
[
"WebAssembly",
"wabt"
] | This is a suggestion for a feature request.
## Idea ##
Convert WAT, representation of a Wasm binary, into a language-independent data format so that the information can be transmitted across the web and also parsed (by any language) for inspection.
## Why ##
As far as I can tell, after unsuccessfully attempting... | Dynamic discovery of Wasm functions, params and result. | https://api.github.com/repos/WebAssembly/wabt/issues/1280/comments | 1 | 2020-01-02T23:47:34Z | 2020-01-09T06:10:58Z | https://github.com/WebAssembly/wabt/issues/1280 | 544,795,834 | 1,280 |
[
"WebAssembly",
"wabt"
] | I create a new Wat project in
I edit a wat file with memory.grow and memory.size, such as the one below (just for illustration):
```
(module
(func $add (param $lhs i32) (param $rhs i32) (result i32)
get_local $lhs
get_local $rhs
memory.grow
memory.size
i32.add)
(export "add" (func $... | Getting errors on memory.grow and memory.size on https://webassembly.studio/ | https://api.github.com/repos/WebAssembly/wabt/issues/1274/comments | 1 | 2019-12-21T17:54:09Z | 2020-01-08T23:53:46Z | https://github.com/WebAssembly/wabt/issues/1274 | 541,353,092 | 1,274 |
[
"WebAssembly",
"wabt"
] | Ran into this issue when reviewing some recent additions.
Currently the only documentation I could find was that we specify `BasedOnStyle: Chromium` in `.clang-format`. This implicitly locks down a lot of things which good, more explicit docs would be good.
The specific issue we ran into was the wabt uses a sty... | C++ coding style is not documented | https://api.github.com/repos/WebAssembly/wabt/issues/1273/comments | 5 | 2019-12-19T23:19:02Z | 2020-01-09T00:44:02Z | https://github.com/WebAssembly/wabt/issues/1273 | 540,635,069 | 1,273 |
[
"WebAssembly",
"wabt"
] | Given this input:
```
(module
(func $f)
(global (export "g") anyref (ref.func $f))
)
```
round-tripping this yields:
```
$ wat2wasm foo.wat -o foo.wasm --enable-all
$ wasm2wat foo.wasm --enable-all
foo.wasm:0000017: error: type mismatch at global initializer expression. got void, expected anyref
$... | Anyref global initializer fails in `wasm2wat` | https://api.github.com/repos/WebAssembly/wabt/issues/1270/comments | 1 | 2019-12-18T19:44:39Z | 2020-01-10T19:56:25Z | https://github.com/WebAssembly/wabt/issues/1270 | 539,883,775 | 1,270 |
[
"WebAssembly",
"wabt"
] | Given this `*.wat`:
```wat
(module
(table 1 funcref)
(elem (table 0) (i32.const 0) funcref))
```
this encodes as:
```
$ wat2wasm foo.wat --enable-all -o foo.wasm
$ wasm-objdump -x foo.wasm
foo.wasm: file format wasm 0x1
Section Details:
Table[1]:
- table[0] type=funcref initial=1
Elem[1]:... | Binary encoding for empty funcref segment may use wrong flags? | https://api.github.com/repos/WebAssembly/wabt/issues/1269/comments | 1 | 2019-12-17T21:58:45Z | 2020-01-09T06:13:36Z | https://github.com/WebAssembly/wabt/issues/1269 | 539,332,463 | 1,269 |
[
"WebAssembly",
"wabt"
] | Given a module that looks like:
```wat
(module
(table 1 funcref)
(elem (table 0) (i32.const 0)))
```
this uses the nifty new `(table 0)` syntax to clarify that the `elem` segment is part of a particular table. This `*.wat`, however, is MVP-compatible but ends up being encoded as:
```
$ wat2wasm foo.wa... | Binary encoding of element segment uses non-MVP encoding when it could otherwise do so | https://api.github.com/repos/WebAssembly/wabt/issues/1268/comments | 1 | 2019-12-17T21:55:57Z | 2020-01-09T06:13:15Z | https://github.com/WebAssembly/wabt/issues/1268 | 539,331,314 | 1,268 |
[
"WebAssembly",
"wabt"
] | I wasn't able to find much documentation about libwabt.js, but I was able to piece this together from various sources. Corrections/elaborations are invited.
### Usage ###
Call either `parseWat(filename:string, watSource:string, features: object)` or `readWasm(buffer: Uint8Array, {readDebugNames:true})`.
The `f... | More docs for building/using libwabt? | https://api.github.com/repos/WebAssembly/wabt/issues/1267/comments | 5 | 2019-12-15T17:15:23Z | 2024-03-09T04:53:25Z | https://github.com/WebAssembly/wabt/issues/1267 | 538,079,380 | 1,267 |
[
"WebAssembly",
"wabt"
] | Function inlining can increase performance in x2 for different algorithms. But readability become worsens after that. I suggest to create a some directive for `wat2wasm` preprocessor.
```webassembly
;;@inline
(func $add (param $a f64) (param $b f64) (result f64)
(f64.add (get_local $a) (get_local $b))
)
``` | [wat2wasm] directive @inline for preprocessor | https://api.github.com/repos/WebAssembly/wabt/issues/1260/comments | 3 | 2019-12-09T14:44:32Z | 2020-01-09T01:08:38Z | https://github.com/WebAssembly/wabt/issues/1260 | 534,977,993 | 1,260 |
[
"WebAssembly",
"wabt"
] | A very simple wat file copied from https://github.com/WebAssembly/spec/blob/master/test/core/elem.wast
(module
(table $t 10 funcref)
(func $f)
;; (elem (i32.const 0))
(elem $t (offset (i32.const 0)))
)
The generated wasm file:
00000000 00 61 73 6d 01 00 00 00 01 04 01 60 00 00 03 02 |.asm.......`.... | The latest version of wat2wasm generates malformed wasm file for 'elem' statement | https://api.github.com/repos/WebAssembly/wabt/issues/1259/comments | 1 | 2019-12-09T08:36:08Z | 2020-01-09T06:13:57Z | https://github.com/WebAssembly/wabt/issues/1259 | 534,772,379 | 1,259 |
[
"WebAssembly",
"wabt"
] | Is there a roadmap of typed function references and GC proposal support?
Tools like **wasm-interp** or **wasm2c** would be useful to test compilers while waiting for browser support. | GC proposal | https://api.github.com/repos/WebAssembly/wabt/issues/1257/comments | 2 | 2019-11-30T18:09:38Z | 2020-03-04T03:03:48Z | https://github.com/WebAssembly/wabt/issues/1257 | 530,612,529 | 1,257 |
[
"WebAssembly",
"wabt"
] | Run CI with -Werror (cmake -DWERROR=ON) | https://api.github.com/repos/WebAssembly/wabt/issues/1249/comments | 1 | 2019-11-22T02:31:32Z | 2020-08-19T00:44:53Z | https://github.com/WebAssembly/wabt/issues/1249 | 526,950,650 | 1,249 | |
[
"WebAssembly",
"wabt"
] | Currently we are not catching python3 regressions: https://github.com/WebAssembly/wabt/issues/1180 | Run CI with python3 (as well as python2 for a while) | https://api.github.com/repos/WebAssembly/wabt/issues/1248/comments | 1 | 2019-11-22T02:31:06Z | 2020-01-10T19:19:09Z | https://github.com/WebAssembly/wabt/issues/1248 | 526,950,537 | 1,248 |
[
"WebAssembly",
"wabt"
] | It looks like the test running the array of failed tests contain `Error` class as well as `TestResult`.. perhaps we should embed the `Error` in the `TestResult` on timeout to avoid this discrepancy?
```
./test/run-tests.py test/spec/memory_grow.txt -t0.1
- test/spec/memory_grow.txt
TIMEOUT
STDOUT:
ST... | Crash in test running when a test times out | https://api.github.com/repos/WebAssembly/wabt/issues/1243/comments | 1 | 2019-11-21T20:03:04Z | 2020-03-11T17:28:26Z | https://github.com/WebAssembly/wabt/issues/1243 | 526,812,361 | 1,243 |
[
"WebAssembly",
"wabt"
] | I'm using WAT as a first-class language, and have an issue resolving imports: If one module exports a value, and another module imports that value, there is no (clean) way for the host to resolve the import, unless it knows what the files contain in advance.
When using the JavaScript API (though this seems to apply ... | WAT imports cannot be resolved dynamically. | https://api.github.com/repos/WebAssembly/wabt/issues/1229/comments | 1 | 2019-11-17T22:01:16Z | 2020-03-20T20:37:47Z | https://github.com/WebAssembly/wabt/issues/1229 | 524,054,701 | 1,229 |
[
"WebAssembly",
"wabt"
] | Given this module:
```wat
(module
(func)
(func
ref.func 0
drop))
```
this yields:
```
$ wat2wasm --enable-all foo.wat -o foo.wasm
$ wasm2wat foo.wasm --enable-all
(module
(type (;0;) (func))
(func (;0;) (type 0))
(func (;1;) (type 0)
ref.func
0
drop))
```
A pret... | Formatting of `ref.func` inserts an extra newline by accident | https://api.github.com/repos/WebAssembly/wabt/issues/1228/comments | 0 | 2019-11-15T23:30:14Z | 2019-12-11T23:01:49Z | https://github.com/WebAssembly/wabt/issues/1228 | 523,745,852 | 1,228 |
[
"WebAssembly",
"wabt"
] | Given a module like:
```wat
(module
(func (param v128) (result v128)
local.get 0
local.get 0
v8x16.shuffle 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0))
```
I get:
```
$ wat2wasm foo.wat -o foo.wasm --enable-simd
$ wasm2wat ./foo.wasm --enable-simd
(module
(type (;0;) (func (param v128) (result v... | Formatting of `v8x16.shuffle` has some extraneous whitespace | https://api.github.com/repos/WebAssembly/wabt/issues/1227/comments | 2 | 2019-11-15T23:27:22Z | 2020-03-24T00:32:55Z | https://github.com/WebAssembly/wabt/issues/1227 | 523,745,036 | 1,227 |
[
"WebAssembly",
"wabt"
] | Given a module like so:
```wat
(module
(func $foo)
(func $bar
call $foo)
(start $foo))
```
it generates the following output:
```sh
$ wat2wasm foo.wat -o foo.wasm --debug-names
$ wasm2wat ./foo.wasm
(module
(type (;0;) (func))
(func $foo (type 0))
(func $bar (type 0)
call $foo)... | `wasm2wat` doesn't give the start function a pretty name | https://api.github.com/repos/WebAssembly/wabt/issues/1226/comments | 0 | 2019-11-15T23:22:34Z | 2020-01-09T19:42:50Z | https://github.com/WebAssembly/wabt/issues/1226 | 523,743,329 | 1,226 |
[
"WebAssembly",
"wabt"
] | There are a still a few outstanding issues and we don't yet run the reference-types spec tests. | Finish implementing reference-types and integrate all spec tests | https://api.github.com/repos/WebAssembly/wabt/issues/1223/comments | 1 | 2019-11-15T16:53:53Z | 2019-11-22T08:23:47Z | https://github.com/WebAssembly/wabt/issues/1223 | 523,580,671 | 1,223 |
[
"WebAssembly",
"wabt"
] | Hi,
I believe that `wasm-validate` reports the wrong binary location in its error messages.
## Example
Validating following file generated via `wast2json` from the [spec test i32.wast][1]
```bash
$ xxd test/core/wasm/i32/i32.wast.8.wasm
00000000: 0061 736d 0100 0000 0104 0160 0000 0302 .asm.......`....
000000... | [wasm-validate] Wrong binary location reported in error message | https://api.github.com/repos/WebAssembly/wabt/issues/1217/comments | 4 | 2019-11-10T00:35:11Z | 2021-09-17T12:03:34Z | https://github.com/WebAssembly/wabt/issues/1217 | 520,533,774 | 1,217 |
[
"WebAssembly",
"wabt"
] | Greetings wabt developers and contributors,
We’re reaching out because your project is an important part of the open source ecosystem, and we’d like to invite you to integrate with our [fuzzing](https://www.owasp.org/index.php/Fuzzing) service, [OSS-Fuzz]( https://opensource.googleblog.com/2016/12/announcing-oss-fuz... | Integrating with OSS-Fuzz | https://api.github.com/repos/WebAssembly/wabt/issues/1212/comments | 26 | 2019-11-07T19:47:31Z | 2020-01-09T00:30:40Z | https://github.com/WebAssembly/wabt/issues/1212 | 519,475,023 | 1,212 |
[
"WebAssembly",
"wabt"
] | A discussion about adding sourcemap support came up on twitter. There's an old PR (#432), that could be revived, but we may want to approach this differently now. @dschuff @sbc100 thoughts? | Sourcemap support for wat2wasm? | https://api.github.com/repos/WebAssembly/wabt/issues/1210/comments | 6 | 2019-11-07T14:17:01Z | 2022-03-27T14:33:39Z | https://github.com/WebAssembly/wabt/issues/1210 | 519,293,431 | 1,210 |
[
"WebAssembly",
"wabt"
] | With:
```
$ clang -v
clang version 10.0.0 (https://github.com/llvm/llvm-project/ 64a362e7216a43e3ad44e50a89265e72aeb14294)
Target: x86_64-unknown-linux-gnu
Thread model: posix
```
I'm seeing:
```
test-hexfloat.cc:109:7: warning: implicit conversion from 'unsigned int' to 'float' changes value from 429496... | implicit-int-float-conversion warnings in test-hexfloat.cc | https://api.github.com/repos/WebAssembly/wabt/issues/1200/comments | 0 | 2019-10-25T00:10:48Z | 2020-01-08T19:46:47Z | https://github.com/WebAssembly/wabt/issues/1200 | 512,238,274 | 1,200 |
[
"WebAssembly",
"wabt"
] | The following code fails to compile by wat2wasm (v1.12) if relocatable binary (-r) is requested.
Is it expected? (exit code 0xC0000005)
Non-relocatable binary compiles just fine.
```
(module
;; (type (func (param i32)(param i32)(result i32))) ;; fails, even if present
(func $add (param i32)(param i32)(resul... | wat2wasm fails with call_indirect and relocation | https://api.github.com/repos/WebAssembly/wabt/issues/1199/comments | 29 | 2019-10-24T15:42:30Z | 2023-03-15T05:59:45Z | https://github.com/WebAssembly/wabt/issues/1199 | 512,028,558 | 1,199 |
[
"WebAssembly",
"wabt"
] | Hi, I'm new to WASM.
I've installed emscripten using the [installation instructions](https://emscripten.org/docs/getting_started/downloads.html) and tried it out on a simple program:
```
#include <cstdlib>
#include <cstring>
char *
malloc_demo()
{
char *p = (char *)malloc(20);
strcpy(p, "Hello, Wor... | [wasm2wat] Nicer error for known but disabled feature | https://api.github.com/repos/WebAssembly/wabt/issues/1197/comments | 2 | 2019-10-24T00:46:23Z | 2020-03-20T20:26:37Z | https://github.com/WebAssembly/wabt/issues/1197 | 511,642,127 | 1,197 |
[
"WebAssembly",
"wabt"
] | When I ask `wat2wasm` (pulled about 4 days ago from master and built under windows) to compile the following:
`(data (i32.const 6) "Hello")`
I get a nice, well specified data segment which has a count of 1, an index of 0, and an `init_expr` with my `i32.const 6)` instruction followed by `end` (0xb) followed by a ... | Clarification of data segment compilation in wat2wasm | https://api.github.com/repos/WebAssembly/wabt/issues/1194/comments | 1 | 2019-10-20T21:17:32Z | 2020-03-11T17:31:39Z | https://github.com/WebAssembly/wabt/issues/1194 | 509,654,069 | 1,194 |
[
"WebAssembly",
"wabt"
] | Currently `wat2wasm` will [unconditionally emit the data count section](https://github.com/WebAssembly/wabt/blob/f157909d791ea8f32248657062e8fdb3ed435eb5/src/binary-writer.cc#L1061-L1065) if the bulk memory feature is enabled, but I was wondering if a better heuristic might be to omit the section unless there are instr... | Omitting the data count section to remain MVP-compatible? | https://api.github.com/repos/WebAssembly/wabt/issues/1189/comments | 10 | 2019-10-15T22:34:41Z | 2020-01-21T19:30:49Z | https://github.com/WebAssembly/wabt/issues/1189 | 507,516,550 | 1,189 |
[
"WebAssembly",
"wabt"
] | Given a wat file like:
```wat
(module
(func (param i32))
(table anyfunc (elem 0))
(table anyfunc (elem 0)))
```
when encoded this yields:
```
$ wat2wasm --enable-reference-types foo.wat -o foo.wasm
$ wasm-objdump -x foo.wasm ... | Expansion of inline elements is incorrect with multi-table | https://api.github.com/repos/WebAssembly/wabt/issues/1188/comments | 2 | 2019-10-15T22:26:56Z | 2019-10-17T14:21:16Z | https://github.com/WebAssembly/wabt/issues/1188 | 507,513,974 | 1,188 |
[
"WebAssembly",
"wabt"
] | I've been playing around with a custom wat parser and was using wabt as a reference test suite, and I think I came across some curious behavior!
The `tests/wabt/test/parse/expr/bulk-memory-named.txt` test ends up encoding differently on Linux and macOS. I think the Linux encoding is correct, and on macOS I've reduce... | Shadowing elem segment names encodes incorrectly on macOS | https://api.github.com/repos/WebAssembly/wabt/issues/1187/comments | 3 | 2019-10-15T21:29:02Z | 2019-10-21T16:20:12Z | https://github.com/WebAssembly/wabt/issues/1187 | 507,492,761 | 1,187 |
[
"WebAssembly",
"wabt"
] | Please increase the timeout in [`test/run-tests.py:39`](https://github.com/WebAssembly/wabt/blob/master/test/run-tests.py#L39). `test/wasm2c/spec/const.txt` and `test/wasm2c/spec/float_exprs.txt` tests take more than 20 seconds to complete on ARMv7 (32bit). | tests time out on ARMv7 (32bit) | https://api.github.com/repos/WebAssembly/wabt/issues/1183/comments | 2 | 2019-10-09T11:23:53Z | 2024-07-26T10:23:08Z | https://github.com/WebAssembly/wabt/issues/1183 | 504,586,165 | 1,183 |
[
"WebAssembly",
"wabt"
] | In 1.0.12, after removing test/regress/regress-30.txt to work around #1180 , 73 tests fail with this traceback:
```
- test/wasm2c/spec/address.txt
expected error code 0, got 1.
STDERR MISMATCH:
--- expected
+++ actual
@@ -0,0 +1,12 @... | 73 tests fail with TypeError in test/run-spec-wasm2c.py:101 | https://api.github.com/repos/WebAssembly/wabt/issues/1181/comments | 4 | 2019-10-04T12:01:41Z | 2020-01-10T19:39:00Z | https://github.com/WebAssembly/wabt/issues/1181 | 502,597,156 | 1,181 |
[
"WebAssembly",
"wabt"
] | When running the testsuite of 1.0.12, I'm getting this exception when `run_tests.py` is processing `test/regress/regress-30.txt`:
```
$ python3 -V
Python 3.7.4
$ test/run-tests.py --timeout=20
Traceback (most recent call last):
File "test/run-tests.py", line 952, in <module>
sys.exit(main(sys.argv[1:]))... | UnicodeDecodeError when parsing test/regress/regress-30.txt | https://api.github.com/repos/WebAssembly/wabt/issues/1180/comments | 2 | 2019-10-04T11:55:16Z | 2020-01-09T03:33:41Z | https://github.com/WebAssembly/wabt/issues/1180 | 502,594,444 | 1,180 |
[
"WebAssembly",
"wabt"
] | When a wasm file doesn't have a DataCount section I think validation of memory.init should fail. I have a wasm file that validates in wabt but in v8 reports:
`CompileError: WebAssembly.Module(): Compiling function #5840 failed: invalid data segment index: 2 @+2798285
` | spec-interp validation differs from wasm-validate | https://api.github.com/repos/WebAssembly/wabt/issues/1176/comments | 6 | 2019-09-27T16:52:39Z | 2020-03-11T17:32:48Z | https://github.com/WebAssembly/wabt/issues/1176 | 499,547,812 | 1,176 |
[
"WebAssembly",
"wabt"
] | I see many commits for a tool `wasm-decompile` in the last time. I have try it and the output look very nice. But I can't find any documentation or spec. That my questions:
- Which language/syntax do you want reproduce with the output? This seems me important to see what is a bug and what is the target language.
- ... | wasm-decompile | https://api.github.com/repos/WebAssembly/wabt/issues/1174/comments | 3 | 2019-09-26T15:38:47Z | 2020-01-16T17:51:49Z | https://github.com/WebAssembly/wabt/issues/1174 | 498,965,891 | 1,174 |
[
"WebAssembly",
"wabt"
] | circleci has proved very in emscripten and emsdk accross mac, linux and windows. | Should we switch from travis + appveyor to circleci | https://api.github.com/repos/WebAssembly/wabt/issues/1168/comments | 7 | 2019-09-25T16:34:22Z | 2020-05-25T05:15:07Z | https://github.com/WebAssembly/wabt/issues/1168 | 498,397,780 | 1,168 |
[
"WebAssembly",
"wabt"
] | wabt currently knows how to parse some custom sections, such as the linking section which are outside of the core spec.
I'd like to add some amount of validation there but its not clear where best to do this. Presumably not in ReadBinaryIr? Would it make sense to add this to ValidateModule? (disabled with the ... | Adding some validation of custom sections (e.g. linking section) | https://api.github.com/repos/WebAssembly/wabt/issues/1166/comments | 3 | 2019-09-24T22:37:37Z | 2020-03-20T20:38:23Z | https://github.com/WebAssembly/wabt/issues/1166 | 497,957,126 | 1,166 |
[
"WebAssembly",
"wabt"
] | Are there any plans to create a new release? The last release is 4 months old currently.
I use the latest binary release for running my unit tests on Travis. Today I am missing ref.null which is already fixed in WABT. | New Release | https://api.github.com/repos/WebAssembly/wabt/issues/1160/comments | 5 | 2019-09-15T08:11:33Z | 2019-09-26T15:26:04Z | https://github.com/WebAssembly/wabt/issues/1160 | 493,708,822 | 1,160 |
[
"WebAssembly",
"wabt"
] | https://github.com/WebAssembly/wabt/commit/3e938b7a10cc6738037dce5f18675cc5d267992d#r35063299 | Incorrect test in commit | https://api.github.com/repos/WebAssembly/wabt/issues/1159/comments | 0 | 2019-09-12T21:20:03Z | 2019-09-25T21:04:23Z | https://github.com/WebAssembly/wabt/issues/1159 | 493,035,281 | 1,159 |
[
"WebAssembly",
"wabt"
] | See https://github.com/WebAssembly/wasm-c-api
| Implement the standard wasm C++ API in wabt interpreter | https://api.github.com/repos/WebAssembly/wabt/issues/1158/comments | 3 | 2019-09-12T16:47:27Z | 2020-06-10T19:14:40Z | https://github.com/WebAssembly/wabt/issues/1158 | 492,918,133 | 1,158 |
[
"WebAssembly",
"wabt"
] | There is inconsistency between [supported features table](https://github.com/WebAssembly/wabt#supported-proposals) and [available options list](https://webassembly.github.io/wabt/doc/wasm-interp.1.html). I suppose that threads and exceptions should be added to the table and `--enable-mutable-globals` should be `--disab... | wasm-interp supported features list | https://api.github.com/repos/WebAssembly/wabt/issues/1154/comments | 3 | 2019-09-08T18:55:14Z | 2019-09-25T20:36:33Z | https://github.com/WebAssembly/wabt/issues/1154 | 490,789,898 | 1,154 |
[
"WebAssembly",
"wabt"
] | ### Test Case
```wat
(module
(data passive "hi"))
```
### Steps to Reproduce
```
wat2wasm path/to/test-case.wat --enable-bulk-memory -o output.wasm
```
### Expected Results
A wasm module with a passive data segment is generated.
### Actual Results
```
/path/to/test-case.wat:2:8: error: unexp... | wat2wasm: "error: unexpected token passive" even with --enable-bulk-memory | https://api.github.com/repos/WebAssembly/wabt/issues/1152/comments | 3 | 2019-09-04T21:53:40Z | 2019-09-12T15:03:52Z | https://github.com/WebAssembly/wabt/issues/1152 | 489,417,989 | 1,152 |
[
"WebAssembly",
"wabt"
] | I'm writing wat code where I have a long list (192) functions that I'm declaring in a table and an element sections so that I can call them with call_indirect. Like this:
```
(table 192 funcref)
(elem (offset (i32.const 0))
$func1 $func2........ $func192)
```
All those function take three i32 input paramete... | Function signatures in call_indirect | https://api.github.com/repos/WebAssembly/wabt/issues/1150/comments | 6 | 2019-09-03T14:14:33Z | 2022-05-19T01:20:54Z | https://github.com/WebAssembly/wabt/issues/1150 | 488,632,300 | 1,150 |
[
"WebAssembly",
"wabt"
] | ```
% gmake test
gmake --no-print-directory -C out/clang/Debug/ run-tests
[ 62%] Built target wabt
[ 65%] Built target wast2json
[ 68%] Built target wasm-validate
[ 71%] Built target wasm-interp
[ 74%] Built target wasm-strip
[ 77%] Built target wat-desugar
[ 80%] Built target spectest-interp
[ 83%] Built tar... | Build fails on FreeBSD | https://api.github.com/repos/WebAssembly/wabt/issues/1149/comments | 5 | 2019-08-29T10:08:10Z | 2019-09-25T20:25:32Z | https://github.com/WebAssembly/wabt/issues/1149 | 486,864,757 | 1,149 |
[
"WebAssembly",
"wabt"
] | in "wasm-rt-impl.c":
uint32_t wasm_rt_register_func_type(uint32_t param_count,
uint32_t result_count,
...) {
FuncType func_type;
......
uint32_t idx = g_func_type_count++;
g_func_types = **realloc**(g_func_types, g_func_type_count * si... | Realloc is unsuccessful and will cause a crash | https://api.github.com/repos/WebAssembly/wabt/issues/1147/comments | 3 | 2019-08-27T06:52:42Z | 2023-03-15T06:05:49Z | https://github.com/WebAssembly/wabt/issues/1147 | 485,619,599 | 1,147 |
Subsets and Splits
Unique Owner-Repo Count
Counts the number of unique owner-repos in the dataset, providing a basic understanding of diverse repositories.