Commit Graph

2381 Commits

Author SHA1 Message Date
bors[bot]
48a8391f5d Merge #370
370: Fix WASI by using u32 everywhere instead of u16 r=syrusakbary a=syrusakbary

Long story short: we were seeing some undeterministic behavior when running wasmer with WASI on Linux.

It turned out we are doing some bad conversions from u16 to the inner type in the trampolines (or func type?), and this only showed up in certain systems.

This PR is a quick fix to get things running quickly, but we will proceed with a proper fix soon and revert this PR.

Note: the discovery of the bug was done by @bjfish, and this PR is just a very simple way to address it.

cc @lachlansneff 

Co-authored-by: Syrus <me@syrusakbary.com>
2019-04-20 18:56:20 +00:00
Syrus
0aa35a675b Fix WASI by using u32 everywhere instead of u16 2019-04-20 11:47:06 -07:00
bors[bot]
363b46eca7 Merge #368
368: fix write to flush buffer; fix warnings r=MarkMcCaskey a=MarkMcCaskey

resolves #363 

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-04-20 00:22:07 +00:00
Mark McCaskey
9256f6e60a update changelog 2019-04-19 16:48:30 -07:00
Mark McCaskey
8095d70957 fix write to flush buffer; fix warnings 2019-04-19 15:57:51 -07:00
bors[bot]
f7e4a09832 Merge #343
343: add preopened fd and fix/improve fs syscalls; fix wasi memory access r=MarkMcCaskey a=MarkMcCaskey

resolves #356 

Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
Co-authored-by: Mark McCaskey <markmccaskey@users.noreply.github.com>
2019-04-19 21:24:58 +00:00
Mark McCaskey
5a575cd64d
Merge branch 'master' into feature/preopen-fd-and-more 2019-04-19 14:24:30 -07:00
Syrus Akbary
b4ded07313
Merge branch 'master' into feature/preopen-fd-and-more 2019-04-19 14:14:40 -07:00
bors[bot]
f959c3f15a Merge #367
367: Add caching support to llvm backend r=lachlansneff a=lachlansneff

This changes the `CacheGen` trait a little, since it was weird.

Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
2019-04-19 21:10:14 +00:00
Lachlan Sneff
087a826222 fix tests on more time uh huh 2019-04-19 14:09:41 -07:00
Mark McCaskey
eef2bc6a21 update changelog 2019-04-19 14:07:41 -07:00
Lachlan Sneff
3b9e12b248 fix test 2019-04-19 14:02:21 -07:00
Lachlan Sneff
c3ef1f8421 Remove commented-out code 2019-04-19 14:00:03 -07:00
Lachlan Sneff
65838fe148 Update changelog 2019-04-19 13:57:05 -07:00
Lachlan Sneff
443663aa3f Add caching support to llvm backend 2019-04-19 13:54:48 -07:00
Mark McCaskey
b141d7f80e fix typo 2019-04-19 13:25:23 -07:00
Mark McCaskey
52279afbe2 add comment and reduce code in pre-open loading section 2019-04-19 13:24:41 -07:00
Mark McCaskey
5e504b77cd add support for more complex paths in path_open 2019-04-19 12:48:29 -07:00
Mark McCaskey
35f8d69d4b fix typo; thanks Kerollmops! 2019-04-19 09:26:47 -07:00
Mark McCaskey
c75f055b09 disable ZFS again; clean up simple-path's control-flow-path in path_open 2019-04-19 09:25:29 -07:00
Mark McCaskey
19e830d25a fix memory access in WasmPtr 2019-04-18 17:48:14 -07:00
Mark McCaskey
7e58c4258c Merge remote-tracking branch 'origin/master' into feature/preopen-fd-and-more 2019-04-18 15:43:02 -07:00
Syrus
b8d36ac6eb Merge branch 'master' into feature/tar-install-with-wapm 2019-04-18 13:04:20 -07:00
Syrus
ed651055f3 Fixed singlepass make release 2019-04-18 13:01:55 -07:00
bors[bot]
b146a9f82a Merge #366
366: Remove UserTrapper trait r=lachlansneff a=lachlansneff

This removes the `UserTrapper` trait and the thread_local EARLY_TRAPPER variable.

Fixes bug reported in #365.

Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
2019-04-18 17:33:37 +00:00
Lachlan Sneff
36d73d1b48 Update changelog to point to pr 2019-04-18 10:18:36 -07:00
Syrus
de8504af03 Merge branch 'master' of github.com:wasmerio/wasmer into feature/tar-install-with-wapm 2019-04-18 10:17:20 -07:00
Lachlan Sneff
016ef1c7b9 Add changelog item 2019-04-18 10:16:11 -07:00
Lachlan Sneff
6279dd8e82 Fix test again, whoops 2019-04-18 10:14:25 -07:00
Lachlan Sneff
f0e0255b3f Fix vm test 2019-04-18 10:08:17 -07:00
Lachlan Sneff
4dd64ed72e Remove UserTrapper trait 2019-04-18 10:00:15 -07:00
bors[bot]
ccad8874e9 Merge #360
360: Single-pass fixes and optimizations. r=syrusakbary a=losfair



Co-authored-by: losfair <zhy20000919@hotmail.com>
Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
2019-04-18 15:04:09 +00:00
Syrus
a3c5fca30f Merge branch 'master' into feature/tar-install-with-wapm 2019-04-17 17:45:15 -07:00
Syrus
6c158a93bf Added imports to be able to run Imagemagick 2019-04-17 17:42:21 -07:00
Lachlan Sneff
016535ce12 Merge branch 'master' into feature/singlepass-opt 2019-04-17 15:19:51 -07:00
Lachlan Sneff
61f31ae7e8 Fix lint (just two lines) 2019-04-17 15:17:16 -07:00
bors[bot]
e8d335cfd9 Merge #348
348: Internal runtime ↔️ backend abstraction refactor. r=lachlansneff a=lachlansneff

This replaces the `ProtectedCaller` and `FuncResolver` traits with a combined `RunnableModule` trait. I'd like to get this merged, since it's standalone, but there are follow-up PRs I'd like to make that will further change the abstraction

Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2019-04-17 21:48:08 +00:00
Lachlan Sneff
088263a604
Merge branch 'master' into feature/remove-call-protected 2019-04-17 14:14:36 -07:00
Lachlan Sneff
f0a20151f6 Fix returning the result from dynamic calls on the singlepass backend 2019-04-17 14:14:01 -07:00
losfair
e71da1cdf1 Some documentation on the code generator. 2019-04-18 02:28:08 +08:00
Syrus Akbary
c55952b450
Update LICENSE author 2019-04-16 12:11:00 -07:00
losfair
5f9aed0103 Merge remote-tracking branch 'origin/master' into feature/singlepass-opt 2019-04-17 02:18:00 +08:00
losfair
0da2442be1 Parse input in a single pass. 2019-04-17 02:10:36 +08:00
losfair
c47eb6eaa2 Fix corner cases. 2019-04-16 22:45:32 +08:00
bors[bot]
c8a71263db Merge #355
355: add misc changes to Cargo.tomls for publishing r=MarkMcCaskey a=MarkMcCaskey



Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-04-12 21:20:52 +00:00
Mark McCaskey
5771c904f8 add changelog entry 2019-04-12 14:16:42 -07:00
Mark McCaskey
a36ab1cd78 add misc changes to Cargo.tomls for publishing 2019-04-12 14:07:25 -07:00
Lachlan Sneff
57e24c957c
Merge branch 'master' into feature/remove-call-protected 2019-04-12 12:44:59 -07:00
bors[bot]
e9f07dc239 Merge #352
352: update crate version numbers to 0.3.0 r=MarkMcCaskey a=MarkMcCaskey



Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-04-12 19:28:26 +00:00
Mark McCaskey
5dd6b06864 update changelog 2019-04-12 12:27:51 -07:00