Valgrind error at THD::update_stats
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Medium
|
Laurynas Biveinis | ||
5.1 |
Fix Released
|
Medium
|
Laurynas Biveinis | ||
5.5 |
Fix Released
|
Medium
|
Laurynas Biveinis | ||
5.6 |
Fix Released
|
Medium
|
Laurynas Biveinis |
Bug Description
01:10:44.475 main.percona_
01:10:44.476 Test ended at 2013-02-13 17:45:20
01:10:44.476 line
01:10:44.476 ==2282== Thread 18:
01:10:44.476 ==2282== Conditional jump or move depends on uninitialised value(s)
01:10:44.476 ==2282== at 0x575C9E: THD::update_
01:10:44.476 ==2282== by 0x5A23B2: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5918)
01:10:44.476 ==2282== by 0x73CE67: Query_log_
01:10:44.476 ==2282== by 0x54198C: apply_event_
01:10:44.476 ==2282== by 0x542AE6: handle_slave_sql (slave.cc:2559)
01:10:44.476 ==2282== by 0x9A00C8: pfs_spawn_thread (pfs.cc:1015)
01:10:44.476 ==2282== by 0x5882E99: start_thread (pthread_
01:10:44.476 ==2282== by 0x6187CBC: clone (clone.S:112)
01:10:44.476 ^ Found warnings in /home/jenkins/
This is against older 5.5 trunk, as Jenkins Valgrind jobs were broken since.
Related branches
- Sergei Glushchenko (community): Approve (g2)
-
Diff: 87 lines (+34/-6)6 files modifiedPercona-Server/mysql-test/r/percona_bug1008278.result (+8/-0)
Percona-Server/mysql-test/t/percona_bug1008278-slave.opt (+1/-0)
Percona-Server/mysql-test/t/percona_bug1008278.test (+23/-0)
Percona-Server/sql/sql_class.cc (+2/-1)
Percona-Server/sql/sql_class.h (+0/-2)
Percona-Server/sql/sql_parse.cc (+0/-3)
- Registry Administrators: Pending requested
- Sergei Glushchenko (community): Approve (g2)
-
Diff: 44 lines (+3/-9)3 files modifiedsql/sql_class.cc (+3/-3)
sql/sql_class.h (+0/-2)
sql/sql_parse.cc (+0/-4)
- Sergei Glushchenko (community): Approve (g2)
-
Diff: 44 lines (+3/-9)3 files modifiedsql/sql_class.cc (+3/-3)
sql/sql_class.h (+0/-2)
sql/sql_parse.cc (+0/-4)
Reproduced locally.
./mysql-test-run --mem percona_bug1008278 --valgrind-mysqld
==18483== Thread 18: stats(bool) (sql_class.cc:1371) event:: do_apply_ event(Relay_ log_info const*, char const*, unsigned int) (log_event.cc:3496) event:: do_apply_ event(Relay_ log_info const*) (log_event.cc:3239) :apply_ event(Relay_ log_info const*) (log_event.h:1144) and_update_ pos(Log_ event*, THD*, Relay_log_info*) (slave.cc:2399) log_event( THD*, Relay_log_info*) (slave.cc:2559) create. c:308) valgrind/ vgpreload_ memcheck- amd64-linux. so) create. c:308)
==18483== Conditional jump or move depends on uninitialised value(s)
==18483== at 0x5D0940: THD::update_
==18483== by 0x60FA4C: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5934)
==18483== by 0x84E798: Query_log_
==18483== by 0x84DC61: Query_log_
==18483== by 0x588B15: Log_event:
==18483== by 0x580F71: apply_event_
==18483== by 0x5814EF: exec_relay_
==18483== by 0x583CBC: handle_slave_sql (slave.cc:3377)
==18483== by 0x9C2D5B: pfs_spawn_thread (pfs.cc:1015)
==18483== by 0x545AE99: start_thread (pthread_
==18483== by 0x619FCBC: clone (clone.S:112)
==18483== Uninitialised value was created by a heap allocation
==18483== at 0x4C2B3F8: malloc (in /usr/lib/
==18483== by 0x90E42B: my_malloc (my_malloc.c:38)
==18483== by 0x56688D: ilink::operator new(unsigned long) (sql_list.h:541)
==18483== by 0x583327: handle_slave_sql (slave.cc:3201)
==18483== by 0x9C2D5B: pfs_spawn_thread (pfs.cc:1015)
==18483== by 0x545AE99: start_thread (pthread_
==18483== by 0x619FCBC: clone (clone.S:112)
sql_class.cc:1371: if ((old_command == COM_QUERY || command == COM_CONNECT) &&