This is example of reproducing a panic on reading UAST from client.ParseUAST()
, while iterating over files in Git repo using go-git.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1186147]
goroutine 1 [running]:
github.com/bblfsh/sdk/uast.(*Node).ProtoSize(0x0, 0xc4201ddda0)
Steps to reproduce:
git clone https://github.com/damoeb/kalipo.git
go run pyFromGit2ast2pb.go
You can change "java" to "python" (L42 and L60) back and forth you can get more interesting results.
I.e
Thank you! Will follow your instructions to get everything latest locally bblfsh/bblfshd#34 (comment) and report issues on relevant repositories (server/python)!