Skip to content
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

gopher-lua@v1.1.1/vm.go:29 panic: runtime error: index out of range [32] with length 32 #505

Open
jasonwangh opened this issue Sep 16, 2024 · 0 comments

Comments

@jasonwangh
Copy link

  1. gopher-lua v1.1.1
  2. go version go1.23.1 linux/amd64
  3. ubuntu2404 x86_64
  4. CallByParam is called frequently in the golang layer to create a large number of tables. When the CallByParam execution method is called again when the process ends, a panic occurs.
  5. Don't panic
  6. panic: runtime error: index out of range [32] with length 32

goroutine 1 [running]:
github.com/yuin/gopher-lua.mainLoop(0xc0001f4540, 0xc0005120a8)
/home/ubuntu/work/gopath/pkg/mod/github.com/yuin/gopher-lua@v1.1.1/vm.go:29 +0x105
github.com/yuin/gopher-lua.(*LState).callR(0xc0001f4540, 0x0, 0x0, 0xc00ca77908?)
/home/ubuntu/work/gopath/pkg/mod/github.com/yuin/gopher-lua@v1.1.1/state.go:1269 +0x1bc
github.com/yuin/gopher-lua.(*LState).Call(...)
/home/ubuntu/work/gopath/pkg/mod/github.com/yuin/gopher-lua@v1.1.1/state.go:2026
github.com/yuin/gopher-lua.(*LState).CallByParam(0xc0001f4540, {{0x1375f88, 0xc000780040}, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x9f1b5c?})
/home/ubuntu/work/gopath/pkg/mod/github.com/yuin/gopher-lua@v1.1.1/state.go:2112 +0xd9
lightserver/lightbase/lua.(*LuaState).callLuaFunc(0xc0004d6b40, 0xc00ca77b30)
/home/ubuntu/work/gopath/src/lightserver/lightbase/lua/state.go:297 +0xcc
lightserver/lightbase/lua.(*LuaState).CallLuaFuncByName(0xc0004d6b40, {0x0, 0x0}, {0x120e73e, 0x10}, {0x12056a4, 0x4}, {0x0, 0x0, 0x0})
/home/ubuntu/work/gopath/src/lightserver/lightbase/lua/state.go:375 +0x125
lightserver/lightbase/lua.(*LuaState).HandleServerStop(0xc0004d6b40)
/home/ubuntu/work/gopath/src/lightserver/lightbase/lua/state.go:227 +0x47
main.main()
/home/ubuntu/work/gopath/src/lightserver/appserver/cmd/appserver.go:167 +0x1376

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant