Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why "show databases" trigger [signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0xde0b22] #31

Open
chengfangang opened this issue Sep 9, 2021 · 0 comments

Comments

@chengfangang
Copy link

COM_QUERY: show databases
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0xde0b22]

goroutine 26 [running]:
github.com/blastrain/vitess-sqlparser/sqlparser.convertTiDBStmtToVitessShow(0xc0003280b0, 0x1, 0x1, 0xc0005a6100, 0x0, 0x0)
/root/software/sqlaudit/vendor/github.com/blastrain/vitess-sqlparser/sqlparser/type_converter.go:92 +0x62
github.com/blastrain/vitess-sqlparser/sqlparser.Parse(0xc000594490, 0xe, 0x4d35e6, 0x6139b690, 0x2c3ce2aa, 0x62d137f69c)
/root/software/sqlaudit/vendor/github.com/blastrain/vitess-sqlparser/sqlparser/ast.go:63 +0x3e7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant