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
Could you try again with the new ~master of the Python driver? Anyway it seems there is an issue with the SDK not checking nil pointers somewhere.