We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
uname -a
给某个路由定义好go-pre-plugin一段时间后(可能是因为长时间没有请求),go plugin会出错导致接口无法访问。异常信息: 2021/10/08 03:03:14 [warn] 56#56: *207 [lua] init.lua:681: 2021-10-08T03:03:14.440Z ERROR server/server.go:69 panic recovered: runtime error: invalid memory address or nil pointer dereference 2021/10/8 上午11:03:14 github.com/apache/apisix-go-plugin-runner/internal/server.recoverPanic 2021/10/8 上午11:03:14 /var/lib/jenkins/workspace/build-dev-apple-fuller-apisix-go-plugin-runner/apisix-go-plugin-runner/internal/server/server.go:69 2021/10/8 上午11:03:14 runtime.gopanic 2021/10/8 上午11:03:14 /root/go/src/runtime/panic.go:1038 2021/10/8 上午11:03:14 runtime.panicmem 2021/10/8 上午11:03:14 /root/go/src/runtime/panic.go:221 2021/10/8 上午11:03:14 runtime.sigpanic 2021/10/8 上午11:03:14 /root/go/src/runtime/signal_unix.go:735 2021/10/8 上午11:03:14 github.com/google/flatbuffers/go.(*Builder).Reset 2021/10/8 上午11:03:14 /root/go-path/pkg/mod/github.com/google/flatbuffers@v2.0.0+incompatible/go/builder.go:45 2021/10/8 上午11:03:14 github.com/apache/apisix-go-plugin-runner/internal/util.PutBuilder 2021/10/8 上午11:03:14 /var/lib/jenkins/workspace/build-dev-apple-fuller-apisix-go-plugin-runner/apisix-go-plugin-runner/internal/util/pool.go:37 2021/10/8 上午11:03:14 github.com/apache/apisix-go-plugin-runner/internal/server.handleConn 2021/10/8 上午11:03:14 /var/lib/jenkins/workspace/build-dev-apple-fuller-apisix-go-plugin-runner/apisix-go-plugin-runner/internal/server/server.go:122 2021/10/8 上午11:03:14 , context: ngx.timer
The text was updated successfully, but these errors were encountered:
我也遇到了相同的问题
Sorry, something went wrong.
fix: avoid reusing nil builder
5f7f879
Fix apache#41
Successfully merging a pull request may close this issue.
Issue description
Environment
uname -a
): Linux apisix-server-6c484454b4-gvgbt 5.14.1-1.el7.elrepo.x86_64 ci: enable #1 SMP Wed Sep 1 18:34:12 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux(docker部署)给某个路由定义好go-pre-plugin一段时间后(可能是因为长时间没有请求),go plugin会出错导致接口无法访问。异常信息:
2021/10/08 03:03:14 [warn] 56#56: *207 [lua] init.lua:681: 2021-10-08T03:03:14.440Z ERROR server/server.go:69 panic recovered: runtime error: invalid memory address or nil pointer dereference
2021/10/8 上午11:03:14 github.com/apache/apisix-go-plugin-runner/internal/server.recoverPanic
2021/10/8 上午11:03:14 /var/lib/jenkins/workspace/build-dev-apple-fuller-apisix-go-plugin-runner/apisix-go-plugin-runner/internal/server/server.go:69
2021/10/8 上午11:03:14 runtime.gopanic
2021/10/8 上午11:03:14 /root/go/src/runtime/panic.go:1038
2021/10/8 上午11:03:14 runtime.panicmem
2021/10/8 上午11:03:14 /root/go/src/runtime/panic.go:221
2021/10/8 上午11:03:14 runtime.sigpanic
2021/10/8 上午11:03:14 /root/go/src/runtime/signal_unix.go:735
2021/10/8 上午11:03:14 github.com/google/flatbuffers/go.(*Builder).Reset
2021/10/8 上午11:03:14 /root/go-path/pkg/mod/github.com/google/flatbuffers@v2.0.0+incompatible/go/builder.go:45
2021/10/8 上午11:03:14 github.com/apache/apisix-go-plugin-runner/internal/util.PutBuilder
2021/10/8 上午11:03:14 /var/lib/jenkins/workspace/build-dev-apple-fuller-apisix-go-plugin-runner/apisix-go-plugin-runner/internal/util/pool.go:37
2021/10/8 上午11:03:14 github.com/apache/apisix-go-plugin-runner/internal/server.handleConn
2021/10/8 上午11:03:14 /var/lib/jenkins/workspace/build-dev-apple-fuller-apisix-go-plugin-runner/apisix-go-plugin-runner/internal/server/server.go:122
2021/10/8 上午11:03:14 , context: ngx.timer
The text was updated successfully, but these errors were encountered: