Bug #73819 | Valgrind warnings " Syscall param write(buf) points to uninitialised byte(s)" | ||
---|---|---|---|
Submitted: | 5 Sep 2014 17:15 | Modified: | 19 Nov 2019 23:59 |
Reporter: | Sergei Golubchik | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 5.5, 5.5.40 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[5 Sep 2014 17:15]
Sergei Golubchik
[6 Sep 2014 10:39]
MySQL Verification Team
Hello Sergei, Thank you for the bug report and test case. Verified as described with 5.5.40. Thanks, Umesh
[6 Sep 2014 10:40]
MySQL Verification Team
// 5.5.40 ==22279== Thread 13: ==22279== Syscall param write(buf) points to uninitialised byte(s) ==22279== at 0x3B3BA0E6FD: ??? (in /lib64/libpthread-2.12.so) ==22279== by 0x7A5B1E: my_write (my_write.c:43) ==22279== by 0x790CF6: my_b_flush_io_cache (mysql_file.h:1134) ==22279== by 0x792991: _my_b_write (mf_iocache.c:1549) ==22279== by 0x9133B0: _mi_write_static_record (mi_statrec.c:51) ==22279== by 0x916977: mi_write (mi_write.c:145) ==22279== by 0x679AEC: handler::ha_write_row(unsigned char*) (handler.cc:5200) ==22279== by 0x5AA47F: create_myisam_from_heap(THD*, TABLE*, TMP_TABLE_PARAM*, int, bool) (sql_select.cc:11353) ==22279== by 0x5E6571: select_union::send_data(List<Item>&) (sql_union.cc:70) ==22279== by 0x59FA73: end_send(JOIN*, st_join_table*, bool) (sql_select.cc:12763) ==22279== by 0x5A35B8: flush_cached_records(JOIN*, st_join_table*, bool) (sql_select.cc:12112) ==22279== by 0x5A3726: sub_select_cache(JOIN*, st_join_table*, bool) (sql_select.cc:11628) ==22279== by 0x5A4197: do_select(JOIN*, List<Item>*, TABLE*, Procedure*) (sql_select.cc:11564) ==22279== by 0x5B8424: JOIN::exec() (sql_select.cc:2385) ==22279== by 0x5B41C2: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_ select_lex_unit*, st_select_lex*) (sql_select.cc:2604) ==22279== by 0x55E199: mysql_derived_filling(THD*, LEX*, TABLE_LIST*) (sql_derived.cc:299) ==22279== Address 0xd9c090f is 239 bytes inside a block of size 131,072 alloc'd ==22279== at 0x4A069EE: malloc (vg_replace_malloc.c:270) ==22279== by 0x7A2D31: my_malloc (my_malloc.c:38) ==22279== by 0x7925BB: init_io_cache (mf_iocache.c:232) ==22279== by 0x8FF0FC: mi_extra (mi_extra.c:137) ==22279== by 0x5AA446: create_myisam_from_heap(THD*, TABLE*, TMP_TABLE_PARAM*, int, bool) (sql_select.cc:11342) ==22279== by 0x5E6571: select_union::send_data(List<Item>&) (sql_union.cc:70) ==22279== by 0x59FA73: end_send(JOIN*, st_join_table*, bool) (sql_select.cc:12763) ==22279== by 0x5A35B8: flush_cached_records(JOIN*, st_join_table*, bool) (sql_select.cc:12112) ==22279== by 0x5A3726: sub_select_cache(JOIN*, st_join_table*, bool) (sql_select.cc:11628) ==22279== by 0x5A4197: do_select(JOIN*, List<Item>*, TABLE*, Procedure*) (sql_select.cc:11564) ==22279== by 0x5B8424: JOIN::exec() (sql_select.cc:2385) ==22279== by 0x5B41C2: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_ select_lex_unit*, st_select_lex*) (sql_select.cc:2604) ==22279== by 0x55E199: mysql_derived_filling(THD*, LEX*, TABLE_LIST*) (sql_derived.cc:299) ==22279== by 0x55DFE8: mysql_handle_derived(LEX*, bool (*)(THD*, LEX*, TABLE_LIST*)) (sql_derived.cc:60) ==22279== by 0x545864: open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) (sql_base.cc:5521) ==22279== by 0x576A24: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_base.h:500) ==22279== ==22279== Syscall param write(buf) points to uninitialised byte(s) ==22279== at 0x3B3BA0E6FD: ??? (in /lib64/libpthread-2.12.so) ==22279== by 0x7A5B1E: my_write (my_write.c:43) ==22279== by 0x790CF6: my_b_flush_io_cache (mysql_file.h:1134) ==22279== by 0x79105C: end_io_cache (mf_iocache.c:1851) ==22279== by 0x8FF3E5: mi_extra (mi_extra.c:156) ==22279== by 0x5E5E74: select_union::flush() (sql_union.cc:87) ==22279== by 0x55E1D0: mysql_derived_filling(THD*, LEX*, TABLE_LIST*) (sql_derived.cc:308) ==22279== by 0x55DFE8: mysql_handle_derived(LEX*, bool (*)(THD*, LEX*, TABLE_LIST*)) (sql_derived.cc:60) ==22279== by 0x545864: open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) (sql_base.cc:5521) ==22279== by 0x576A24: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_base.h:500) ==22279== by 0x57D1DB: mysql_execute_command(THD*) (sql_parse.cc:2176) ==22279== by 0x57E7B9: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:5662) ==22279== by 0x580B0C: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1038) ==22279== by 0x6193C6: do_handle_one_connection(THD*) (sql_connect.cc:862) ==22279== by 0x619433: handle_one_connection (sql_connect.cc:781) ==22279== by 0x8DC98A: pfs_spawn_thread (pfs.cc:1015) ==22279== Address 0xd9c082b is 11 bytes inside a block of size 131,072 alloc'd ==22279== at 0x4A069EE: malloc (vg_replace_malloc.c:270) ==22279== by 0x7A2D31: my_malloc (my_malloc.c:38) ==22279== by 0x7925BB: init_io_cache (mf_iocache.c:232) ==22279== by 0x8FF0FC: mi_extra (mi_extra.c:137) ==22279== by 0x5AA446: create_myisam_from_heap(THD*, TABLE*, TMP_TABLE_PARAM*, int, bool) (sql_select.cc:11342) ==22279== by 0x5E6571: select_union::send_data(List<Item>&) (sql_union.cc:70) ==22279== by 0x59FA73: end_send(JOIN*, st_join_table*, bool) (sql_select.cc:12763) ==22279== by 0x5A35B8: flush_cached_records(JOIN*, st_join_table*, bool) (sql_select.cc:12112) ==22279== by 0x5A3726: sub_select_cache(JOIN*, st_join_table*, bool) (sql_select.cc:11628) ==22279== by 0x5A4197: do_select(JOIN*, List<Item>*, TABLE*, Procedure*) (sql_select.cc:11564) ==22279== by 0x5B8424: JOIN::exec() (sql_select.cc:2385) ==22279== by 0x5B41C2: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_ select_lex_unit*, st_select_lex*) (sql_select.cc:2604) ==22279== by 0x55E199: mysql_derived_filling(THD*, LEX*, TABLE_LIST*) (sql_derived.cc:299) ==22279== by 0x55DFE8: mysql_handle_derived(LEX*, bool (*)(THD*, LEX*, TABLE_LIST*)) (sql_derived.cc:60) ==22279== by 0x545864: open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) (sql_base.cc:5521) ==22279== by 0x576A24: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_base.h:500) ==22279==
[19 Nov 2019 23:59]
Roy Lyseng
Posted by developer: Not reproducible in 5.7 and 8.0