-
Notifications
You must be signed in to change notification settings - Fork 69
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
tcp_metadata_exchange proxy test fails on big-endian platforms #294
Comments
knm3000
added a commit
to knm3000/proxy-wasm-cpp-host
that referenced
this issue
Aug 17, 2022
Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
knm3000
added a commit
to knm3000/proxy-wasm-cpp-host
that referenced
this issue
Sep 9, 2022
additional changes: - moved the call to isWasmByteOrder() into htowasm/wasmtoh macros - added surrounding brackets to htowasm/wasmtoh - removed debug leftover Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
knm3000
added a commit
to knm3000/proxy-wasm-cpp-host
that referenced
this issue
Sep 9, 2022
additional changes: - moved the call to isWasmByteOrder() into htowasm/wasmtoh macros - added surrounding brackets to htowasm/wasmtoh - removed debug leftover Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
knm3000
added a commit
to knm3000/proxy-wasm-cpp-host
that referenced
this issue
Sep 14, 2022
more changes: - renamed is_wasm_byte_order to vm_uses_wasm_byte_order - renamed isWasmByteOrder() to usesWasmByteOrder() Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
knm3000
added a commit
to knm3000/proxy-wasm-cpp-host
that referenced
this issue
Sep 28, 2022
- use buf and buf_len variables for readability - added back word.h include - hardcoded usesWasmByteOrder() to true Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
knm3000
added a commit
to knm3000/proxy-wasm-cpp-host
that referenced
this issue
Sep 30, 2022
- moved pairs test into a new file test/pairs_util_test.cc - run pairs test on all platforms - made contextOrEffectiveContext() null check a bit more readable Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
knm3000
added a commit
to knm3000/proxy-wasm-cpp-host
that referenced
this issue
Sep 30, 2022
- moved pairs test into a new file test/pairs_util_test.cc - run pairs test on all platforms - made contextOrEffectiveContext() null check a bit more readable Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
knm3000
added a commit
to knm3000/proxy-wasm-cpp-host
that referenced
this issue
Oct 1, 2022
more changes: - removed unnecessary #include from test/null_vm_test.cc Fixes proxy-wasm#294 Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
PiotrSikora
pushed a commit
that referenced
this issue
Oct 2, 2022
Fixes #294. Signed-off-by: Konstantin Maksimov <konstantin.maksimov@ibm.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After we had introduced big-endian support in proxy-wasm #198 and fixed
#197 the following new error started happening (regression of #198):
tcp_metadata_exchange test from proxy repo fails on big-endian platform (envoy binary crash) https://github.com/istio/proxy/blob/master/test/envoye2e/tcp_metadata_exchange/tcp_metadata_exchange_test.go
The root cause is that tcp_metadata_exchange test uses null-vm, and in #198 we introduced byte swapping on big-endian for all wasm runtimes (including null-vm). Since null-vm is not using wasm binary, we should not reverse bytes for null-vm (for other wasm runtimes we still need to reverse bytes on big-endian).
Opened #282 to fix it.
The text was updated successfully, but these errors were encountered: