Bug #80332 | Valgrind THD::Query_plan::set_query_plan | ||
---|---|---|---|
Submitted: | 11 Feb 2016 0:42 | Modified: | 15 Feb 2016 14:11 |
Reporter: | Roel Van de Paar | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 5.7.10, 5.7.11 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[11 Feb 2016 0:42]
Roel Van de Paar
[11 Feb 2016 0:42]
Roel Van de Paar
Bug bundle with all required files
Attachment: bug_bundle.tar.gz (application/x-gzip, text), 2.00 MiB.
[11 Feb 2016 3:41]
Roel Van de Paar
Also seen as: ==28995== Conditional jump or move depends on uninitialised value(s) ==28995== at 0x14B658A: THD::Query_plan::set_query_plan(enum_sql_command, LEX*, bool) (sql_class.cc:4922) ==28995== by 0x151B172: mysql_execute_command(THD*, bool) (sql_parse.cc:5144) ==28995== by 0x146A603: sp_instr_stmt::exec_core(THD*, unsigned int*) (sp_instr.cc:969) ==28995== by 0x14692F4: sp_lex_instr::reset_lex_and_exec_core(THD*, unsigned int*, bool) (sp_instr.cc:403) ==28995== by 0x1469CFC: sp_lex_instr::validate_lex_and_execute_core(THD*, unsigned int*, bool) (sp_instr.cc:668) ==28995== by 0x146A29B: sp_instr_stmt::execute(THD*, unsigned int*) (sp_instr.cc:857) ==28995== by 0x146254D: sp_head::execute(THD*, bool) (sp_head.cc:789) ==28995== by 0x1464519: sp_head::execute_procedure(THD*, List<Item>*) (sp_head.cc:1523) ==28995== by 0x1659BE4: Event_job_data::execute(THD*, bool) (event_data_objects.cc:1472) ==28995== by 0x1746536: Event_worker_thread::run(THD*, Event_queue_element_for_exec*) (event_scheduler.cc:338) ==28995== by 0x17462A5: event_worker_thread (event_scheduler.cc:283) ==28995== by 0x1872B5F: pfs_spawn_thread (pfs.cc:2192) ==28995== by 0x4E3CDC4: start_thread (pthread_create.c:308) ==28995== by 0x6A1621C: clone (clone.S:113) ==28995== Uninitialised value was created by a heap allocation ==28995== at 0x4C2A105: operator new(unsigned long) (vg_replace_malloc.c:324) ==28995== by 0x1746ED0: Event_scheduler::execute_top(Event_queue_element_for_exec*) (event_scheduler.cc:572) ==28995== by 0x1746CE0: Event_scheduler::run(THD*) (event_scheduler.cc:530) ==28995== by 0x17461DE: event_scheduler_thread (event_scheduler.cc:243) ==28995== by 0x1872B5F: pfs_spawn_thread (pfs.cc:2192) ==28995== by 0x4E3CDC4: start_thread (pthread_create.c:308) ==28995== by 0x6A1621C: clone (clone.S:113) ==28995== ==28995== Conditional jump or move depends on uninitialised value(s) ==28995== at 0x14B6597: THD::Query_plan::set_query_plan(enum_sql_command, LEX*, bool) (sql_class.cc:4923) ==28995== by 0x151B172: mysql_execute_command(THD*, bool) (sql_parse.cc:5144) ==28995== by 0x146A603: sp_instr_stmt::exec_core(THD*, unsigned int*) (sp_instr.cc:969) ==28995== by 0x14692F4: sp_lex_instr::reset_lex_and_exec_core(THD*, unsigned int*, bool) (sp_instr.cc:403) ==28995== by 0x1469CFC: sp_lex_instr::validate_lex_and_execute_core(THD*, unsigned int*, bool) (sp_instr.cc:668) ==28995== by 0x146A29B: sp_instr_stmt::execute(THD*, unsigned int*) (sp_instr.cc:857) ==28995== by 0x146254D: sp_head::execute(THD*, bool) (sp_head.cc:789) ==28995== by 0x1464519: sp_head::execute_procedure(THD*, List<Item>*) (sp_head.cc:1523) ==28995== by 0x1659BE4: Event_job_data::execute(THD*, bool) (event_data_objects.cc:1472) ==28995== by 0x1746536: Event_worker_thread::run(THD*, Event_queue_element_for_exec*) (event_scheduler.cc:338) ==28995== by 0x17462A5: event_worker_thread (event_scheduler.cc:283) ==28995== by 0x1872B5F: pfs_spawn_thread (pfs.cc:2192) ==28995== by 0x4E3CDC4: start_thread (pthread_create.c:308) ==28995== by 0x6A1621C: clone (clone.S:113) ==28995== Uninitialised value was created by a heap allocation ==28995== at 0x4C2A105: operator new(unsigned long) (vg_replace_malloc.c:324) ==28995== by 0x1746ED0: Event_scheduler::execute_top(Event_queue_element_for_exec*) (event_scheduler.cc:572) ==28995== by 0x1746CE0: Event_scheduler::run(THD*) (event_scheduler.cc:530) ==28995== by 0x17461DE: event_scheduler_thread (event_scheduler.cc:243) ==28995== by 0x1872B5F: pfs_spawn_thread (pfs.cc:2192) ==28995== by 0x4E3CDC4: start_thread (pthread_create.c:308) ==28995== by 0x6A1621C: clone (clone.S:113)
[11 Feb 2016 3:42]
Roel Van de Paar
And, this crash: http://bugs.mysql.com/bug.php?id=79905 was seen in the same run. It MAY be related (though that's not established)
[11 Feb 2016 12:05]
MySQL Verification Team
Hello Roel, Thank you for the report. Thanks, Umesh
[12 Feb 2016 15:03]
Tor Didriksen
Posted by developer: I am unable to reproduce this, but my guess is that it's a duplicate of internal Bug#22573117 VALGRIND: CONDITIONAL JUMP OR MOVE DEPENDS ON UNINITIALISED VALUE(S) Pushed a couple of weeks ago, so should be part of 5.7.12 Umesh, can you repeat on current head of 5.7.12?
[15 Feb 2016 14:09]
Tor Didriksen
Posted by developer: Duplicate of internal bug: Bug#22573117 VALGRIND: CONDITIONAL JUMP OR MOVE DEPENDS ON UNINITIALISED VALUE(S) Fixed in 5.7.12