You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "spacewander (via GitHub)" <gi...@apache.org> on 2023/03/07 02:04:54 UTC

[GitHub] [apisix] spacewander commented on issue #9007: bug: apisix core dump when receiving grpc client stream

spacewander commented on issue #9007:
URL: https://github.com/apache/apisix/issues/9007#issuecomment-1457383072

   Look like it crashed in https://github.com/grpc/grpc-go/blob/682ed1a71602fa94a9b9c56d2b2b2a716bccd036/internal/status/status.go#L155, which is called in https://github.com/grpc/grpc-go/blob/682ed1a71602fa94a9b9c56d2b2b2a716bccd036/status/status.go#L94
   
   ```
   func FromError(err error) (s *Status, ok bool) {
   	if err == nil {
   		return nil, true
   	}
   	if se, ok := err.(interface {
   		GRPCStatus() *Status
   	}); ok {
   		return se.GRPCStatus(), true
   	}
   	return New(codes.Unknown, err.Error()), false
   }
   ```
   It's quite strange as this function has checked if `err` is nil before calling it.
   
   Can it be reproduced by running another client writing in Go?


-- 
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