[MDEV-4980] Conditional jump or move depends on uninitialised value - slave sql - ha_myisam::check_and_repair Created: 2013-09-03  Updated: 2020-01-03

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.32, 10.5.1
Fix Version/s: 5.5

Type: Bug Priority: Minor
Reporter: Daniel Black Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Environment:

wheezy build x86_64



 Description   

While doing the valgrind tests for MDEV-4974 I came across this:

The server was running solely as a sql slave when it was restarted.

==4576== Memcheck, a memory error detector
==4576== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==4576== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==4576== Command: /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --open-files-limit=2000 --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306
==4576== Parent PID: 1994
==4576== 
==4576== Warning: set address range perms: large range [0xb0d0000, 0x1b7b0000) (defined)
==4576== Thread 17:
==4576== Conditional jump or move depends on uninitialised value(s)
==4576==    at 0x919F1E: chk_del (mi_check.c:191)
==4576==    by 0x9156DD: ha_myisam::check(THD*, st_ha_check_opt*) (ha_myisam.cc:890)
==4576==    by 0x912626: ha_myisam::check_and_repair(THD*) (ha_myisam.cc:1626)
==4576==    by 0x465E63: auto_repair_table(THD*, TABLE_LIST*) (sql_base.cc:3972)
==4576==    by 0x4660EE: Open_table_context::recover_from_failed_open(THD*) (sql_base.cc:4156)
==4576==    by 0x467A59: open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) (sql_base.cc:5058)
==4576==    by 0x468803: open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) (sql_base.cc:5635)
==4576==    by 0x68BE7D: Rows_log_event::do_apply_event(Relay_log_info const*) (sql_base.h:524)
==4576==    by 0x43C9BC: apply_event_and_update_pos(Log_event*, THD*, Relay_log_info*) (log_event.h:1257)
==4576==    by 0x43D81F: handle_slave_sql (slave.cc:2791)
==4576==    by 0x4E35B4F: start_thread (pthread_create.c:304)
==4576==    by 0x654BA7C: clone (clone.S:112)



 Comments   
Comment by Daniel Black [ 2020-01-03 ]

main.myisam-blob w6 [ fail ] Found warnings/errors in server log file!
Test ended at 2020-01-03 14:08:35
line
==25225== Thread 6:
==25225== Conditional jump or move depends on uninitialised value(s)
==25225== at 0xEE0749: chk_del (mi_check.c:184)
==25225== by 0xEDBCE5: ha_myisam::check(THD, st_ha_check_opt) (ha_myisam.cc:1028)
==25225== by 0x9F16D9: handler::ha_check(THD, st_ha_check_opt) (handler.cc:4301)
==25225== by 0x8FC902: mysql_admin_table(THD, TABLE_LIST, st_ha_check_opt, char const, thr_lock_type, bool, bool, unsigned int, int ()(THD, TABLE_LIST, st_ha_check_opt), int (handler::)(THD, st_ha_check_opt), int ()(THD, TABLE_LIST, st_ha_check_opt*)) [clone .constprop.0] (sql_admin.cc:806)
==25225== by 0x8FE6A6: Sql_cmd_check_table::execute(THD*) (sql_admin.cc:1350)
==25225== by 0x7F7016: mysql_execute_command(THD*) (sql_parse.cc:5959)
==25225== by 0x7FCA23: mysql_parse(THD, char, unsigned int, Parser_state*, bool, bool) (sql_parse.cc:7988)
==25225== by 0x7FEECD: dispatch_command(enum_server_command, THD, char, unsigned int, bool, bool) (sql_parse.cc:1845)
==25225== by 0x801376: do_command(THD*) (sql_parse.cc:1363)
==25225== by 0x8F0A2B: do_handle_one_connection(CONNECT*, bool) (

Generated at Thu Feb 08 07:00:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.