proxy-wasm-rust-sdk icon indicating copy to clipboard operation
proxy-wasm-rust-sdk copied to clipboard

Function: proxy_on_log failed: Uncaught RangeError: Maximum call stack size exceeded

Open LugiaChang opened this issue 1 year ago • 5 comments

I am injecting a wasm plugin for envoy in the istio 1.18 environment. During the stress test, the following error occurred. I didn't implement on_log in my wasm code, and there are no other recursive calls. I am very confused about the reason for this error.

error envoy wasm external/envoy/source/extensions/common/wasm/wasm_vm.cc:38   Function: proxy_on_log failed: Uncaught RangeError: Maximum call stack size exceeded    thread=87

When this error occurs, it seems that the thread will continuously display the "wasm_fail_stream" error, and the request will return a 503 response.

POST /infopb.InfoService/Upsert HTTP/2" 200 - wasm_fail_stream - "-" 1257 0 1167 - "-" "grpc-go/1.59.0" "698b416f-e3ee-4f8e-b579-d563d7c37b59" "infosvr-mesh:5000" "11.166.153.22:5000" outbound|5000||infosvr.perf-master.svc.cluster.local 11.166.149.157:47728 11.166.160.143:5000 11.166.149.157:51304 - main

LugiaChang avatar Mar 19 '24 04:03 LugiaChang

CC @PiotrSikora

kyessenov avatar Mar 19 '24 19:03 kyessenov

Same problem

cage1993 avatar Sep 05 '24 10:09 cage1993

you can use https://github.com/pi-pi-miao/proxy-wasm-rust-sdk solve the problem

pi-pi-miao avatar Oct 08 '24 04:10 pi-pi-miao

the panic may be It happens elsewhere

pi-pi-miao avatar Oct 08 '24 04:10 pi-pi-miao

the panic may be It happens elsewhere

It may be wasm runtime error. see https://github.com/istio/istio/issues/49972

LugiaChang avatar Oct 08 '24 04:10 LugiaChang