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" ]
I'm tring to convert wasm to wat, but i get following error: **ReferenceError: module is not defined** My function is: `function wasm2wat2(wasmLink) { if (wasmLink == null) { return null; } var Module = {}; var wasmBinary; let finalResult;; fetch(wasmLink) .t...
wasm2wat issue
https://api.github.com/repos/WebAssembly/wabt/issues/863/comments
1
2018-06-17T19:43:29Z
2020-12-15T09:24:01Z
https://github.com/WebAssembly/wabt/issues/863
333,087,658
863
[ "WebAssembly", "wabt" ]
I have tried to compile WABT tools, but no luck until now. I have cloned git repo, then cmake and make after cmake seems to be ok, but it stops on wasm2c with below error [ 89%] Linking CXX executable wasm2c /usr/bin/ld: cannot open output file wasm2c: Is a directory collect2: error: ld returned 1 exit statu...
Compilation problem
https://api.github.com/repos/WebAssembly/wabt/issues/859/comments
2
2018-06-05T18:37:13Z
2018-06-05T20:08:03Z
https://github.com/WebAssembly/wabt/issues/859
329,576,706
859
[ "WebAssembly", "wabt" ]
The warning: `-Werror=class-memaccess` How to reproduce: - Have a GCC 8 (possibly 8.1) - Set up a cmake build manually (make a subdirectory, `cmake ..` in it) - `make` Terminal output: ``` .../wabt> cd mybuild/ .../wabt/mybuild> cmake .. -- The C compiler identification is GNU 8.1.0 -- The CXX compile...
Build error due `-Werror=class-memaccess` in GCC 8.1
https://api.github.com/repos/WebAssembly/wabt/issues/857/comments
0
2018-06-05T15:03:40Z
2018-06-05T20:52:47Z
https://github.com/WebAssembly/wabt/issues/857
329,498,822
857
[ "WebAssembly", "wabt" ]
Could I ask a quick question about the [interpreter](https://github.com/WebAssembly/wabt/blob/409d61ef5d485ae2ce783968f290050840e87a22/src/interp.cc)? It handles `Br` and `BrIf` opcodes by adjusting the program counter (`pc`). The specification for [control instructions](https://webassembly.github.io/spec/core/synta...
Unwinding of Branches and Loops
https://api.github.com/repos/WebAssembly/wabt/issues/854/comments
2
2018-06-04T18:05:40Z
2018-09-13T07:46:02Z
https://github.com/WebAssembly/wabt/issues/854
329,159,710
854
[ "WebAssembly", "wabt" ]
Not quite sure what's failing here, though maybe I'm doing something weird w/ `--pre-js`: See [this travis failure](https://travis-ci.org/WebAssembly/wabt/jobs/387896293) for example. ``` Assertion failed: could not find the assigment to "asmLibraryArg". perhaps --pre-js or --post-js code moved it out of the g...
Emscripten travis failure
https://api.github.com/repos/WebAssembly/wabt/issues/853/comments
2
2018-06-04T17:50:14Z
2018-09-13T07:45:28Z
https://github.com/WebAssembly/wabt/issues/853
329,154,961
853
[ "WebAssembly", "wabt" ]
wast2json returns errors on instructions `memory.grow` and `memory.size`. Errors look like the following when run on the official test suite file memory.wast. ``` $ wast2json memory.wast -o memory.json memory.wast:11:64: error: unexpected token "memory.size", expected an instr. (module (memory (data)) (func (expo...
wast2json errors for memory.grow and memory.size
https://api.github.com/repos/WebAssembly/wabt/issues/852/comments
2
2018-06-02T18:59:19Z
2018-06-02T19:38:31Z
https://github.com/WebAssembly/wabt/issues/852
328,768,721
852
[ "WebAssembly", "wabt" ]
When I build wabt with `make clang-release-msan`, and run `wasm2wat` against almost any other files (e.g., `./wasm2wat ./CMakeCache.txt`), MSan reports use of uninitialized value such as: ``` Uninitialized bytes in __interceptor_strlen at offset 16 inside [0x702000000380, 17) ==23518==WARNING: MemorySanitizer: use...
MSan reported use of uninitialized value
https://api.github.com/repos/WebAssembly/wabt/issues/850/comments
2
2018-05-28T03:47:52Z
2018-05-28T04:26:36Z
https://github.com/WebAssembly/wabt/issues/850
326,887,233
850
[ "WebAssembly", "wabt" ]
wat2wasm enforces that imports are the first fields within a module. However the [specification states that](http://webassembly.github.io/spec/core/text/modules.html#text-module): > A module consists of a sequence of fields that can occur in any order.
"error: imports must occur before all non-import definitions" is not spec compliant
https://api.github.com/repos/WebAssembly/wabt/issues/847/comments
3
2018-05-25T19:19:38Z
2018-09-13T07:45:49Z
https://github.com/WebAssembly/wabt/issues/847
326,636,007
847
[ "WebAssembly", "wabt" ]
--- token.h // Tokens with Literal data. Float, Int, Nat, --- token.cc // Literal. "FLOAT", "NAT", "INT", "NAT" and "INT" have been changed.
Some TokenType names do not match.
https://api.github.com/repos/WebAssembly/wabt/issues/844/comments
1
2018-05-20T07:39:21Z
2018-05-21T23:28:41Z
https://github.com/WebAssembly/wabt/issues/844
324,690,383
844
[ "WebAssembly", "wabt" ]
When running `wasm2wat` on Rust-generated WASM, I get an error: ``` wasm2wat --fold-exprs --generate-names --inline-exports --ignore-custom-section-errors --no-check -o /tmp/out.wat target/wasm32-unknown-unknown/release/playground.wasm.gc 002e818: error: invalid linking metadata version: 3 ``` [playground.wasm...
"invalid linking metadata version: 3" when running against Rust-generated WASM
https://api.github.com/repos/WebAssembly/wabt/issues/842/comments
11
2018-05-16T16:46:11Z
2018-06-14T17:56:42Z
https://github.com/WebAssembly/wabt/issues/842
323,702,124
842
[ "WebAssembly", "wabt" ]
I'm compiling Rust code to wasm, and I'm getting the leb128 issue with wasm-validate. Rust code: #[no_mangle] pub extern "C" fn test(n: i32) -> i32 { n } I'm using the latest wabt master branch as of today, and a Rust May 9, 2018 nightly. $ cargo build --release --target wasm32-unknown-unknown $ wasm-...
0000099: error: unable to read u32 leb128: stack pointer index
https://api.github.com/repos/WebAssembly/wabt/issues/838/comments
10
2018-05-14T19:45:53Z
2018-05-15T17:31:54Z
https://github.com/WebAssembly/wabt/issues/838
322,954,619
838
[ "WebAssembly", "wabt" ]
![screenshot_20180512_020702](https://user-images.githubusercontent.com/6286761/39939521-208786cc-5589-11e8-8798-d837e20c329d.png) wasm2wat works before [1.0.1](https://github.com/WebAssembly/wabt/releases/tag/1.0.1).
wasm2wat not work with rust
https://api.github.com/repos/WebAssembly/wabt/issues/836/comments
5
2018-05-11T18:08:12Z
2018-05-14T19:10:03Z
https://github.com/WebAssembly/wabt/issues/836
322,386,129
836
[ "WebAssembly", "wabt" ]
I'm debugging a Wasm compile error in a specific function. It'd be nice to be able to limit the disassembly dump to only a specific function or functions. For example: ``` wasm-objdump -d out.wasm --functions=13,64 ``` This would only show the disassembly for functions 13 and 64. For bonus points, it'd be nice ...
wasm-objdump should have a way to only show specific functions
https://api.github.com/repos/WebAssembly/wabt/issues/828/comments
0
2018-04-10T18:16:36Z
2020-03-20T20:34:59Z
https://github.com/WebAssembly/wabt/issues/828
313,035,314
828
[ "WebAssembly", "wabt" ]
The implementation of the `OnLocalDecl` callback used in `BinaryReader::ReadCodeSection` does not ensure that there are positive local declarations. `0` is a valid `ReadU32Leb128` input when filling out the vector pairs in `current_func_->local_types`. This wouldn't be a problem if it weren't for the way the custom ite...
wasm2wat: OnLocalDecl callback does not enforce nonzero values
https://api.github.com/repos/WebAssembly/wabt/issues/826/comments
3
2018-04-10T05:34:04Z
2018-04-10T22:24:05Z
https://github.com/WebAssembly/wabt/issues/826
312,778,785
826
[ "WebAssembly", "wabt" ]
The type mangling map in c-writer.cc does not support the V128 type in the following code: ``` static char CWriter::MangleType(Type type) { switch (type) { case Type::I32: return 'i'; case Type::I64: return 'j'; case Type::F32: return 'f'; case Type::F64: return 'd'; default: WABT_UNREAC...
wasm2c: Type Mangling does not support V128, causing SEGFAULT
https://api.github.com/repos/WebAssembly/wabt/issues/823/comments
3
2018-04-05T02:32:08Z
2018-04-07T02:35:27Z
https://github.com/WebAssembly/wabt/issues/823
311,453,006
823
[ "WebAssembly", "wabt" ]
git clone'd cd'd into dir `make` `unable to find stddef.h` what are the dependencies for this? Ubuntu 17.10
Unable to compile with make
https://api.github.com/repos/WebAssembly/wabt/issues/822/comments
5
2018-04-03T03:57:12Z
2018-11-06T19:25:51Z
https://github.com/WebAssembly/wabt/issues/822
310,685,897
822
[ "WebAssembly", "wabt" ]
Wasm2wat spent several tens of seconds to parse and more than 6GB of RAM before reporting failure. ``` AGFzbQEAAAABDANgAAF9YAABf2AAAAMGBQABAgICBQQBAQEBBzcFCGYzMi5sb2FkAAAIaTMyLmxv YWQAAQlmMzIuc3RvcmUAAglpMzIuc3RvcmUAAwVyZXNldAAECjYFB37zpf61DH3rop4IXXkDaaD5 6JHNjjpK64pBqXg6oID5JfAjsJdPJjZphD7uqVcvZBtuIs8GHIJNwJ6Xm...
Invalid module takes a lot of time and memory to validate.
https://api.github.com/repos/WebAssembly/wabt/issues/819/comments
0
2018-03-27T09:44:34Z
2018-03-28T20:43:25Z
https://github.com/WebAssembly/wabt/issues/819
308,895,986
819
[ "WebAssembly", "wabt" ]
Hi, I understand libwabt.js is essentially wabt run through Emscripten, but it looks like a pretty handy little JS lib itself. I can see myself using it for some things and I suspect I'm not alone. I think it would be kind of great if libwabt.js was a separate repo (or CDN even) people can use to play around with. ...
Consider a separate repo for libwabt.js?
https://api.github.com/repos/WebAssembly/wabt/issues/818/comments
3
2018-03-25T03:31:43Z
2018-03-27T06:41:46Z
https://github.com/WebAssembly/wabt/issues/818
308,319,102
818
[ "WebAssembly", "wabt" ]
It'd be helpful in debugging generated Wasm code. It doesn't have to be wasm-objdump, but that seems like the most logical tool.
wasm-objdump should have a way to show locals declared in a function
https://api.github.com/repos/WebAssembly/wabt/issues/807/comments
1
2018-03-14T21:43:10Z
2018-03-16T22:07:56Z
https://github.com/WebAssembly/wabt/issues/807
305,339,827
807
[ "WebAssembly", "wabt" ]
``` $ make ..... Scanning dependencies of target libwabt [ 1%] Building CXX object CMakeFiles/libwabt.dir/src/token.cc.o In file included from /Users/sam/wasm/wabt/src/token.cc:17: /Users/sam/itt/wasm/wabt/src/token.h:20:10: fatal error: 'string' file not found #include <string> ^~~~~~~~ 1 error ge...
fatal error: 'string' file not found
https://api.github.com/repos/WebAssembly/wabt/issues/805/comments
15
2018-03-12T14:21:58Z
2022-05-19T01:36:49Z
https://github.com/WebAssembly/wabt/issues/805
304,391,439
805
[ "WebAssembly", "wabt" ]
Hi all, how to install wabt on windows 10 ? i tried following git clone --recursive https://github.com/WebAssembly/wabt mkdir build cd build c:\users\myusername\wabt -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=c:\users\myusername\build\bin -G "Visual Studio 15 2017" cmake --build c:\users\myuse...
windows 10 VS2017 wabt installation
https://api.github.com/repos/WebAssembly/wabt/issues/804/comments
2
2018-03-12T10:06:39Z
2019-02-16T09:43:43Z
https://github.com/WebAssembly/wabt/issues/804
304,307,865
804
[ "WebAssembly", "wabt" ]
``` AGFzbQEAAAABBAFgAAADAgEAChABDgBCgICAgICAgID/fhoL ``` This file is successfully loaded by the spec interpreter and binaryen. But wasm2wat reports an error: ``` 0000018: error: unable to read i64 leb128: i64.const value ```
i64.const value couldn't read
https://api.github.com/repos/WebAssembly/wabt/issues/799/comments
4
2018-03-08T21:43:23Z
2018-03-16T22:08:47Z
https://github.com/WebAssembly/wabt/issues/799
303,642,933
799
[ "WebAssembly", "wabt" ]
Hello, I am trying to run an exported function of WASM binary and following is the error I am getting. What am I doing wrong? Any help appreciated. ``` $wasm-interp ../../hello.wasm error: unknown import module "env" 0000083: error: OnImportMemory callback failed $wasm-inte...
How to run/test exported function of WASM binary using wasm-interp?
https://api.github.com/repos/WebAssembly/wabt/issues/798/comments
7
2018-03-07T22:58:03Z
2022-05-19T01:36:13Z
https://github.com/WebAssembly/wabt/issues/798
303,291,772
798
[ "WebAssembly", "wabt" ]
Hi, I believe wast2wasm should be part of wabt? https://github.com/Hanks10100/wasm-examples/tree/master/simple uses it, but wast2wasm doesn't exist in the wabt I built (latest GitHub)... (new to WebAssembly)
wast2wasm not found
https://api.github.com/repos/WebAssembly/wabt/issues/777/comments
2
2018-02-28T10:52:42Z
2018-03-16T22:09:25Z
https://github.com/WebAssembly/wabt/issues/777
300,977,973
777
[ "WebAssembly", "wabt" ]
For the following module spec interpreter reports OK, but `wasm2wat` reports ``` 000000a: error: unable to read u32 leb128: string length ``` base64: ``` AGFzbQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAQAHAAA= ``` i'm not sure who is culprit in this case, so cc @rossberg
spec/wabt behavior difference
https://api.github.com/repos/WebAssembly/wabt/issues/762/comments
5
2018-02-15T23:30:14Z
2018-02-21T02:11:56Z
https://github.com/WebAssembly/wabt/issues/762
297,634,414
762
[ "WebAssembly", "wabt" ]
Fuzzer come up with a such module (base64 form) ``` AGFzbQEAAAAAKAoAAABhcycAAABtAQAAACYBAAAAAC8AAAAAYXNtAQAAAABhc20BAAcHB/////EHBwcHAAA= ``` Running it makes my test machine to blow up: ``` $ echo "AGFzbQEAAAAAKAoAAABhcycAAABtAQAAACYBAAAAAC8AAAAAYXNtAQAAAABhc20BAAcHB/////EHBwcHAAA=" | base64 -d > ~/test.was...
Small module makes wabt to do an enourmous allocation
https://api.github.com/repos/WebAssembly/wabt/issues/760/comments
14
2018-02-15T21:59:13Z
2018-03-28T23:05:12Z
https://github.com/WebAssembly/wabt/issues/760
297,611,396
760
[ "WebAssembly", "wabt" ]
It seems that wabt by default (i.e. without any options) successfully validates modules that have non MVP features, e.g. this one: ```WebAssembly (module (memory 1 1 shared) ) ``` However, features (at least in wabt options) are looks like opt-in: ``` --enable-exceptions Experi...
wabt validates memory with `shared` flag with default options.
https://api.github.com/repos/WebAssembly/wabt/issues/754/comments
1
2018-02-13T11:40:01Z
2018-02-13T19:37:30Z
https://github.com/WebAssembly/wabt/issues/754
296,707,209
754
[ "WebAssembly", "wabt" ]
Here is a binary https://github.com/pepyakin/wasmi/files/1708839/livesplit_core.zip afc3f3a8 ``` * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x7fff5f3fff30) * frame #0: 0x0000000100035679 wasm2wat`wabt::TypeChecker::PushLabel(this=<unavailable>, label_type=<u...
segfault when pointing `wasm2wat` to a module with a really big function
https://api.github.com/repos/WebAssembly/wabt/issues/752/comments
2
2018-02-08T21:34:41Z
2018-02-22T19:28:54Z
https://github.com/WebAssembly/wabt/issues/752
295,673,382
752
[ "WebAssembly", "wabt" ]
https://github.com/WebAssembly/spec/blob/4f078ff69de51d07c1c265273e396f42b2fb2dd3/test/core/unreached-invalid.wast#L507 I expect `wat2wasm` will successfuly serialize the following module: ```WebAssembly (module (func (export "test") (result i32) (block (result i32) (unreachable) (br_if 0 (i32.const ...
Seems like wabt don't pass testsuite?
https://api.github.com/repos/WebAssembly/wabt/issues/749/comments
2
2018-02-07T10:12:01Z
2018-02-07T17:32:43Z
https://github.com/WebAssembly/wabt/issues/749
295,078,038
749
[ "WebAssembly", "wabt" ]
At line 90: https://github.com/WebAssembly/wabt/blob/a74072b2163ca20645e4a313636507cb3984f5fb/src/lexer-source-line-finder.cc#L87-L94 stacktrace: ``` * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) * frame #0: 0x0000000100034fa6 wat2wasm`wabt::LexerSourceLin...
segfault when running `wat2wasm -`
https://api.github.com/repos/WebAssembly/wabt/issues/748/comments
1
2018-02-07T10:05:25Z
2018-02-11T18:31:41Z
https://github.com/WebAssembly/wabt/issues/748
295,075,695
748
[ "WebAssembly", "wabt" ]
Is it possible to generate compileable c code from web assembly by using wasm2c? I have try to compiled by failed.
use wasm2c to generate code is unable to compile
https://api.github.com/repos/WebAssembly/wabt/issues/746/comments
9
2018-02-06T06:58:29Z
2024-10-07T17:03:32Z
https://github.com/WebAssembly/wabt/issues/746
294,651,566
746
[ "WebAssembly", "wabt" ]
I've used `wat2wasm` a minimal implementation divided on two files and want to link them. When I invoke `wasm-link` it says the tool is deprecated, and I should use `lld` instead. However, `lld` fails with error `invalid data format`. I've tried with `5.0.0` `5.0.1` and `6.0.0`, all built from source with `-DLLVM_EX...
wasm-link deprecated but cannot get suggested replacement lld to work
https://api.github.com/repos/WebAssembly/wabt/issues/745/comments
2
2018-02-01T15:26:59Z
2018-02-01T19:43:15Z
https://github.com/WebAssembly/wabt/issues/745
293,571,636
745
[ "WebAssembly", "wabt" ]
See [Oxidizing Source Maps with Rust and WebAssembly](https://hacks.mozilla.org/2018/01/oxidizing-source-maps-with-rust-and-webassembly/). > We found size profiling WebAssembly was more difficult than necessary. To get useful information presented meaningfully, we were forced to write our own home-grown script to po...
Implement better size profiler
https://api.github.com/repos/WebAssembly/wabt/issues/724/comments
4
2018-01-18T23:03:51Z
2019-02-05T16:14:24Z
https://github.com/WebAssembly/wabt/issues/724
289,806,831
724
[ "WebAssembly", "wabt" ]
When I run `make`, I get an error complaining about gtest. When I did `brew search gtest`, it gave the following warning, so I didn't attempt to install it system wide: ``` ==> Searching local taps... ==> Searching taps on GitHub... ==> Searching blacklisted, migrated and deleted formulae... Installing gtest sys...
build fails on MacOS 10.12.6: complaint about third_party/gtest
https://api.github.com/repos/WebAssembly/wabt/issues/716/comments
9
2018-01-14T23:02:38Z
2018-12-20T22:10:44Z
https://github.com/WebAssembly/wabt/issues/716
288,447,607
716
[ "WebAssembly", "wabt" ]
On Windows
How could I get this without compile by myself
https://api.github.com/repos/WebAssembly/wabt/issues/715/comments
1
2018-01-13T09:19:18Z
2018-01-13T16:06:37Z
https://github.com/WebAssembly/wabt/issues/715
288,315,279
715
[ "WebAssembly", "wabt" ]
It would be cool to keep support for the spec repo's `.wast` format: take the `.wat` part, convert to `.wasm`, and ignore the assertions. I don't think you want this to be the default behavior for `wat2wasm`, but maybe it can be a flag?
wast2wasm
https://api.github.com/repos/WebAssembly/wabt/issues/693/comments
1
2017-12-14T00:36:34Z
2017-12-14T00:43:20Z
https://github.com/WebAssembly/wabt/issues/693
281,944,466
693
[ "WebAssembly", "wabt" ]
Over in https://github.com/alexcrichton/wasm-gc/pull/8 I'm experimenting with demangling rust symbols in wasm output. This results in symbol names such as `<alloc::vec::Vec<T>>::extend_from_slice` and `<&'a T as core::fmt::Debug>::fmt`. While `wasm2wat` produces very nice looking output, I get a segmentation fault ...
Strange symbols don't roundtrip through wasm2wat and wat2wasm
https://api.github.com/repos/WebAssembly/wabt/issues/685/comments
2
2017-12-03T17:25:00Z
2022-05-19T01:35:45Z
https://github.com/WebAssembly/wabt/issues/685
278,801,340
685
[ "WebAssembly", "wabt" ]
Steps to reproduce: ``` $ echo '(module (func))' > test.wat $ wat2wasm -r test.wat -o test.wasm $ wasm-ld test.wasm -o out.wasm wasm-ld: error: test.wasm: not a relocatable wasm file ``` Furthermore, files produced by wat2wasm with and without -r option don't seem to differ: ``` $ wat2wasm test.wat -o te...
wat2wasm relocatable output files will not link with lld
https://api.github.com/repos/WebAssembly/wabt/issues/681/comments
0
2017-12-01T15:00:16Z
2017-12-06T01:02:57Z
https://github.com/WebAssembly/wabt/issues/681
278,492,139
681
[ "WebAssembly", "wabt" ]
When I'm trying wast2wasm the following code: ```WebAssembly (module (global i32 (i32.const 0)) (global i32 (get_global 0)) ) ``` error message is printed: ``` init_with_internal_global.wast:3:3: initializer expression can only reference an imported global ``` [Spec states that](https://webassemb...
initializer expression can only reference an imported global
https://api.github.com/repos/WebAssembly/wabt/issues/680/comments
3
2017-12-01T14:26:08Z
2017-12-04T18:48:14Z
https://github.com/WebAssembly/wabt/issues/680
278,481,962
680
[ "WebAssembly", "wabt" ]
Since we can link with lld, perhaps it makes sense to remove `wasm-link` so to reduce confusion. It'd be nice to have an alternate linker, but since `wasm-link` isn't quite there, it may be creating more harm than good. @sbc100 wdyt?
Remove wasm-link?
https://api.github.com/repos/WebAssembly/wabt/issues/679/comments
3
2017-11-30T23:11:34Z
2018-03-12T19:27:12Z
https://github.com/WebAssembly/wabt/issues/679
278,302,641
679
[ "WebAssembly", "wabt" ]
The "write_debug_names" option should be enabled in the WAT2WASM online demo. This will add the debug names section to the generated WASM binary and will in consequence allow better debugging in latest Chrome and Firefox. I'd be happy to provide a pull request.
Enable "write_debug_names" option in WAT2WASM online demo
https://api.github.com/repos/WebAssembly/wabt/issues/675/comments
2
2017-11-22T11:17:54Z
2017-11-23T20:58:33Z
https://github.com/WebAssembly/wabt/issues/675
276,031,263
675
[ "WebAssembly", "wabt" ]
Testcase: ```` (module (func $0 (result i32) (loop $label$1 (result i32) (br $label$1) ) ) ) ```` Hits this error: ```` wasm2c: /wabt/src/c-writer.cc:712: void wabt::{anonymous}::CWriter::Write(const wabt::{anonymous}::StackVar&): Assertion `index < type_stack_.size()' failed. ````
c-writer fails on un-exited loop with value
https://api.github.com/repos/WebAssembly/wabt/issues/674/comments
3
2017-11-21T23:17:11Z
2017-11-21T23:46:49Z
https://github.com/WebAssembly/wabt/issues/674
275,892,569
674
[ "WebAssembly", "wabt" ]
wabt's validation logic doesn't reject invalid modules in some testcases recently added to the spec testsuite: ``` $ wast2json unreached-invalid.wast -o unreached-invalid.json $ wasm2wat unreached-invalid.87.wasm -o x.wat ``` For comparison, the spec interpreter rejects the same file: ``` $ wasm unreached-invali...
wabt validation doesn't reject new unreached-invalid cases
https://api.github.com/repos/WebAssembly/wabt/issues/670/comments
1
2017-11-14T00:24:20Z
2017-11-14T17:14:53Z
https://github.com/WebAssembly/wabt/issues/670
273,625,957
670
[ "WebAssembly", "wabt" ]
Currently, ``` $ wast2json imports.wast -o output/imports.json $ ls output/ imports.0.wasm imports.22.wasm imports.49.wasm imports.75.wasm imports.100.wast imports.23.wasm imports.4.wasm imports.76.wasm imports.101.wast imports.24.wasm imports.50.wasm imports.77.wasm imports.102.wast imports.25.wasm...
wast2json should produce "wat" files
https://api.github.com/repos/WebAssembly/wabt/issues/668/comments
0
2017-11-14T00:01:57Z
2017-11-14T02:54:04Z
https://github.com/WebAssembly/wabt/issues/668
273,621,853
668
[ "WebAssembly", "wabt" ]
Any ongoing efforts to support SIMD opcodes in WABT? We have an implementation in progress and will be happy to contribute.
SIMD support in WABT
https://api.github.com/repos/WebAssembly/wabt/issues/663/comments
9
2017-10-30T23:34:25Z
2018-03-19T22:45:57Z
https://github.com/WebAssembly/wabt/issues/663
269,787,851
663
[ "WebAssembly", "wabt" ]
I'd like to use wasm-link create objects for use with an embedded interpreter, where the host provides implementations of some functions, but I don't see how to accomplish this. The linker refuses to create files with unresolved function imports, and while the WABT interpreter has a notion of "host functions" and even ...
Support for host exported functions in wasm-link.
https://api.github.com/repos/WebAssembly/wabt/issues/651/comments
2
2017-10-13T17:31:26Z
2018-03-16T22:10:51Z
https://github.com/WebAssembly/wabt/issues/651
265,363,632
651
[ "WebAssembly", "wabt" ]
Abseil (http://abseil.io/) has finally made its escape from the walls of Google, and might now be a great place to get some utilities such as `string_view` (http://abseil.io/docs/cpp/guides/strings), feature testing, backwards C++ compatibility, etc.
Use Abseil for things like string_view?
https://api.github.com/repos/WebAssembly/wabt/issues/639/comments
3
2017-09-26T17:20:35Z
2022-05-19T01:28:36Z
https://github.com/WebAssembly/wabt/issues/639
260,704,157
639
[ "WebAssembly", "wabt" ]
The following wat code triggers an assertion ```wat (module (test)) ``` `Assertion failed: !"ParseModuleField should only be called if IsModuleField() is true", file E:\Projects\wabt\src\wast-parser.cc, line 734` `ParseModuleFieldList` tries to `ParseModuleField` then on error validate with `IsModuleField`. Eit...
ModuleField assertion
https://api.github.com/repos/WebAssembly/wabt/issues/637/comments
1
2017-09-23T00:02:49Z
2017-09-23T01:33:34Z
https://github.com/WebAssembly/wabt/issues/637
259,965,388
637
[ "WebAssembly", "wabt" ]
Since we have name sections for minimal debug info, we should support the common use case of generating a name-ful binary at compile time, and then keeping a copy of that while deploying a stripped version to users. Eventually we'll want it to be smart enough to strip debug info custom sections while leaving others, bu...
We should have a wasm-strip tool
https://api.github.com/repos/WebAssembly/wabt/issues/631/comments
0
2017-09-18T17:28:20Z
2018-09-13T07:47:51Z
https://github.com/WebAssembly/wabt/issues/631
258,558,918
631
[ "WebAssembly", "wabt" ]
I have a bogus wasm file that apparently has a bad opcode somewhere in the code section (0xb531). I just wanted to see the section headers but I'm still getting an error: $ bin/wasm-objdump --enable-threads -h pthread_create.wasm pthread_create.wasm: file format wasm 0x1 *ERROR*: @0x0000b531: unexpected opcode:...
wasm-objdump errors out on bad opcodes even when just printing section headers
https://api.github.com/repos/WebAssembly/wabt/issues/627/comments
7
2017-09-14T22:53:45Z
2017-09-27T02:04:43Z
https://github.com/WebAssembly/wabt/issues/627
257,879,559
627
[ "WebAssembly", "wabt" ]
In wat2wasm. When parsing a pair of token, if we have to reallocate (ie: grow) the read buffer between both token and a parsing error occurs, if the first token is printed in the error message, the text will have been freed by then. From what I see, in WastParser, when pushing tokens in `tokens_` the token keep a ...
Possible use-after-free in error message
https://api.github.com/repos/WebAssembly/wabt/issues/623/comments
1
2017-09-13T17:07:19Z
2017-09-20T04:06:12Z
https://github.com/WebAssembly/wabt/issues/623
257,454,170
623
[ "WebAssembly", "wabt" ]
Given a .wat file with multiple modules (as if a .wast file containing multiple modules were naively renamed as .wat), wabt's wat2wasm seems to silently ignore trailing modules. ``` $ cat t.wat (module (func $foo (result i32) (i32.const 77))) (module (func $bar (result i32) (i32.const 88))) $ wat2wasm t.wat -o t.w...
wat2wasm silently swallows trailing modules
https://api.github.com/repos/WebAssembly/wabt/issues/621/comments
1
2017-09-12T18:07:16Z
2017-09-20T04:06:24Z
https://github.com/WebAssembly/wabt/issues/621
257,133,399
621
[ "WebAssembly", "wabt" ]
Hello, new to WASM here. I'm using WABT's `wat2wasm` tool (at caf98190ca5267a0864ef019889b31ed16d95f77) to compile this: ```wat (module (func $test (result i32) (i32.const 64)) ) ``` But in Chromium 61 on Linux I am getting an error: ```yml CompileError: AsyncCompile: Wasm decoding failed: expected 1...
i32.const not working on Chrome 61 Linux
https://api.github.com/repos/WebAssembly/wabt/issues/620/comments
7
2017-09-10T01:17:42Z
2017-09-12T04:21:48Z
https://github.com/WebAssembly/wabt/issues/620
256,477,349
620
[ "WebAssembly", "wabt" ]
I thought this was a bug in SpiderMonkey as wabt and v8 accept the binary, but @lukewagner says it is the opposite. Details here: https://bugzilla.mozilla.org/show_bug.cgi?id=1385717 Seems like it comes down to what is pushed on the stack by a br_if with a value whose input value is unreachable, but this is a confus...
Potential bug in br_if validation
https://api.github.com/repos/WebAssembly/wabt/issues/588/comments
7
2017-07-31T15:57:02Z
2017-07-31T19:38:43Z
https://github.com/WebAssembly/wabt/issues/588
246,806,237
588
[ "WebAssembly", "wabt" ]
[cc.wasm.gz](https://github.com/WebAssembly/wabt/files/1184527/cc.wasm.gz) The file contains this: ```` $ ../wabt/out/wasm2wast cc.wasm (module (type (;0;) (func)) (func (;0;) (type 0) (local f32) i32.const 259 if ;; label = @1 unreachable tee_local 0 end)) ```` wabt a...
unreachable tee incorrectly accepted?
https://api.github.com/repos/WebAssembly/wabt/issues/586/comments
1
2017-07-29T00:38:33Z
2017-07-30T04:37:16Z
https://github.com/WebAssembly/wabt/issues/586
246,487,501
586
[ "WebAssembly", "wabt" ]
Shouldn't it be 0x1? When I try to view a 0x1 binary, I get ```` error reading binary: error: @0x00000008: bad wasm file version: 0x1 (expected 0xd) ````
Expected version is 0xd
https://api.github.com/repos/WebAssembly/wabt/issues/585/comments
2
2017-07-26T23:50:29Z
2017-07-27T02:02:46Z
https://github.com/WebAssembly/wabt/issues/585
245,887,361
585
[ "WebAssembly", "wabt" ]
Hi, Our code scanner has reported a file descriptor leak at [src/writer.cc#L33](https://github.com/WebAssembly/wabt/blob/master/src/writer.cc#L33), the file pointer is allocated here: `FILE* file = fopen(filename_str.c_str(), "wb");` for any early return, would skip the fclose(file) statement and leak this file...
Potential file descriptor leak at src/writer.cc
https://api.github.com/repos/WebAssembly/wabt/issues/571/comments
0
2017-07-14T11:40:54Z
2017-09-05T05:22:17Z
https://github.com/WebAssembly/wabt/issues/571
242,974,105
571
[ "WebAssembly", "wabt" ]
Hi all, Our code scanner has reported a double free at [wasm-opcodecnt.cc#L221](https://github.com/WebAssembly/wabt/blob/master/src/tools/wasm-opcodecnt.cc#L221), There are two `delete[] data` inside function `ProgramMain`, if read_file failed, it could occur some unexpected behaviors. May be we can add a return...
Potential double free at src/tools/wasm-opcodecnt.cc::ProgramMain
https://api.github.com/repos/WebAssembly/wabt/issues/570/comments
0
2017-07-14T07:49:30Z
2017-07-14T21:37:35Z
https://github.com/WebAssembly/wabt/issues/570
242,923,198
570
[ "WebAssembly", "wabt" ]
I'm getting this error when running wasm-link on a wasm module generated by llc. The wasm module (as printed by wasm2wast): ``` (module (type (;0;) (func)) (func $function (type 0) i32.const 0 i32.const 1 i32.store8) (table (;0;) 0 anyfunc) (memory (;0;) 1) (global (;0;) i32 (i32.cons...
wasm-link: unhandled relocation type: R_GLOBAL_ADDR_LEB
https://api.github.com/repos/WebAssembly/wabt/issues/565/comments
6
2017-07-11T08:02:21Z
2018-03-16T22:11:26Z
https://github.com/WebAssembly/wabt/issues/565
241,960,537
565
[ "WebAssembly", "wabt" ]
``` $ wasm2wast /tmp/emscripten_temp/emcc-lld-output.wasm (null):0: mutable globals cannot be exported ``` This happens whether of not I specify a -o file.
wasm2wast error message have strange locations
https://api.github.com/repos/WebAssembly/wabt/issues/557/comments
2
2017-07-07T00:44:06Z
2017-07-13T17:23:27Z
https://github.com/WebAssembly/wabt/issues/557
241,125,991
557
[ "WebAssembly", "wabt" ]
We should change the tools to the following (adding on to #354): - [x] `wat2wasm`: converts .wat text files only to .wasm binary files, and optionally validates - [x] `wast2json`: converts .wast spec test files to .json and .wasm files - ~~`wat-validate`: standalone .wat file validation, no conversion~~ - [x] `wa...
Reorganize tools
https://api.github.com/repos/WebAssembly/wabt/issues/543/comments
2
2017-06-29T17:39:44Z
2017-11-01T05:11:13Z
https://github.com/WebAssembly/wabt/issues/543
239,558,380
543
[ "WebAssembly", "wabt" ]
Hi, Im interested to know more about 'fuzz-in' directory and how to use those content to fuzz webassembly, but the readme file doesnt have any information about them! Can you please explain how I can use those files and what is the idea of the fuzzer? Thanks
no notes for fuzz-in/ directory
https://api.github.com/repos/WebAssembly/wabt/issues/537/comments
3
2017-06-27T13:04:32Z
2022-05-19T01:27:32Z
https://github.com/WebAssembly/wabt/issues/537
238,843,873
537
[ "WebAssembly", "wabt" ]
I'm working around the issue by not using wasm-link and just including the [c files into a single source](https://github.com/winksaville/test-nn-wasm/blob/master/lib/libwasm.c). What is the time frame for adding memory section support?
What's the plan for supporting memory sections in wasm-link?
https://api.github.com/repos/WebAssembly/wabt/issues/507/comments
5
2017-06-17T18:39:08Z
2018-03-16T22:11:35Z
https://github.com/WebAssembly/wabt/issues/507
236,677,095
507
[ "WebAssembly", "wabt" ]
Building CXX object ... test-string-view.cc eventually tries to include c++/type_traits, where "struct __is_floating_point_helper<__float128>" fails to compile. This is 64-bit Cygwin running on Windows7. Git-cloned just today.
Add documentation to README.md for the MSVC build
https://api.github.com/repos/WebAssembly/wabt/issues/496/comments
5
2017-06-13T01:14:57Z
2017-06-16T00:37:52Z
https://github.com/WebAssembly/wabt/issues/496
235,409,010
496
[ "WebAssembly", "wabt" ]
Hi, I have built wabt successfully using the command `make gcc-release`, but there seems no installation support for it. make install seems to assume I have clang installed. Is there a way to run the make install target when using the gcc target?
Install gcc build
https://api.github.com/repos/WebAssembly/wabt/issues/495/comments
2
2017-06-12T22:04:47Z
2017-06-17T00:32:19Z
https://github.com/WebAssembly/wabt/issues/495
235,379,424
495
[ "WebAssembly", "wabt" ]
I was following https://developer.mozilla.org/en-US/docs/WebAssembly/Understanding_the_text_format which suggests using the following syntax for an imported function with two i32 params: ``` (import "console" "log" (func $log (param i32) (param i32))) ``` But I get the error ``` test.wast:3:62: syntax error, unex...
import accepts (param i32 i32) but not (param i32) (param i32)
https://api.github.com/repos/WebAssembly/wabt/issues/493/comments
5
2017-06-12T02:41:14Z
2017-06-12T23:03:39Z
https://github.com/WebAssembly/wabt/issues/493
235,112,560
493
[ "WebAssembly", "wabt" ]
We should clarify what subset of input modules are acceptable and that the goal of linking is. In the README and perhaps in the --help too.
Clarify goals and purpose of wasm-link
https://api.github.com/repos/WebAssembly/wabt/issues/489/comments
1
2017-06-09T17:09:22Z
2017-12-19T18:23:11Z
https://github.com/WebAssembly/wabt/issues/489
234,887,455
489
[ "WebAssembly", "wabt" ]
wast2wasm (master) fails on the `forward.wast` from the testsuite (master): wast2wasm --spec forward.wast ``` wasm2wast stdout: wasm2wast stderr: ./testsuite/forward.wast:3:10: syntax error, unexpected RESULT (if (result i32) (i32.eq (get_local $n) (i32.const 0)) ``` Probably this is a version mismatch i...
Forward.wast
https://api.github.com/repos/WebAssembly/wabt/issues/478/comments
1
2017-06-05T13:58:30Z
2017-06-06T08:57:39Z
https://github.com/WebAssembly/wabt/issues/478
233,596,428
478
[ "WebAssembly", "wabt" ]
Hi, just wanted to clarify about this line in i32.wast of the testsuite: https://github.com/WebAssembly/testsuite/blob/c4ec0044b99feb322fc63708907d0be0a3088ed3/i32.wast#L173 ` (assert_return (invoke "shl" (i32.const 1) (i32.const 32)) (i32.const 1)) ` so it is asserting that 1 << 32 = 1 how is that true a...
Shift left in test suite
https://api.github.com/repos/WebAssembly/wabt/issues/477/comments
2
2017-06-05T11:50:25Z
2017-06-05T14:39:16Z
https://github.com/WebAssembly/wabt/issues/477
233,565,309
477
[ "WebAssembly", "wabt" ]
``` ... block i32 i32 i32.const 1 i32.const 2 end ... ``` `wast2wasm` accepts this, but it is caught by the browser when compiling the .wasm file. Chrome produced the following error message: ``` Compiling WASM function #1: failed:: invalid block arity > 1 @+2 ``` It would be ni...
wast2wasm: more than one result type accepted by 'block' and 'if'
https://api.github.com/repos/WebAssembly/wabt/issues/473/comments
1
2017-06-03T17:05:26Z
2017-06-07T17:47:45Z
https://github.com/WebAssembly/wabt/issues/473
233,382,079
473
[ "WebAssembly", "wabt" ]
it would be nice to expose a few more features to libwabt.js. most useful will would probably be - wasm2wast - wast-desugar
Add functionality to the JS build
https://api.github.com/repos/WebAssembly/wabt/issues/470/comments
2
2017-06-02T18:42:19Z
2017-09-04T20:06:18Z
https://github.com/WebAssembly/wabt/issues/470
233,266,602
470
[ "WebAssembly", "wabt" ]
Starting from this test, taken from br_if.wast in the spec testsuite: ``` (assert_invalid (module (func $unbound-label (br_if 1 (i32.const 1)))) "unknown label" ) ``` Running `wast2wasm --spec` to extract the module to this (hexdump -C): ``` 00000000 00 61 73 6d 01 00 00 00 01 04 01 60 00 00 03 02 |.asm...
assertion failure in wasm2wast in invalid module
https://api.github.com/repos/WebAssembly/wabt/issues/468/comments
0
2017-06-02T17:15:08Z
2017-06-02T21:20:33Z
https://github.com/WebAssembly/wabt/issues/468
233,246,242
468
[ "WebAssembly", "wabt" ]
Using wast2wasm installed from homebrew produces wasm binaries that don't load ("expected version 01 00 00 00, found 0d 00 00 00") in Chrome 58.
Update Homebrew Formula
https://api.github.com/repos/WebAssembly/wabt/issues/459/comments
6
2017-05-26T16:16:12Z
2017-09-04T20:05:38Z
https://github.com/WebAssembly/wabt/issues/459
231,671,951
459
[ "WebAssembly", "wabt" ]
IIRC the $ that preceeds names in the wast format is not actually part of the name and should be stripped on intput and generated on output. Right now I run wasm2wast on an llvm-generated object the wast file is invalid because the names are not preceded by $.
wasm2wast should add $ to debug names
https://api.github.com/repos/WebAssembly/wabt/issues/448/comments
1
2017-05-22T18:23:10Z
2017-05-23T21:14:50Z
https://github.com/WebAssembly/wabt/issues/448
230,478,675
448
[ "WebAssembly", "wabt" ]
In a simple linking test I've got something similar to the following linking scenario: ``` (module (import "__extern" "foo" (func $import0 (param i32) (result i32))) (import "__extern" "bar" (func $import1 (param i32) (result i32))) (func $local_func (param i32) get_local 0 call $local_func ...
Function relocations not executing with wasm-link
https://api.github.com/repos/WebAssembly/wabt/issues/447/comments
14
2017-05-22T12:55:30Z
2017-05-31T20:42:17Z
https://github.com/WebAssembly/wabt/issues/447
230,386,719
447
[ "WebAssembly", "wabt" ]
Given a cpp file ```c_cpp #include <stdint.h> uint64_t fct1() { return 1llu << 63; } uint64_t fct2() { return (1llu << 63) + 255; } ``` the .s generated by clang contains the correct value ``` fct1: i64.const $push0=, -9223372036854775808 fct2: i64.const $push0=, -9223372036854775553 ``` the .wast is o...
i64.const too big are not printed correctly by wasmdump
https://api.github.com/repos/WebAssembly/wabt/issues/445/comments
1
2017-05-22T01:00:26Z
2017-05-22T23:02:59Z
https://github.com/WebAssembly/wabt/issues/445
230,261,928
445
[ "WebAssembly", "wabt" ]
When linking two WASM binaries with exported memories, the operation fails with message `unsupport export type: 2`. s2wasm exports the memory by default, so this would be a useful feature to have to be able to link these files. An adjustment like https://github.com/WebAssembly/wabt/compare/master...guybedford:mem...
Supporting exported memory for wasm-link
https://api.github.com/repos/WebAssembly/wabt/issues/439/comments
14
2017-05-18T14:05:10Z
2018-03-16T22:10:24Z
https://github.com/WebAssembly/wabt/issues/439
229,683,543
439
[ "WebAssembly", "wabt" ]
@kanaka mentions [here](https://github.com/WebAssembly/spec/pull/471#issuecomment-301565835) that having some of the sugar makes for easier debugging. It shouldn't be too much work to add options to the wat-writer to support this: - [ ] ~~inline function types for imported functions~~ (not valid in text format) - [...
Add options to wat-writer
https://api.github.com/repos/WebAssembly/wabt/issues/436/comments
4
2017-05-15T19:53:40Z
2018-01-09T01:02:31Z
https://github.com/WebAssembly/wabt/issues/436
228,825,792
436
[ "WebAssembly", "wabt" ]
I am javascript programmers. wast text code can be easier? similar to what I found in the early wast code. see: https://github.com/ncbray/wassembler/blob/master/demos/simple.wasm
wast text code can be easier?
https://api.github.com/repos/WebAssembly/wabt/issues/435/comments
2
2017-05-15T11:01:41Z
2017-09-04T20:07:26Z
https://github.com/WebAssembly/wabt/issues/435
228,678,875
435
[ "WebAssembly", "wabt" ]
In this [trivial test](https://github.com/winksaville/test-clang-and-wasm-merge/tree/use-wabt.myfork-wasm-link) I try compile and link two trivial C subroutines separately compiled using clang. I followed these instructions to build the [llvm trunk with wasm support](https://gist.github.com/yurydelendik/4eeff8248aeb14c...
Why is WABT_LINK_MODULE_NAME is hardwired to "__extern"?
https://api.github.com/repos/WebAssembly/wabt/issues/434/comments
12
2017-05-13T22:34:42Z
2017-05-18T22:37:00Z
https://github.com/WebAssembly/wabt/issues/434
228,504,752
434
[ "WebAssembly", "wabt" ]
I think the stdout/stderr of the test programs are stripped before comparison so changes that effect leading/trailing white space don't cause tests to fail.
test running ignores changes to trailing/leading whitespce in output
https://api.github.com/repos/WebAssembly/wabt/issues/424/comments
0
2017-05-10T19:52:15Z
2017-05-10T19:52:15Z
https://github.com/WebAssembly/wabt/issues/424
227,791,505
424
[ "WebAssembly", "wabt" ]
Scanning dependencies of target libwabt [ 1%] Building CXX object CMakeFiles/libwabt.dir/src/opcode.cc.o In file included from /Users/liangzeng/Documents/wabt/src/opcode.cc:17: In file included from /Users/liangzeng/Documents/wabt/src/opcode.h:20: /Users/liangzeng/Documents/wabt/src/common.h:21:10: fatal error: 's...
fatal error: 'stdarg.h' file not found
https://api.github.com/repos/WebAssembly/wabt/issues/419/comments
3
2017-05-08T11:58:17Z
2018-08-28T21:38:04Z
https://github.com/WebAssembly/wabt/issues/419
227,023,476
419
[ "WebAssembly", "wabt" ]
Hello, After installing `wabt` through Homebrew, I noticed none of the executables had a corresponding manpage. If assistance is needed, I'd be happy to write them for you. =) I thought I'd ask first instead of submit a PR up-front, as not all maintainers are up to maintaining manpages in addition to Markdown-bas...
Manual pages
https://api.github.com/repos/WebAssembly/wabt/issues/417/comments
3
2017-05-06T05:16:54Z
2018-08-17T21:45:53Z
https://github.com/WebAssembly/wabt/issues/417
226,740,103
417
[ "WebAssembly", "wabt" ]
Right now wabt doesn't contain tests for these types of relocations. We should have some basic support event if the wast format can't represent them we would use gen-wasm to build some examples for use with the wasm-link and wasmdump.
Add support R_WEBASSEMBLY_GLOBAL_ADDR_* relocation types
https://api.github.com/repos/WebAssembly/wabt/issues/408/comments
2
2017-04-26T00:11:09Z
2018-03-16T22:12:16Z
https://github.com/WebAssembly/wabt/issues/408
224,307,399
408
[ "WebAssembly", "wabt" ]
The following wast: ``` (module (table 0 anyfunc) (memory $0 17) (func $foo (param $0 i32) (result i32) (loop $label$1 i32 (block $label$2 (br_table $label$1 $label$2 $label$2 (get_local $0) ) (return (i32.const 0) ) ) (i32.const 1) ) ) ) ``` fails when ran...
br_table validation failure
https://api.github.com/repos/WebAssembly/wabt/issues/389/comments
2
2017-04-04T20:04:55Z
2017-04-05T00:00:38Z
https://github.com/WebAssembly/wabt/issues/389
219,366,827
389
[ "WebAssembly", "wabt" ]
I'm converting wast on the fly from the web interface with wast2wasm. And currently I should to make redundant disk i/o. I think stdio should be supported by wabt utils.
Stdin/out support
https://api.github.com/repos/WebAssembly/wabt/issues/386/comments
9
2017-04-02T22:57:07Z
2022-05-19T01:26:29Z
https://github.com/WebAssembly/wabt/issues/386
218,800,525
386
[ "WebAssembly", "wabt" ]
We discussed this a bit in https://github.com/WebAssembly/wabt/pull/375. It seems likely that we'll want to have the ability to bail out on known custom sections that are invalid, but also be able to ignore invalid custom sections too. It would be good to get specific use cases for this.
Handling errors in custom sections
https://api.github.com/repos/WebAssembly/wabt/issues/378/comments
4
2017-03-30T00:12:48Z
2018-05-07T20:56:55Z
https://github.com/WebAssembly/wabt/issues/378
218,045,711
378
[ "WebAssembly", "wabt" ]
I was wondering how do you generate the libwabt.js in the demo. I am trying to compile it in emscripten, but I haven't seen anything specific in this repo in order to regenerate it. Right now I am hitting an issue with constexpr in emscripten.
Demo generation
https://api.github.com/repos/WebAssembly/wabt/issues/371/comments
4
2017-03-28T20:24:27Z
2017-04-26T17:27:02Z
https://github.com/WebAssembly/wabt/issues/371
217,681,598
371
[ "WebAssembly", "wabt" ]
This refers to https://github.com/WebAssembly/spec/pull/414 which was merged a few days ago. 2 new types of asserts were added `assert_return_canonical_nan` & `assert_return_arithmetic_nan` replacing `assert_return_nan`. In order to support the current spec tests, these asserts needs to be supported in wast2wasm ...
.wast assert_return_canonical_nan & assert_return_arithmetic_nan
https://api.github.com/repos/WebAssembly/wabt/issues/370/comments
2
2017-03-25T21:40:33Z
2017-03-28T18:24:43Z
https://github.com/WebAssembly/wabt/issues/370
217,006,716
370
[ "WebAssembly", "wabt" ]
The code on the right side of the demo page displays `0d00 0000` at position `0000004`. This should be `0100 0000` right? In the [online demo](https://cdn.rawgit.com/WebAssembly/wabt/e528a622caa77702209bf0c3654ca78456c41a52/demo/index.html) it seems to work but in my local build (simple `make` on Debian) I got an exce...
WASM code on demo page uses WASM_BINARY_VERSION `0d00 0000` instead of `0100 0000`
https://api.github.com/repos/WebAssembly/wabt/issues/369/comments
2
2017-03-25T07:50:29Z
2017-04-26T05:25:33Z
https://github.com/WebAssembly/wabt/issues/369
216,957,994
369
[ "WebAssembly", "wabt" ]
I am try to write a Java to WebAssembly compiler [JWebAssembly](https://github.com/i-net-software/JWebAssembly). I want run tests on my compiled output if it produce the right result on execution. I think I can do this with wasm-interp. How can I run wasm-interp on Travis? Are there any repository like Maven where i...
How to run tests with Travis?
https://api.github.com/repos/WebAssembly/wabt/issues/365/comments
6
2017-03-22T07:51:57Z
2017-04-04T20:02:50Z
https://github.com/WebAssembly/wabt/issues/365
215,979,887
365
[ "WebAssembly", "wabt" ]
See #361.
Add regression test for lexing bug (from #361)
https://api.github.com/repos/WebAssembly/wabt/issues/363/comments
1
2017-03-21T17:10:24Z
2017-10-10T19:17:35Z
https://github.com/WebAssembly/wabt/issues/363
215,813,060
363
[ "WebAssembly", "wabt" ]
In light of [design/#1012](https://github.com/WebAssembly/design/pull/1012) and updates to TextFormat.md.
rename wast2wasm to wat2wasm?
https://api.github.com/repos/WebAssembly/wabt/issues/354/comments
2
2017-03-14T22:35:30Z
2017-09-13T16:38:00Z
https://github.com/WebAssembly/wabt/issues/354
214,227,229
354
[ "WebAssembly", "wabt" ]
I assume my system must not have one of these? ``` In file included from /Users/Jeremiah/Documents/wabt/third_party/gtest/googletest/src/gtest-all.cc:39: /Users/Jeremiah/Documents/wabt/third_party/gtest/googletest/include/gtest/gtest.h:54:10: fatal error: 'limits' file not found #include <limits> ...
Build errors on macOS 10.10.5?
https://api.github.com/repos/WebAssembly/wabt/issues/339/comments
12
2017-03-07T16:09:10Z
2017-03-09T19:36:48Z
https://github.com/WebAssembly/wabt/issues/339
212,478,996
339
[ "WebAssembly", "wabt" ]
We should support the new extensible "name" section format, as specified in https://github.com/WebAssembly/design/commit/cd2af4d8149b23be87cc9eabbc4a97c7029178ad.
new name section support
https://api.github.com/repos/WebAssembly/wabt/issues/334/comments
4
2017-03-05T13:58:00Z
2017-05-10T19:52:22Z
https://github.com/WebAssembly/wabt/issues/334
211,954,320
334
[ "WebAssembly", "wabt" ]
After install LLVM+clang, cmake and binaryen, I tried this ``` $ git clone --recursive https://github.com/WebAssembly/wabt $ cd wabt $ make ``` then, command said this error ``` /Library/Developer/CommandLineTools/usr/bin/make --no-print-directory -C out/clang/Debug/ all [ 2%] Building CXX object CMakeF...
'vector' file not found #include <vector>
https://api.github.com/repos/WebAssembly/wabt/issues/333/comments
9
2017-03-05T04:53:18Z
2017-03-07T16:50:54Z
https://github.com/WebAssembly/wabt/issues/333
211,930,276
333
[ "WebAssembly", "wabt" ]
I've compiled a C++ function to Wasm by means of (latest emcc and binaryen) `emcc fac.cpp -o file.js -s 'BINARYEN=".../binaryen/bin/asm2wasm"' -s WASM=1 -O1` this works fine, however when trying to generate the AST with wasm2wast i get the following error: `error: @0x00000004: bad magic value` It seems that was...
error: @0x00000004: bad magic value
https://api.github.com/repos/WebAssembly/wabt/issues/328/comments
2
2017-02-28T13:32:36Z
2017-03-01T14:21:21Z
https://github.com/WebAssembly/wabt/issues/328
210,787,649
328
[ "WebAssembly", "wabt" ]
We build, but don't run any tests.
Run tests on Appveyor
https://api.github.com/repos/WebAssembly/wabt/issues/326/comments
1
2017-02-28T03:53:17Z
2017-04-13T17:59:08Z
https://github.com/WebAssembly/wabt/issues/326
210,679,957
326
[ "WebAssembly", "wabt" ]
Since I switched it to being an optional builder, it broke, obviously. :-) See https://travis-ci.org/WebAssembly/wabt/jobs/205171250 Looks like it's missing flake8.
Fix OS X build
https://api.github.com/repos/WebAssembly/wabt/issues/325/comments
0
2017-02-28T01:20:28Z
2017-03-06T07:43:48Z
https://github.com/WebAssembly/wabt/issues/325
210,658,669
325
[ "WebAssembly", "wabt" ]
The MSYS2 Mingw64 build fails here. Looks like it doesn't like `PRIu64` ``` C:/projects/wabt/src/validator.cc: In function 'void check_limits(Context*, const WabtLocation*, const WabtLimits*, uint64_t, const char*)': C:/projects/wabt/src/validator.cc:627:52: error: unknown conversion type character 'l' in format [...
MSYS2 6.3.0 build fails
https://api.github.com/repos/WebAssembly/wabt/issues/324/comments
8
2017-02-28T00:40:17Z
2017-03-10T02:15:53Z
https://github.com/WebAssembly/wabt/issues/324
210,652,162
324