Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-32768

MSAN/Valgrind errors in my_well_formed_char_length_utf8

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.5, 10.4(EOL)
    • 10.5
    • Server

    Description

      Set to Minor because the failures are only reproducible with the provided test case on 10.4-10.5.

      CREATE TABLE t (a VARCHAR(32), KEY(a)) CHARACTER SET utf8;
      INSERT INTO t VALUES ('foo'),('bar');
      CREATE ALGORITHM=TEMPTABLE VIEW v AS SELECT * FROM t;
      SELECT * FROM v WHERE a < FROM_UNIXTIME(1568145408, '%I');
       
      # Cleanup
      DROP VIEW v;
      DROP TABLE t;
      

      10.5 dd62a285b88958dae9b9f3e49fdd0c55f6eced72 MSAN

      ==2844561==WARNING: MemorySanitizer: use-of-uninitialized-value
          #0 0x55686b832bbe in my_charlen_utf8mb3 /data/bld/10.5-msan/strings/ctype-utf8.c:5206:7
          #1 0x55686b832bbe in my_well_formed_char_length_utf8mb3 /data/bld/10.5-msan/strings/ctype-mb.inl:187:17
          #2 0x55686b7857a4 in my_ci_well_formed_char_length /data/bld/10.5-msan/include/m_ctype.h:1098:10
          #3 0x55686b7857a4 in my_copy_fix_mb /data/bld/10.5-msan/strings/ctype-mb.c:406:23
          #4 0x556868b8b1f9 in charset_info_st::copy_fix(char*, unsigned long, char const*, unsigned long, unsigned long, MY_STRCOPY_STATUS*) const /data/bld/10.5-msan/include/m_ctype.h:838:12
          #5 0x556868b8b1f9 in String_copier::well_formed_copy(charset_info_st const*, char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long) /data/bld/10.5-msan/sql/sql_string.cc:1108:26
          #6 0x5568693e8296 in Field_longstr::well_formed_copy_with_check(char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long, bool, unsigned int*) /data/bld/10.5-msan/sql/field.h:2190:26
          #7 0x5568693e8296 in Field_varstring::store(char const*, unsigned long, charset_info_st const*) /data/bld/10.5-msan/sql/field.cc:7833:7
          #8 0x55686955badc in Item::save_str_in_field(Field*, bool) /data/bld/10.5-msan/sql/item.cc:6742:21
          #9 0x55686955cb72 in Item::save_in_field(Field*, bool) /data/bld/10.5-msan/sql/item.cc:6780:30
          #10 0x55686950f486 in Item::save_in_field_no_warnings(Field*, bool) /data/bld/10.5-msan/sql/item.cc:1501:8
          #11 0x556869b45dbf in Field_str::get_mm_leaf(RANGE_OPT_PARAM*, KEY_PART*, Item_bool_func const*, scalar_comparison_op, Item*) /data/bld/10.5-msan/sql/opt_range.cc:8954:19
          #12 0x556869b41a05 in Item_bool_func::get_mm_leaf(RANGE_OPT_PARAM*, Field*, KEY_PART*, Item_func::Functype, Item*) /data/bld/10.5-msan/sql/opt_range.cc:8818:3
          #13 0x556869b2da94 in Item_bool_func::get_mm_parts(RANGE_OPT_PARAM*, Field*, Item_func::Functype, Item*) /data/bld/10.5-msan/sql/opt_range.cc:8653:18
          #14 0x55686964f5d0 in Item_bool_func2_with_rev::get_func_mm_tree(RANGE_OPT_PARAM*, Field*, Item*) /data/bld/10.5-msan/sql/item_cmpfunc.h:470:5
          #15 0x556869b3a8ac in Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM*, Item_field*, Item*) /data/bld/10.5-msan/sql/opt_range.cc:8312:12
          #16 0x556868ab86dd in Item_bool_func::get_full_func_mm_tree_for_args(RANGE_OPT_PARAM*, Item*, Item*) /data/bld/10.5-msan/sql/item_cmpfunc.h:207:7
          #17 0x55686964eaf6 in Item_bool_func2_with_rev::get_mm_tree(RANGE_OPT_PARAM*, Item**) /data/bld/10.5-msan/sql/item_cmpfunc.h:498:18
          #18 0x556869ade56b in SQL_SELECT::test_quick_select(THD*, Bitmap<64u>, unsigned long long, unsigned long long, bool, bool, bool, bool) /data/bld/10.5-msan/sql/opt_range.cc:2892:23
          #19 0x556868984832 in get_quick_record_count(THD*, SQL_SELECT*, TABLE*, Bitmap<64u> const*, unsigned long long) /data/bld/10.5-msan/sql/sql_select.cc:4923:9
          #20 0x556868984832 in make_join_statistics(JOIN*, List<TABLE_LIST>&, st_dynamic_array*) /data/bld/10.5-msan/sql/sql_select.cc:5650:20
          #21 0x55686896c1b0 in JOIN::optimize_inner() /data/bld/10.5-msan/sql/sql_select.cc:2383:7
          #22 0x55686895040c in JOIN::optimize() /data/bld/10.5-msan/sql/sql_select.cc:1741:10
          #23 0x5568686de1ad in mysql_derived_optimize(THD*, LEX*, TABLE_LIST*) /data/bld/10.5-msan/sql/sql_derived.cc:1029:23
          #24 0x5568686e573e in mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int) /data/bld/10.5-msan/sql/sql_derived.cc:200:15
          #25 0x55686896a02b in JOIN::optimize_inner() /data/bld/10.5-msan/sql/sql_select.cc:2201:6
          #26 0x55686895040c in JOIN::optimize() /data/bld/10.5-msan/sql/sql_select.cc:1741:10
          #27 0x5568689325d0 in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /data/bld/10.5-msan/sql/sql_select.cc:4865:19
          #28 0x5568689311c6 in handle_select(THD*, LEX*, select_result*, unsigned long) /data/bld/10.5-msan/sql/sql_select.cc:450:10
          #29 0x5568688681ae in execute_sqlcom_select(THD*, TABLE_LIST*) /data/bld/10.5-msan/sql/sql_parse.cc:6343:12
          #30 0x55686884235a in mysql_execute_command(THD*) /data/bld/10.5-msan/sql/sql_parse.cc:4020:12
          #31 0x556868829647 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/bld/10.5-msan/sql/sql_parse.cc:8121:18
          #32 0x55686881cbd2 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/bld/10.5-msan/sql/sql_parse.cc:1891:7
          #33 0x55686882b5e8 in do_command(THD*) /data/bld/10.5-msan/sql/sql_parse.cc:1375:17
          #34 0x556868e2e34f in do_handle_one_connection(CONNECT*, bool) /data/bld/10.5-msan/sql/sql_connect.cc:1416:11
          #35 0x556868e2da45 in handle_one_connection /data/bld/10.5-msan/sql/sql_connect.cc:1318:5
          #36 0x55686a248a5a in pfs_spawn_thread /data/bld/10.5-msan/storage/perfschema/pfs.cc:2201:3
          #37 0x7f0b7f22c043 in start_thread nptl/./nptl/pthread_create.c:442:8
          #38 0x7f0b7f2ac61b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
       
        Uninitialized value was created by an allocation of 'buff' in the stack frame of function '_ZN4Item17save_str_in_fieldEP5Fieldb'
          #0 0x55686955b6c0 in Item::save_str_in_field(Field*, bool) /data/bld/10.5-msan/sql/item.cc:6727
       
      SUMMARY: MemorySanitizer: use-of-uninitialized-value /data/bld/10.5-msan/strings/ctype-utf8.c:5206:7 in my_charlen_utf8mb3
      

      10.4 64f44b22d9a3dab3d4c0b77addbcbdafde57b466 Valgrind

      ==2844746== Thread 6:
      ==2844746== Conditional jump or move depends on uninitialised value(s)
      ==2844746==    at 0x16DBB3D: my_charlen_utf8 (ctype-utf8.c:5204)
      ==2844746==    by 0x16DBB97: my_well_formed_char_length_utf8 (ctype-mb.inl:187)
      ==2844746==    by 0x16B3E5B: my_copy_fix_mb (ctype-mb.c:406)
      ==2844746==    by 0xA7995D: String_copier::well_formed_copy(charset_info_st const*, char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long) (sql_string.cc:1086)
      ==2844746==    by 0xCEC086: Field_longstr::well_formed_copy_with_check(char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long, bool, unsigned int*) (field.h:1971)
      ==2844746==    by 0xCDAA35: Field_varstring::store(char const*, unsigned long, charset_info_st const*) (field.cc:7749)
      ==2844746==    by 0xD36058: Item::save_str_in_field(Field*, bool) (item.cc:6690)
      ==2844746==    by 0xBE44DB: Type_handler_string_result::Item_save_in_field(Item*, Field*, bool) const (sql_type.cc:3825)
      ==2844746==    by 0xD362D4: Item::save_in_field(Field*, bool) (item.cc:6728)
      ==2844746==    by 0xD24BE9: Item::save_in_field_no_warnings(Field*, bool) (item.cc:1478)
      ==2844746==    by 0xEAC7E6: Field_str::get_mm_leaf(RANGE_OPT_PARAM*, KEY_PART*, Item_bool_func const*, scalar_comparison_op, Item*) (opt_range.cc:8940)
      ==2844746==    by 0xEABEBF: Item_bool_func::get_mm_leaf(RANGE_OPT_PARAM*, Field*, KEY_PART*, Item_func::Functype, Item*) (opt_range.cc:8804)
      ==2844746==    by 0xEAB262: Item_bool_func::get_mm_parts(RANGE_OPT_PARAM*, Field*, Item_func::Functype, Item*) (opt_range.cc:8638)
      ==2844746==    by 0x8FAD5D: Item_bool_func2_with_rev::get_func_mm_tree(RANGE_OPT_PARAM*, Field*, Item*) (item_cmpfunc.h:467)
      ==2844746==    by 0xEA9FB1: Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM*, Item_field*, Item*) (opt_range.cc:8285)
      ==2844746==    by 0x8FA97F: Item_bool_func::get_full_func_mm_tree_for_args(RANGE_OPT_PARAM*, Item*, Item*) (item_cmpfunc.h:209)
      ==2844746== 
      ==2844746== Conditional jump or move depends on uninitialised value(s)
      ==2844746==    at 0x16DA365: my_valid_mbcharlen_utf8mb3 (ctype-utf8.c:82)
      ==2844746==    by 0x16DBB51: my_charlen_utf8 (ctype-utf8.c:5205)
      ==2844746==    by 0x16DBB97: my_well_formed_char_length_utf8 (ctype-mb.inl:187)
      ==2844746==    by 0x16B3E5B: my_copy_fix_mb (ctype-mb.c:406)
      ==2844746==    by 0xA7995D: String_copier::well_formed_copy(charset_info_st const*, char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long) (sql_string.cc:1086)
      ==2844746==    by 0xCEC086: Field_longstr::well_formed_copy_with_check(char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long, bool, unsigned int*) (field.h:1971)
      ==2844746==    by 0xCDAA35: Field_varstring::store(char const*, unsigned long, charset_info_st const*) (field.cc:7749)
      ==2844746==    by 0xD36058: Item::save_str_in_field(Field*, bool) (item.cc:6690)
      ==2844746==    by 0xBE44DB: Type_handler_string_result::Item_save_in_field(Item*, Field*, bool) const (sql_type.cc:3825)
      ==2844746==    by 0xD362D4: Item::save_in_field(Field*, bool) (item.cc:6728)
      ==2844746==    by 0xD24BE9: Item::save_in_field_no_warnings(Field*, bool) (item.cc:1478)
      ==2844746==    by 0xEAC7E6: Field_str::get_mm_leaf(RANGE_OPT_PARAM*, KEY_PART*, Item_bool_func const*, scalar_comparison_op, Item*) (opt_range.cc:8940)
      ==2844746==    by 0xEABEBF: Item_bool_func::get_mm_leaf(RANGE_OPT_PARAM*, Field*, KEY_PART*, Item_func::Functype, Item*) (opt_range.cc:8804)
      ==2844746==    by 0xEAB262: Item_bool_func::get_mm_parts(RANGE_OPT_PARAM*, Field*, Item_func::Functype, Item*) (opt_range.cc:8638)
      ==2844746==    by 0x8FAD5D: Item_bool_func2_with_rev::get_func_mm_tree(RANGE_OPT_PARAM*, Field*, Item*) (item_cmpfunc.h:467)
      ==2844746==    by 0xEA9FB1: Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM*, Item_field*, Item*) (opt_range.cc:8285)
      ==2844746== 
      ==2844746== Conditional jump or move depends on uninitialised value(s)
      ==2844746==    at 0x16DA375: my_valid_mbcharlen_utf8mb3 (ctype-utf8.c:85)
      ==2844746==    by 0x16DBB51: my_charlen_utf8 (ctype-utf8.c:5205)
      ==2844746==    by 0x16DBB97: my_well_formed_char_length_utf8 (ctype-mb.inl:187)
      ==2844746==    by 0x16B3E5B: my_copy_fix_mb (ctype-mb.c:406)
      ==2844746==    by 0xA7995D: String_copier::well_formed_copy(charset_info_st const*, char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long) (sql_string.cc:1086)
      ==2844746==    by 0xCEC086: Field_longstr::well_formed_copy_with_check(char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long, bool, unsigned int*) (field.h:1971)
      ==2844746==    by 0xCDAA35: Field_varstring::store(char const*, unsigned long, charset_info_st const*) (field.cc:7749)
      ==2844746==    by 0xD36058: Item::save_str_in_field(Field*, bool) (item.cc:6690)
      ==2844746==    by 0xBE44DB: Type_handler_string_result::Item_save_in_field(Item*, Field*, bool) const (sql_type.cc:3825)
      ==2844746==    by 0xD362D4: Item::save_in_field(Field*, bool) (item.cc:6728)
      ==2844746==    by 0xD24BE9: Item::save_in_field_no_warnings(Field*, bool) (item.cc:1478)
      ==2844746==    by 0xEAC7E6: Field_str::get_mm_leaf(RANGE_OPT_PARAM*, KEY_PART*, Item_bool_func const*, scalar_comparison_op, Item*) (opt_range.cc:8940)
      ==2844746==    by 0xEABEBF: Item_bool_func::get_mm_leaf(RANGE_OPT_PARAM*, Field*, KEY_PART*, Item_func::Functype, Item*) (opt_range.cc:8804)
      ==2844746==    by 0xEAB262: Item_bool_func::get_mm_parts(RANGE_OPT_PARAM*, Field*, Item_func::Functype, Item*) (opt_range.cc:8638)
      ==2844746==    by 0x8FAD5D: Item_bool_func2_with_rev::get_func_mm_tree(RANGE_OPT_PARAM*, Field*, Item*) (item_cmpfunc.h:467)
      ==2844746==    by 0xEA9FB1: Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM*, Item_field*, Item*) (opt_range.cc:8285)
      ==2844746== 
      ==2844746== Conditional jump or move depends on uninitialised value(s)
      ==2844746==    at 0x16DA385: my_valid_mbcharlen_utf8mb3 (ctype-utf8.c:88)
      ==2844746==    by 0x16DBB51: my_charlen_utf8 (ctype-utf8.c:5205)
      ==2844746==    by 0x16DBB97: my_well_formed_char_length_utf8 (ctype-mb.inl:187)
      ==2844746==    by 0x16B3E5B: my_copy_fix_mb (ctype-mb.c:406)
      ==2844746==    by 0xA7995D: String_copier::well_formed_copy(charset_info_st const*, char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long) (sql_string.cc:1086)
      ==2844746==    by 0xCEC086: Field_longstr::well_formed_copy_with_check(char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long, bool, unsigned int*) (field.h:1971)
      ==2844746==    by 0xCDAA35: Field_varstring::store(char const*, unsigned long, charset_info_st const*) (field.cc:7749)
      ==2844746==    by 0xD36058: Item::save_str_in_field(Field*, bool) (item.cc:6690)
      ==2844746==    by 0xBE44DB: Type_handler_string_result::Item_save_in_field(Item*, Field*, bool) const (sql_type.cc:3825)
      ==2844746==    by 0xD362D4: Item::save_in_field(Field*, bool) (item.cc:6728)
      ==2844746==    by 0xD24BE9: Item::save_in_field_no_warnings(Field*, bool) (item.cc:1478)
      ==2844746==    by 0xEAC7E6: Field_str::get_mm_leaf(RANGE_OPT_PARAM*, KEY_PART*, Item_bool_func const*, scalar_comparison_op, Item*) (opt_range.cc:8940)
      ==2844746==    by 0xEABEBF: Item_bool_func::get_mm_leaf(RANGE_OPT_PARAM*, Field*, KEY_PART*, Item_func::Functype, Item*) (opt_range.cc:8804)
      ==2844746==    by 0xEAB262: Item_bool_func::get_mm_parts(RANGE_OPT_PARAM*, Field*, Item_func::Functype, Item*) (opt_range.cc:8638)
      ==2844746==    by 0x8FAD5D: Item_bool_func2_with_rev::get_func_mm_tree(RANGE_OPT_PARAM*, Field*, Item*) (item_cmpfunc.h:467)
      ==2844746==    by 0xEA9FB1: Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM*, Item_field*, Item*) (opt_range.cc:8285)
      ==2844746== 
      ==2844746== Conditional jump or move depends on uninitialised value(s)
      ==2844746==    at 0x16DA3AF: my_valid_mbcharlen_utf8mb3 (ctype-utf8.c:93)
      ==2844746==    by 0x16DBB51: my_charlen_utf8 (ctype-utf8.c:5205)
      ==2844746==    by 0x16DBB97: my_well_formed_char_length_utf8 (ctype-mb.inl:187)
      ==2844746==    by 0x16B3E5B: my_copy_fix_mb (ctype-mb.c:406)
      ==2844746==    by 0xA7995D: String_copier::well_formed_copy(charset_info_st const*, char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long) (sql_string.cc:1086)
      ==2844746==    by 0xCEC086: Field_longstr::well_formed_copy_with_check(char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long, bool, unsigned int*) (field.h:1971)
      ==2844746==    by 0xCDAA35: Field_varstring::store(char const*, unsigned long, charset_info_st const*) (field.cc:7749)
      ==2844746==    by 0xD36058: Item::save_str_in_field(Field*, bool) (item.cc:6690)
      ==2844746==    by 0xBE44DB: Type_handler_string_result::Item_save_in_field(Item*, Field*, bool) const (sql_type.cc:3825)
      ==2844746==    by 0xD362D4: Item::save_in_field(Field*, bool) (item.cc:6728)
      ==2844746==    by 0xD24BE9: Item::save_in_field_no_warnings(Field*, bool) (item.cc:1478)
      ==2844746==    by 0xEAC7E6: Field_str::get_mm_leaf(RANGE_OPT_PARAM*, KEY_PART*, Item_bool_func const*, scalar_comparison_op, Item*) (opt_range.cc:8940)
      ==2844746==    by 0xEABEBF: Item_bool_func::get_mm_leaf(RANGE_OPT_PARAM*, Field*, KEY_PART*, Item_func::Functype, Item*) (opt_range.cc:8804)
      ==2844746==    by 0xEAB262: Item_bool_func::get_mm_parts(RANGE_OPT_PARAM*, Field*, Item_func::Functype, Item*) (opt_range.cc:8638)
      ==2844746==    by 0x8FAD5D: Item_bool_func2_with_rev::get_func_mm_tree(RANGE_OPT_PARAM*, Field*, Item*) (item_cmpfunc.h:467)
      ==2844746==    by 0xEA9FB1: Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM*, Item_field*, Item*) (opt_range.cc:8285)
      ==2844746== 
      ==2844746== Conditional jump or move depends on uninitialised value(s)
      ==2844746==    at 0x16DBB3D: my_charlen_utf8 (ctype-utf8.c:5204)
      ==2844746==    by 0x16B3C3B: my_append_fix_badly_formed_tail (ctype-mb.c:357)
      ==2844746==    by 0x16B3F20: my_copy_fix_mb (ctype-mb.c:416)
      ==2844746==    by 0xA7995D: String_copier::well_formed_copy(charset_info_st const*, char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long) (sql_string.cc:1086)
      ==2844746==    by 0xCEC086: Field_longstr::well_formed_copy_with_check(char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long, bool, unsigned int*) (field.h:1971)
      ==2844746==    by 0xCDAA35: Field_varstring::store(char const*, unsigned long, charset_info_st const*) (field.cc:7749)
      ==2844746==    by 0xD36058: Item::save_str_in_field(Field*, bool) (item.cc:6690)
      ==2844746==    by 0xBE44DB: Type_handler_string_result::Item_save_in_field(Item*, Field*, bool) const (sql_type.cc:3825)
      ==2844746==    by 0xD362D4: Item::save_in_field(Field*, bool) (item.cc:6728)
      ==2844746==    by 0xD24BE9: Item::save_in_field_no_warnings(Field*, bool) (item.cc:1478)
      ==2844746==    by 0xEAC7E6: Field_str::get_mm_leaf(RANGE_OPT_PARAM*, KEY_PART*, Item_bool_func const*, scalar_comparison_op, Item*) (opt_range.cc:8940)
      ==2844746==    by 0xEABEBF: Item_bool_func::get_mm_leaf(RANGE_OPT_PARAM*, Field*, KEY_PART*, Item_func::Functype, Item*) (opt_range.cc:8804)
      ==2844746==    by 0xEAB262: Item_bool_func::get_mm_parts(RANGE_OPT_PARAM*, Field*, Item_func::Functype, Item*) (opt_range.cc:8638)
      ==2844746==    by 0x8FAD5D: Item_bool_func2_with_rev::get_func_mm_tree(RANGE_OPT_PARAM*, Field*, Item*) (item_cmpfunc.h:467)
      ==2844746==    by 0xEA9FB1: Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM*, Item_field*, Item*) (opt_range.cc:8285)
      ==2844746==    by 0x8FA97F: Item_bool_func::get_full_func_mm_tree_for_args(RANGE_OPT_PARAM*, Item*, Item*) (item_cmpfunc.h:209)
      ==2844746== 
      ==2844746== Conditional jump or move depends on uninitialised value(s)
      ==2844746==    at 0x16DA365: my_valid_mbcharlen_utf8mb3 (ctype-utf8.c:82)
      ==2844746==    by 0x16DBB51: my_charlen_utf8 (ctype-utf8.c:5205)
      ==2844746==    by 0x16B3C3B: my_append_fix_badly_formed_tail (ctype-mb.c:357)
      ==2844746==    by 0x16B3F20: my_copy_fix_mb (ctype-mb.c:416)
      ==2844746==    by 0xA7995D: String_copier::well_formed_copy(charset_info_st const*, char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long) (sql_string.cc:1086)
      ==2844746==    by 0xCEC086: Field_longstr::well_formed_copy_with_check(char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long, bool, unsigned int*) (field.h:1971)
      ==2844746==    by 0xCDAA35: Field_varstring::store(char const*, unsigned long, charset_info_st const*) (field.cc:7749)
      ==2844746==    by 0xD36058: Item::save_str_in_field(Field*, bool) (item.cc:6690)
      ==2844746==    by 0xBE44DB: Type_handler_string_result::Item_save_in_field(Item*, Field*, bool) const (sql_type.cc:3825)
      ==2844746==    by 0xD362D4: Item::save_in_field(Field*, bool) (item.cc:6728)
      ==2844746==    by 0xD24BE9: Item::save_in_field_no_warnings(Field*, bool) (item.cc:1478)
      ==2844746==    by 0xEAC7E6: Field_str::get_mm_leaf(RANGE_OPT_PARAM*, KEY_PART*, Item_bool_func const*, scalar_comparison_op, Item*) (opt_range.cc:8940)
      ==2844746==    by 0xEABEBF: Item_bool_func::get_mm_leaf(RANGE_OPT_PARAM*, Field*, KEY_PART*, Item_func::Functype, Item*) (opt_range.cc:8804)
      ==2844746==    by 0xEAB262: Item_bool_func::get_mm_parts(RANGE_OPT_PARAM*, Field*, Item_func::Functype, Item*) (opt_range.cc:8638)
      ==2844746==    by 0x8FAD5D: Item_bool_func2_with_rev::get_func_mm_tree(RANGE_OPT_PARAM*, Field*, Item*) (item_cmpfunc.h:467)
      ==2844746==    by 0xEA9FB1: Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM*, Item_field*, Item*) (opt_range.cc:8285)
      ==2844746== 
      ==2844746== Conditional jump or move depends on uninitialised value(s)
      ==2844746==    at 0x16DA375: my_valid_mbcharlen_utf8mb3 (ctype-utf8.c:85)
      ==2844746==    by 0x16DBB51: my_charlen_utf8 (ctype-utf8.c:5205)
      ==2844746==    by 0x16B3C3B: my_append_fix_badly_formed_tail (ctype-mb.c:357)
      ==2844746==    by 0x16B3F20: my_copy_fix_mb (ctype-mb.c:416)
      ==2844746==    by 0xA7995D: String_copier::well_formed_copy(charset_info_st const*, char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long) (sql_string.cc:1086)
      ==2844746==    by 0xCEC086: Field_longstr::well_formed_copy_with_check(char*, unsigned long, charset_info_st const*, char const*, unsigned long, unsigned long, bool, unsigned int*) (field.h:1971)
      ==2844746==    by 0xCDAA35: Field_varstring::store(char const*, unsigned long, charset_info_st const*) (field.cc:7749)
      ==2844746==    by 0xD36058: Item::save_str_in_field(Field*, bool) (item.cc:6690)
      ==2844746==    by 0xBE44DB: Type_handler_string_result::Item_save_in_field(Item*, Field*, bool) const (sql_type.cc:3825)
      ==2844746==    by 0xD362D4: Item::save_in_field(Field*, bool) (item.cc:6728)
      ==2844746==    by 0xD24BE9: Item::save_in_field_no_warnings(Field*, bool) (item.cc:1478)
      ==2844746==    by 0xEAC7E6: Field_str::get_mm_leaf(RANGE_OPT_PARAM*, KEY_PART*, Item_bool_func const*, scalar_comparison_op, Item*) (opt_range.cc:8940)
      ==2844746==    by 0xEABEBF: Item_bool_func::get_mm_leaf(RANGE_OPT_PARAM*, Field*, KEY_PART*, Item_func::Functype, Item*) (opt_range.cc:8804)
      ==2844746==    by 0xEAB262: Item_bool_func::get_mm_parts(RANGE_OPT_PARAM*, Field*, Item_func::Functype, Item*) (opt_range.cc:8638)
      ==2844746==    by 0x8FAD5D: Item_bool_func2_with_rev::get_func_mm_tree(RANGE_OPT_PARAM*, Field*, Item*) (item_cmpfunc.h:467)
      ==2844746==    by 0xEA9FB1: Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM*, Item_field*, Item*) (opt_range.cc:8285)
      ==2844746== 
      

      Attachments

        Activity

          People

            bar Alexander Barkov
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.