Valgrind: Invalid read of size 8 at get_record_buffer by audit_log_notify
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
==1842== Thread 33:
==1842== Invalid read of size 8
==1842== at 0x36448AE7: get_record_buffer (audit_log.c:1785)
==1842== by 0x36447E63: audit_log_notify (audit_log.c:1133)
==1842== by 0xE7F3D2: plugins_
==1842== by 0xE7F51A: event_class_
==1842== by 0xE7DD8A: mysql_audit_
==1842== by 0x151C9B3: mysql_audit_
==1842== by 0x1521C8A: dispatch_
==1842== by 0x151F7AC: do_command(THD*) (sql_parse.cc:1010)
==1842== by 0x1661847: handle_connection (connection_
==1842== by 0x1D0C13B: pfs_spawn_thread (pfs.cc:2188)
==1842== by 0x5075DC4: start_thread (pthread_
==1842== by 0x6E5CCEC: clone (clone.S:113)
==1842== Address 0x3788a438 is 24 bytes inside a block of size 448 free'd
==1842== at 0x18670EB: my_free (my_malloc.c:132)
==1842== by 0x155786F: plugin_
==1842== by 0x155A397: free_system_
==1842== by 0x152A174: mysql_execute_
==1842== by 0x152BC42: mysql_parse(THD*, Parser_state*) (sql_parse.cc:5838)
==1842== by 0x1520892: dispatch_
==1842== by 0x151F7AC: do_command(THD*) (sql_parse.cc:1010)
==1842== by 0x1661847: handle_connection (connection_
==1842== by 0x1D0C13B: pfs_spawn_thread (pfs.cc:2188)
==1842== by 0x5075DC4: start_thread (pthread_
==1842== by 0x6E5CCEC: clone (clone.S:113)
==1842==
==1842== Invalid read of size 1
==1842== at 0x36447ED6: audit_log_notify (audit_log.c:1143)
==1842== by 0xE7F3D2: plugins_
==1842== by 0xE7F51A: event_class_
==1842== by 0xE7DD8A: mysql_audit_
==1842== by 0x151C9B3: mysql_audit_
==1842== by 0x1521C8A: dispatch_
==1842== by 0x151F7AC: do_command(THD*) (sql_parse.cc:1010)
==1842== by 0x1661847: handle_connection (connection_
==1842== by 0x1D0C13B: pfs_spawn_thread (pfs.cc:2188)
==1842== by 0x5075DC4: start_thread (pthread_
==1842== by 0x6E5CCEC: clone (clone.S:113)
==1842== Address 0x3788a440 is 32 bytes inside a block of size 448 free'd
==1842== at 0x18670EB: my_free (my_malloc.c:132)
==1842== by 0x155786F: plugin_
==1842== by 0x155A397: free_system_
==1842== by 0x152A174: mysql_execute_
==1842== by 0x152BC42: mysql_parse(THD*, Parser_state*) (sql_parse.cc:5838)
==1842== by 0x1520892: dispatch_
==1842== by 0x151F7AC: do_command(THD*) (sql_parse.cc:1010)
==1842== by 0x1661847: handle_connection (connection_
==1842== by 0x1D0C13B: pfs_spawn_thread (pfs.cc:2188)
==1842== by 0x5075DC4: start_thread (pthread_
==1842== by 0x6E5CCEC: clone (clone.S:113)
The full error log is attached.
Here's the reduced test case:
DROP DATABASE test;
SET STATEMENT max_join_size=0 FOR SELECT 0 t0;
Similar test case:
DROP DATABASE test;
SET STATEMENT sql_mode='' FOR SELECT *;
Also you need to use audit_log plugin, I used --init- file=plugins_ 57.sql from here (without tokudb): https:/ /github. com/Percona- QA/percona- qa/blob/ master/ plugins_ 57.sql