Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression test for #2721 #2725

Merged
merged 3 commits into from
Dec 14, 2021
Merged

Regression test for #2721 #2725

merged 3 commits into from
Dec 14, 2021

Conversation

nagisa
Copy link
Contributor

@nagisa nagisa commented Dec 14, 2021

The wasm snippet in the test corresponds to roughly:

let name = "bananapeach";
banana(a, b, c, name.len() as _, name.as_ptr() as _, f, g, h);

however sometime between 2.0 and 2.1 the name pointer is no longer being
passed through as an argument. Instead a 0 gets passed in.

To make things weirder, if name.as_ptr() is passed through multiple
times, the second time the pointer will get passed correctly.

The fix for this issue is in #2723.

The wasm snippet in the test corresponds to roughly:

```rust
let name = "bananapeach";
banana(a, b, c, name.len() as _, name.as_ptr() as _, f, g, h);
```

however sometime between 2.0 and 2.1 the name pointer is no longer being
passed through as an argument. Instead a 0 gets passed in.

To make things weirder, if `name.as_ptr()` is passed through multiple
times, the second time the pointer will get passed correctly.
`/usr/bin/bash` is not really universal way to invoke the bash shell.
`/usr/bin/env bash` is more appropriate.
@syrusakbary
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 14, 2021

@bors bors bot merged commit c2b0250 into wasmerio:master Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants