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
wazero takes care not to leak modules when `InstantiateModule` returns
an error.
This means that sqlc will call `result.Close` a second time if a non nil
module was returned, which causes a segfault.
Version
1.27.0
What happened?
sqlc throws a SIGSEGV when a WASM plugin fails to load.
That's caused by https://github.com/sqlc-dev/sqlc/blob/main/internal/ext/wasm/wasm.go#L226 where sqlc calls
result.Close()
on a wazero module, but wazero already closes modules on error.Relevant log output
Database schema
SQL queries
Configuration
NA
Playground URL
No response
What operating system are you using?
No response
What database engines are you using?
No response
What type of code are you generating?
No response
The text was updated successfully, but these errors were encountered: