Steps to reproduce:
- Do auditlog housekeeping
Zabbix server seems to be hung.
In Zabbix 6.0.0, auditid in auditlog table use cuid (char) instead of numeric.
But housekeeping_process_rule() function still call ZBX_STR2UINT64 macro to convert string (which fetched from database) to integer. It causes generate invalid DBexecute() query. This is why unable to break housekeeping_process_rule()'s while loop. So, It looks like it's hung from the user's view.
I attached patch to fix the problem. It remove ZBX_STR2UINT64 calling, then replace type and calling functions.