You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I opened an issue here weeks ago, but have not received a response. I hope it's okay to crosspost here, in case the problem lies with Traefik; otherwise please feel free to close and redirect me elsewhere.
This is unrelated to the memory leak problems discussed in #11116. I experienced those as well, but more recent versions of Traefik have been fine.
What did you see instead?
Certain requests cause the runtime to crash, causing downtime until I manually restart Traefik. I have not been able to detect what, if anything, the problematic requests have in common.
The plugin calls GetURI via GetString, which fails when trying to allocate memory for the returned string(...):
funcGetString(fnfunc(ptruint32, limit imports.BufLimit) (lenuint32)) (resultstring) {
size:=fn(ReadBufPtr, ReadBufLimit)
ifsize==0 {
return// If nothing was read, return an empty string.
} elseifsize<=ReadBufLimit {
returnstring(ReadBuf[:size]) // string will copy the buffer. <------- THIS FAILS!
}
...
}
Welcome!
What did you do?
I use Traefik v3 with this Traefik OIDC auth plugin. The plugin uses http-wasm-host-go with the forked traefik/http-wasm-guest-tinygo.
I opened an issue here weeks ago, but have not received a response. I hope it's okay to crosspost here, in case the problem lies with Traefik; otherwise please feel free to close and redirect me elsewhere.
This is unrelated to the memory leak problems discussed in #11116. I experienced those as well, but more recent versions of Traefik have been fine.
What did you see instead?
Certain requests cause the runtime to crash, causing downtime until I manually restart Traefik. I have not been able to detect what, if anything, the problematic requests have in common.
The plugin calls
GetURI
via GetString, which fails when trying to allocate memory for the returnedstring(...)
:Here's a stacktrace:
I suspect that
malloc.go:1267
probably refers to this line in a version from October:which would suggest that it can't get an MCache for some reason – but here I'm unfortunately out of my depth, having no experience with Go or WASM.
I would be grateful for any ideas.
What version of Traefik are you using?
3.2.1
What is your environment & configuration?
If applicable, please paste the log output in DEBUG level
No response
The text was updated successfully, but these errors were encountered: