Packetbeat handle error when exec show databases

  • Version:
  • Operating System:
    macos 11.1
  • Steps to Reproduce:
    when exec "show databases"
    then the program will never recovery.
    because the var complete return false,and cause foller-up always wrong.

packetbeat/protos/mysql/mysql.go mysqlMessageParser :

table /* table */, _ /*off*/, complete, err := readLstring(, off)

Could you please share the error message from Packetbeat?

no error message
when i was debug, and find this bug

just add this block

if s.fieldOffset == m.numberOfFields {
	s.parseState = mysqlStateEatRows

in the end of "case mysqlStateEatFields:"

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.