Description:
When running backup_backupdir with valgrind it reports the following problems:
> ==2705== Conditional jump or move depends on uninitialised value(s)
> ==2705== at 0x8263362: String::c_ptr() (sql_string.h:98)
> ==2705== by 0x833E556: sys_check_backupdir(THD*, set_var*) (set_var.cc:2953)
> ==2705== by 0x833E011: sys_var_str::check(THD*, set_var*) (set_var.cc:993)
> ==2705== by 0x833F94A: set_var::check(THD*) (set_var.cc:4000)
> ==2705== by 0x8340C53: sql_set_variables(THD*, List<set_var_base>*) (set_var.cc:3907)
> ==2705== by 0x832F2FF: mysql_execute_command(THD*) (sql_parse.cc:3487)
> ==2705== by 0x8333AB6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:5812)
> ==2705== by 0x8334A8F: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1057)
> ==2705== by 0x8335DAA: do_command(THD*) (sql_parse.cc:739)
> ==2705== by 0x83229A6: handle_one_connection (sql_connect.cc:1146)
> ==2705== by 0x404F0BC: start_thread (in /lib/tls/libpthread-2.3.6.so)
> ==2705== by 0x42829ED: clone (in /lib/tls/libc-2.3.6.so)
> ==2705==
> ==2705== Conditional jump or move depends on uninitialised value(s)
> ==2705== at 0x891E9D5: dirname_length (mf_dirname.c:33)
> ==2705== by 0x891EA54: dirname_part (mf_dirname.c:73)
> ==2705== by 0x833E593: sys_check_backupdir(THD*, set_var*) (set_var.cc:2957)
> ==2705== by 0x833E011: sys_var_str::check(THD*, set_var*) (set_var.cc:993)
> ==2705== by 0x833F94A: set_var::check(THD*) (set_var.cc:4000)
> ==2705== by 0x8340C53: sql_set_variables(THD*, List<set_var_base>*) (set_var.cc:3907)
> ==2705== by 0x832F2FF: mysql_execute_command(THD*) (sql_parse.cc:3487)
> ==2705== by 0x8333AB6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:5812)
> ==2705== by 0x8334A8F: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1057)
> ==2705== by 0x8335DAA: do_command(THD*) (sql_parse.cc:739)
> ==2705== by 0x83229A6: handle_one_connection (sql_connect.cc:1146)
> ==2705== by 0x404F0BC: start_thread (in /lib/tls/libpthread-2.3.6.so)
> ==2705== by 0x42829ED: clone (in /lib/tls/libc-2.3.6.so)
> ==2705==
> ==2705== Conditional jump or move depends on uninitialised value(s)
> ==2705== at 0x8263362: String::c_ptr() (sql_string.h:98)
> ==2705== by 0x833F139: sys_update_backupdir(THD*, set_var*) (set_var.cc:3006)
> ==2705== by 0x8344766: sys_var_str::update(THD*, set_var*) (set_var.h:278)
> ==2705== by 0x83379D9: set_var::update(THD*) (set_var.cc:4049)
> ==2705== by 0x8340CDC: sql_set_variables(THD*, List<set_var_base>*) (set_var.cc:3914)
> ==2705== by 0x832F2FF: mysql_execute_command(THD*) (sql_parse.cc:3487)
> ==2705== by 0x8333AB6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:5812)
> ==2705== by 0x8334A8F: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1057)
> ==2705== by 0x8335DAA: do_command(THD*) (sql_parse.cc:739)
> ==2705== by 0x83229A6: handle_one_connection (sql_connect.cc:1146)
> ==2705== by 0x404F0BC: start_thread (in /lib/tls/libpthread-2.3.6.so)
> ==2705== by 0x42829ED: clone (in /lib/tls/libc-2.3.6.so)
These are in the code handling the @@backupdir variable.
How to repeat:
Run "./mtr backup_backupdir --valgrind" and see server's error log.