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

Some connect engine tests fail with LeakSanitizer errors

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL)
    • 10.3.37
    • None

    Description

      10.3 129616c7

      $ perl ./mtr connect.bson
       
      connect.bson                             [ pass ]    235
      ***Warnings generated in error logs during shutdown after running tests: connect.bson
       
      ==1298428==ERROR: LeakSanitizer: detected memory leaks
      SUMMARY: AddressSanitizer: 12277 byte(s) leaked in 2 allocation(s).
       
      Exception 666: Cannot write expanded column when Pretty is not 2
       
      =================================================================
      ==1298428==ERROR: LeakSanitizer: detected memory leaks
       
      Direct leak of 9432 byte(s) in 1 object(s) allocated from:
          #0 0x74c45d in operator new(unsigned long) (/mnt8t/bld/10.3-asan-nightly/bin/mysqld+0x74c45d)
          #1 0x7f4c903b8068  (<unknown module>)
          #2 0x7f4c90574715  (<unknown module>)
          #3 0x7f4c902c7629  (<unknown module>)
          #4 0x7f4c902bdc7b  (<unknown module>)
          #5 0x7f4c9027d06e  (<unknown module>)
          #6 0x7f4c90297795  (<unknown module>)
          #7 0xde7013 in get_schema_stat_record(THD*, TABLE_LIST*, TABLE*, bool, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*) /data/src/10.3/sql/sql_show.cc:6722:25
          #8 0xdaca44 in fill_schema_table_by_open(THD*, st_mem_root*, bool, TABLE*, st_schema_table*, st_mysql_const_lex_string*, st_mysql_const_lex_string*, Open_tables_backup*, bool) /data/src/10.3/sql/sql_show.cc:4707:13
          #9 0xdaa0ce in get_all_tables(THD*, TABLE_LIST*, Item*) /data/src/10.3/sql/sql_show.cc:5217:12
          #10 0xdd6759 in get_schema_tables_result(JOIN*, enum_schema_table_state) /data/src/10.3/sql/sql_show.cc:9030:11
          #11 0xcc3398 in JOIN::exec_inner() /data/src/10.3/sql/sql_select.cc:4134:7
          #12 0xcc084e in JOIN::exec() /data/src/10.3/sql/sql_select.cc:3965:3
          #13 0xc334dc in mysql_select(THD*, 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*) /data/src/10.3/sql/sql_select.cc:4374:9
          #14 0xc320c4 in handle_select(THD*, LEX*, select_result*, unsigned long) /data/src/10.3/sql/sql_select.cc:372:10
          #15 0xb7078d in execute_sqlcom_select(THD*, TABLE_LIST*) /data/src/10.3/sql/sql_parse.cc:6340:12
          #16 0xb53417 in mysql_execute_command(THD*) /data/src/10.3/sql/sql_parse.cc:3871:12
          #17 0xb42fc6 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.3/sql/sql_parse.cc:7871:18
          #18 0xb33b4c in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.3/sql/sql_parse.cc:1852:7
          #19 0xb3ce4c in do_command(THD*) /data/src/10.3/sql/sql_parse.cc:1398:17
          #20 0x1083096 in do_handle_one_connection(CONNECT*) /data/src/10.3/sql/sql_connect.cc:1403:11
          #21 0x1082763 in handle_one_connection /data/src/10.3/sql/sql_connect.cc:1308:3
          #22 0x2e99121 in pfs_spawn_thread /data/src/10.3/storage/perfschema/pfs.cc:1869:3
          #23 0x7f4c9884dea6 in start_thread nptl/pthread_create.c:477:8
       
      Indirect leak of 2845 byte(s) in 1 object(s) allocated from:
          #0 0x71c7bd in malloc (/mnt8t/bld/10.3-asan-nightly/bin/mysqld+0x71c7bd)
          #1 0x7f4c903b8618  (<unknown module>)
          #2 0x7f4c903b8420  (<unknown module>)
          #3 0x7f4c90574715  (<unknown module>)
          #4 0x7f4c902c7629  (<unknown module>)
          #5 0x7f4c902bdc7b  (<unknown module>)
          #6 0x7f4c9027d06e  (<unknown module>)
          #7 0x7f4c90297795  (<unknown module>)
          #8 0xde7013 in get_schema_stat_record(THD*, TABLE_LIST*, TABLE*, bool, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*) /data/src/10.3/sql/sql_show.cc:6722:25
          #9 0xdaca44 in fill_schema_table_by_open(THD*, st_mem_root*, bool, TABLE*, st_schema_table*, st_mysql_const_lex_string*, st_mysql_const_lex_string*, Open_tables_backup*, bool) /data/src/10.3/sql/sql_show.cc:4707:13
          #10 0xdaa0ce in get_all_tables(THD*, TABLE_LIST*, Item*) /data/src/10.3/sql/sql_show.cc:5217:12
          #11 0xdd6759 in get_schema_tables_result(JOIN*, enum_schema_table_state) /data/src/10.3/sql/sql_show.cc:9030:11
          #12 0xcc3398 in JOIN::exec_inner() /data/src/10.3/sql/sql_select.cc:4134:7
          #13 0xcc084e in JOIN::exec() /data/src/10.3/sql/sql_select.cc:3965:3
          #14 0xc334dc in mysql_select(THD*, 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*) /data/src/10.3/sql/sql_select.cc:4374:9
          #15 0xc320c4 in handle_select(THD*, LEX*, select_result*, unsigned long) /data/src/10.3/sql/sql_select.cc:372:10
          #16 0xb7078d in execute_sqlcom_select(THD*, TABLE_LIST*) /data/src/10.3/sql/sql_parse.cc:6340:12
          #17 0xb53417 in mysql_execute_command(THD*) /data/src/10.3/sql/sql_parse.cc:3871:12
          #18 0xb42fc6 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.3/sql/sql_parse.cc:7871:18
          #19 0xb33b4c in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.3/sql/sql_parse.cc:1852:7
          #20 0xb3ce4c in do_command(THD*) /data/src/10.3/sql/sql_parse.cc:1398:17
          #21 0x1083096 in do_handle_one_connection(CONNECT*) /data/src/10.3/sql/sql_connect.cc:1403:11
          #22 0x1082763 in handle_one_connection /data/src/10.3/sql/sql_connect.cc:1308:3
          #23 0x2e99121 in pfs_spawn_thread /data/src/10.3/storage/perfschema/pfs.cc:1869:3
          #24 0x7f4c9884dea6 in start_thread nptl/pthread_create.c:477:8
       
      SUMMARY: AddressSanitizer: 12277 byte(s) leaked in 2 allocation(s).
      

      The failures started happening in the latest release (10.3.36 etc.), apparently after pre-release Connect merge.

      There may be more than one test like that, please run the whole suite after fixing.

      Attachments

        Activity

          People

            TheLinuxJedi Andrew Hutchings (Inactive)
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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