-
Notifications
You must be signed in to change notification settings - Fork 849
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
wasm error: out of bounds memory access #3836
Comments
Have you found a solution yet? |
i have same issue with go1.24.0 windows/amd64 |
I have the same issue with go 1.24.0 linux/amd64 |
Hey everyone, thanks for helping track down this issue. I think this may be an upstream issue (wasilibs/go-pgquery#34). In the meantime, can you please post a bit more information about your error?
|
Confirmed this is an upstream issue, tracking here tetratelabs/wazero#2375 |
Now that it's fixed, and a new version of wazero has been released, sqlc needs to upgrade the deps for go 1.24 compat. There seems to be a problem with pg_query_go/v5 vs. pg_query_go/v6. |
Don't know if this is worth noting or not... Might still be another patch bump to wazero coming before long? |
No update yet. Works on one machine but not another |
Has anyone found a solution/workaround yet? |
It seems the fix was already merged in github.com/tetratelabs/wazero, but there were no relases yet. I was able to hotfix the issue by explicitly using the latest commit with |
The solution is temporarily downgrading to Go 1.23
A terça, 18/03/2025, 09:05, Jakub Cytrowski ***@***.***>
escreveu:
… Has anyone found a solution/workaround yet?
—
Reply to this email directly, view it on GitHub
<#3836 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFQNUYA424E66EK446Z3BDD2U7OXPAVCNFSM6AAAAABW7QIIK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZSGIYTCMZUGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
[image: Dzejk0p]*Dzejk0p* left a comment (sqlc-dev/sqlc#3836)
<#3836 (comment)>
Has anyone found a solution/workaround yet?
—
Reply to this email directly, view it on GitHub
<#3836 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFQNUYA424E66EK446Z3BDD2U7OXPAVCNFSM6AAAAABW7QIIK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZSGIYTCMZUGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I really didn't want to downgrade go, I switched to wsl on windows and ran the is it only isolated to Windows? |
Using Go 1.23 and SQLC 1.27 in WSL works for me. Alternatively, you could use a Go version manager (like gvm) to run SQLC on Go 1.27 or below, while keeping your main project on Go 1.24. |
I'm on 1.24/1.28 myself. I managed to run it successfully on WSL, Windows still throws the error, I was just suggesting that it might be a windows only issue. Thanks for the gvm suggestion, never heard of it but it sounds cool. |
I hear you , I was actually responding to Dzejk0p that WSL also works for me. In my testing I only got the issue with go 1.24* on windows with several sqlc versions, tried it on a Linux mint machine (go 1.24*) with no issues, definitely possible that the issue is windows specific. And Yeah I recently learned of it myself haha |
|
Corrected, thanks |
Version
1.28.0
What happened?
sqlc generate crashes. It did work using sqlc 1.27.0
Relevant log output
What operating system are you using?
Linux
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: