Skip to content

Fix segfault when failing to instantiate Wasm module. #240

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

Merged
merged 16 commits into from
Feb 8, 2022

Conversation

PiotrSikora
Copy link
Member

Signed-off-by: Piotr Sikora [email protected]

@PiotrSikora PiotrSikora marked this pull request as ready for review February 2, 2022 12:56
Copy link
Contributor

@mathetake mathetake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you want to add tests (as I see we have tests for all runtime)?

Signed-off-by: Piotr Sikora <[email protected]>
@PiotrSikora
Copy link
Member Author

@mathetake in my attempt to fix WAVM on the CI, I've added checks for all (?) failures in load(), link() and clone(), other than those in stlib allocations. We originally skipped them, since they go against Envoy's coding style, but I think it makes sense to have them now. PTAL.

Unfortunately, this didn't fix the test with WAVM on the CI. I suspect that it fails because of a failure in emplace running out of memory or something like that, but since it passes locally, and it's not the primary runtime, I'm going to skip it for now.

@PiotrSikora
Copy link
Member Author

@mathetake in my attempt to fix WAVM on the CI, I've added checks for all (?) failures in load(), link() and clone(), other than those in stlib allocations. We originally skipped them, since they go against Envoy's coding style, but I think it makes sense to have them now. PTAL.

Done. Good call, thanks!

Copy link
Contributor

@mathetake mathetake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PiotrSikora PiotrSikora merged commit 9699b32 into proxy-wasm:master Feb 8, 2022
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