Skip to content

Default spin new go project fails to run #886

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

Closed
pannous opened this issue Nov 8, 2022 · 2 comments
Closed

Default spin new go project fails to run #886

pannous opened this issue Nov 8, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@pannous
Copy link

pannous commented Nov 8, 2022

trying to run an unmodified spin new go project

on MacOS 13.0

-rw-r--r--  1 me  staff     277 Nov  8 10:36 main.go
-rw-r--r--  1 me  staff     345 Nov  8 10:36 spin.toml
-rw-r--r--  1 me  staff     160 Nov  8 10:38 go.mod
-rw-r--r--  1 me  staff     406 Nov  8 10:38 go.sum
-rwxr-xr-x  1 me  staff  217447 Nov  8 10:38 main.wasm
> spin build
Executing the build command for component hi: tinygo build -wasm-abi=generic -target=wasi -gc=leaking -no-debug -o main.wasm main.go
Successfully ran the build command for the Spin components.

> spin up
Serving http://127.0.0.1:3000
Available Routes:
  hi: http://127.0.0.1:3000 (wildcard)

2022-11-08T09:39:43.558692Z ERROR spin_http: Error processing request: wasm trap: wasm `unreachable` instruction executed
wasm backtrace:
    0: 0x3aa4 - <unknown>!runtime.runtimePanic

upon opening http://127.0.0.1:3000

@pannous pannous changed the title Default spin up go project fails to run Default spin new go project fails to run Nov 8, 2022
@mikkelhegn
Copy link
Contributor

Thx @pannous - this seems to be a duplicate issue of this: #820 (comment)

There was a change in TinyGo 0.26.0 which causes this. Also adding a link to the docs calling this out for future reference: https://developer.fermyon.com/spin/go-components#versions

Can you please verify the TinyGo version you're using?

@mikkelhegn mikkelhegn added the bug Something isn't working label Nov 8, 2022
@itowlson itowlson moved this to 🆕 Triage Needed in Spin Triage Nov 13, 2022
@itowlson itowlson moved this from 🆕 Triage Needed to 📋 Investigating in Spin Triage Nov 13, 2022
@vdice
Copy link
Contributor

vdice commented Feb 15, 2023

As mentioned above, this appears to be a duplicate of #820 (assuming use of TinyGo 0.26.0). Closing.

@vdice vdice closed this as completed Feb 15, 2023
@github-project-automation github-project-automation bot moved this from 📋 Investigating / Open for Comment to ✅ Done in Spin Triage Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants