Giter Site home page Giter Site logo

grpc-ecosystem / grpcdebug Goto Github PK

View Code? Open in Web Editor NEW
124.0 124.0 18.0 94 KB

grpcdebug is a command line interface focusing on simplifying the debugging process of gRPC applications.

License: Apache License 2.0

Go 100.00%
cli debug go golang grpc

grpcdebug's People

Contributors

dfawley avatar ejona86 avatar erikjoh avatar larry-safran avatar lepistone avatar lidizheng avatar veblush avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

grpcdebug's Issues

Crash when running channelz channels

Version: https://github.com/grpc-ecosystem/grpcdebug/releases/tag/v1.0.4

$ grpcdebug localhost:50051 channelz channels
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xb977fc]

goroutine 1 [running]:
github.com/grpc-ecosystem/grpcdebug/cmd.channelzChannelsCommandRunWithError(0x1fd33c0?, {0x20177a0?, 0x0?, 0x0?})
        /home/veblush/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/cmd/channelz.go:118 +0x1bc
github.com/spf13/cobra.(*Command).execute(0x1fd33c0, {0x20177a0, 0x0, 0x0})
        /home/veblush/go/pkg/mod/github.com/spf13/[email protected]/command.go:850 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0x1fd4b60)
        /home/veblush/go/pkg/mod/github.com/spf13/[email protected]/command.go:958 +0x39d
github.com/spf13/cobra.(*Command).Execute(...)
        /home/veblush/go/pkg/mod/github.com/spf13/[email protected]/command.go:895
github.com/grpc-ecosystem/grpcdebug/cmd.Execute()
        /home/veblush/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/cmd/root.go:107 +0xde
main.main()
        /home/veblush/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/main.go:163 +0x17

@menghanl: PTAL

@menghanl: PTAL

Here is the code stats:

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Go                               9            112             69           1277
Markdown                         1             77              0            338
-------------------------------------------------------------------------------
SUM:                            10            189             69           1615
-------------------------------------------------------------------------------

Link to https://github.com/spf13/cobra
Link to design doc http://go/gdebug-cli

panic for unix:/// addresses

$ grpcdebug unix:///home/howardjohn/kube/local/proxy/XDS channelz servers
panic: Address type not supported for uds_address:<filename:"/home/howardjohn/kube/local/proxy/SDS" >

goroutine 1 [running]:
github.com/grpc-ecosystem/grpcdebug/cmd.prettyAddress(0xc000113440, 0xc0006813e0, 0xc000595cf8)
        /home/howardjohn/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/cmd/channelz.go:40 +0x145
github.com/grpc-ecosystem/grpcdebug/cmd.channelzServersCommandRunWithError(0x16ceba0, 0x170ca70, 0x0, 0x0, 0x0, 0x0)
        /home/howardjohn/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/cmd/channelz.go:320 +0x170
github.com/spf13/cobra.(*Command).execute(0x16ceba0, 0x170ca70, 0x0, 0x0, 0x16ceba0, 0x170ca70)
        /home/howardjohn/go/pkg/mod/github.com/spf13/[email protected]/command.go:850 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0x16cf380, 0xc000000180, 0x200000003, 0xc000000180)
        /home/howardjohn/go/pkg/mod/github.com/spf13/[email protected]/command.go:958 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
        /home/howardjohn/go/pkg/mod/github.com/spf13/[email protected]/command.go:895
github.com/grpc-ecosystem/grpcdebug/cmd.Execute()
        /home/howardjohn/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/cmd/root.go:107 +0xc5
main.main()
        /home/howardjohn/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/main.go:160 +0x25

other commands seem to work with UDS, so this seems unexpected, especially since its just on trying to print the address

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.