You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "ranxuxin001 (via GitHub)" <gi...@apache.org> on 2023/05/23 08:50:15 UTC

[GitHub] [apisix] ranxuxin001 opened a new issue, #9528: bug: grpc response leads to core dump

ranxuxin001 opened a new issue, #9528:
URL: https://github.com/apache/apisix/issues/9528

   ### Current Behavior
   
   apisix 3.3 runs with etcd v3.5. It generates core dump at night. It seems connection to etcd has problem. Then grpc library generates error response structure. It uses the field which is nil in this structure at that time. 
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   panic: runtime error: invalid memory address or nil pointer dereference
   [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7f0bc8650e60]
   
   goroutine 4038275 [running]:
   google.golang.org/grpc/internal/status.(*Error).GRPCStatus(0x7f0bc86de826?)
           /root/go/pkg/mod/google.golang.org/grpc@v1.47.0/internal/status/status.go:155
   google.golang.org/grpc/status.FromError({0x7f0bc88aa660, 0x0})
           /root/go/pkg/mod/google.golang.org/grpc@v1.47.0/status/status.go:94 +0xea
   google.golang.org/grpc.toRPCErr({0x7f0bc88aa660, 0x0})
           /root/go/pkg/mod/google.golang.org/grpc@v1.47.0/rpc_util.go:848 +0x288
   google.golang.org/grpc.(*csAttempt).recvMsg(0xc005bb4210, {0x7f0bc8895460?, 0xc0050ba810}, 0x80?)
           /root/go/pkg/mod/google.golang.org/grpc@v1.47.0/stream.go:1002 +0x3ba
   google.golang.org/grpc.(*clientStream).RecvMsg.func1(0xc005d19eb8?)
           /root/go/pkg/mod/google.golang.org/grpc@v1.47.0/stream.go:845 +0x25
   google.golang.org/grpc.(*clientStream).withRetry(0xc005b850e0, 0xc005d19f20, 0xc005d19ef0)
           /root/go/pkg/mod/google.golang.org/grpc@v1.47.0/stream.go:705 +0x2f1
   google.golang.org/grpc.(*clientStream).RecvMsg(0xc005b850e0, {0x7f0bc8895460?, 0xc0050ba810?})
           /root/go/pkg/mod/google.golang.org/grpc@v1.47.0/stream.go:844 +0x11f
   github.com/api7/grpc-client-nginx-module/conn.(*Stream).Recv(0xc0000989c0?)
           /tmp/tmp.cLFc1OlJDR/grpc-client-nginx-module-v0.4.2/grpc-engine/conn/grpc.go:192 +0x7a
   main.grpc_engine_stream_recv.func1()
           /tmp/tmp.cLFc1OlJDR/grpc-client-nginx-module-v0.4.2/grpc-engine/main.go:233 +0x26
   created by main.grpc_engine_stream_recv
           /tmp/tmp.cLFc1OlJDR/grpc-client-nginx-module-v0.4.2/grpc-engine/main.go:232 +0x91
   2023/05/13 21:16:50 [notice] 21446#21446: signal 17 (SIGCHLD) received from 21447
   2023/05/13 21:16:50 [alert] 21446#21446: worker process 21447 exited on signal 6
   2023/05/13 21:16:50 [notice] 21446#21446: start worker process 9113
   2023/05/13 21:16:50 [notice] 21446#21446: signal 29 (SIGIO) received
   
   ### Steps to Reproduce
   
   run apisix in centos 7
   
   ### Environment
   
   - APISIX version (run `apisix version`):   apisix 3.3
   - Operating system (run `uname -a`):   centos 7
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):   
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] Revolyssup commented on issue #9528: bug: grpc response leads to core dump

Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #9528:
URL: https://github.com/apache/apisix/issues/9528#issuecomment-1683547214

   To be marked completed after APISIX base release.
   // https://github.com/api7/apisix-build-tools/pull/330


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] Sn0rt commented on issue #9528: bug: grpc response leads to core dump

Posted by "Sn0rt (via GitHub)" <gi...@apache.org>.
Sn0rt commented on issue #9528:
URL: https://github.com/apache/apisix/issues/9528#issuecomment-1667136062

   we need release a APISIX-base. FYI: @AlinsRan 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] Revolyssup closed issue #9528: bug: grpc response leads to core dump

Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup closed issue #9528: bug:  grpc response leads to core dump
URL: https://github.com/apache/apisix/issues/9528


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] Revolyssup commented on issue #9528: bug: grpc response leads to core dump

Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #9528:
URL: https://github.com/apache/apisix/issues/9528#issuecomment-1645073895

   This issue is in the go-grpc library and is fixed in version 1.55.1. https://github.com/api7/grpc-client-nginx-module will need a version upgrade


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] Revolyssup commented on issue #9528: bug: grpc response leads to core dump

Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #9528:
URL: https://github.com/apache/apisix/issues/9528#issuecomment-1663246531

   Fixed here https://github.com/api7/grpc-client-nginx-module/issues/69. This will be fixed by next version of grpc-client-nginx-module


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org