Valgrind error on main.audit_log_filter_commands

Bug #1650321 reported by Laurynas Biveinis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
Invalid
Undecided
Unassigned
5.6
Fix Released
High
Sergei Glushchenko
5.7
Fix Released
High
Sergei Glushchenko

Bug Description

On 5.6 trunk, Valgrind build:

./mtr --debug-server --valgrind-mysqld audit_log_filter_commands --valgrind-option=--track-origins=yes

==7401== Thread 20:
==7401== Conditional jump or move depends on uninitialised value(s)
==7401== at 0x4C32C52: __memcmp_sse4_1 (vg_replace_strmem.c:1094)
==7401== by 0xE8BB9D: my_strnncoll_binary (ctype-bin.c:84)
==7401== by 0xA3FA7E: hashcmp (hash.c:379)
==7401== by 0xA3F812: my_hash_first_from_hash_value (hash.c:294)
==7401== by 0xA3F74F: my_hash_first (hash.c:267)
==7401== by 0xA3F635: my_hash_search (hash.c:235)
==7401== by 0xB7B4C98: audit_log_check_command_included (filter.c:370)
==7401== by 0xB7B0321: audit_log_update_thd_local (audit_log.c:943)
==7401== by 0xB7B06CD: audit_log_notify (audit_log.c:1019)
==7401== by 0x6C7F81: plugins_dispatch(THD*, st_plugin_int**, void*) (sql_audit.cc:455)
==7401== by 0x6C804A: event_class_dispatch(THD*, unsigned int, void const*) (sql_audit.cc:491)
==7401== by 0x6C7041: general_class_handler(THD*, unsigned int, __va_list_tag*) (sql_audit.cc:90)
==7401== by 0x6C79E5: mysql_audit_notify(THD*, unsigned int, unsigned int, ...) (sql_audit.cc:217)
==7401== by 0x742676: mysql_audit_general(THD*, unsigned int, int, char const*) (sql_audit.h:196)
==7401== by 0x746EB7: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1889)
==7401== by 0x74485F: do_command(THD*) (sql_parse.cc:1062)
==7401== Uninitialised value was created by a stack allocation
==7401== at 0xB7B4C22: audit_log_check_command_included (filter.c:362)
==7401==

Tags: audit ci valgrind
tags: added: audit ci valgrind
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1038

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.