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

LeakSanitizer errors in ha_videx::info_low

    XMLWordPrintable

Details

    Description

      install soname 'ha_videx';
      create table t (a int primary key) engine=videx;
      show create table t;
      drop table t;
      uninstall soname 'ha_videx';
      

      12.3 ee50a1afbcd2444de477f7a2c4f83351ac55637e

      ==1442362==ERROR: LeakSanitizer: detected memory leaks
       
      Direct leak of 5360 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e022b83b7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
          #1 0x7f7df25dfdbf  (/lib/x86_64-linux-gnu/libcurl.so.4+0x6cdbf)
          #2 0x7f7df2312fde in ha_videx::info_low(unsigned int, bool) /data/bld/12.3-asan-ubsan/storage/videx/ha_videx.cc:830
          #3 0x7f7df2315461 in ha_videx::info(unsigned int) /data/bld/12.3-asan-ubsan/storage/videx/ha_videx.cc:623
          #4 0x7f7df230ed63 in ha_videx::open(char const*, int, unsigned int) /data/bld/12.3-asan-ubsan/storage/videx/ha_videx.cc:541
          #5 0x55f311379c42 in handler::ha_open(TABLE*, char const*, int, unsigned int, st_mem_root*, List<String>*) /data/bld/12.3-asan-ubsan/sql/handler.cc:3930
          #6 0x55f31034abca in open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List<String>*) /data/bld/12.3-asan-ubsan/sql/table.cc:4710
          #7 0x55f30f7626ec in open_table(THD*, TABLE_LIST*, Open_table_context*) /data/bld/12.3-asan-ubsan/sql/sql_base.cc:2321
          #8 0x55f30f76915f in open_and_process_table /data/bld/12.3-asan-ubsan/sql/sql_base.cc:4264
          #9 0x55f30f76f5b3 in open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /data/bld/12.3-asan-ubsan/sql/sql_base.cc:4747
          #10 0x55f30f6ea730 in open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int) /data/bld/12.3-asan-ubsan/sql/sql_base.h:515
          #11 0x55f30fff3d02 in mysqld_show_create_get_fields(THD*, TABLE_LIST*, List<Item>*, String*) /data/bld/12.3-asan-ubsan/sql/sql_show.cc:1268
          #12 0x55f30fff59ce in mysqld_show_create(THD*, TABLE_LIST*) /data/bld/12.3-asan-ubsan/sql/sql_show.cc:1375
          #13 0x55f30fb87e97 in mysql_execute_command(THD*, bool) /data/bld/12.3-asan-ubsan/sql/sql_parse.cc:4420
          #14 0x55f30fba1fa5 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /data/bld/12.3-asan-ubsan/sql/sql_parse.cc:7944
          #15 0x55f30fbab05f in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /data/bld/12.3-asan-ubsan/sql/sql_parse.cc:1898
          #16 0x55f30fbb7b7c in do_command(THD*, bool) /data/bld/12.3-asan-ubsan/sql/sql_parse.cc:1432
          #17 0x55f3105705f7 in do_handle_one_connection(CONNECT*, bool) /data/bld/12.3-asan-ubsan/sql/sql_connect.cc:1503
          #18 0x55f310571760 in handle_one_connection /data/bld/12.3-asan-ubsan/sql/sql_connect.cc:1415
          #19 0x55f3124b3db6 in pfs_spawn_thread /data/bld/12.3-asan-ubsan/storage/perfschema/pfs.cc:2198
          #20 0x7f7e01aa81c3 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 5360 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e022b83b7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
          #1 0x7f7df25dfdbf  (/lib/x86_64-linux-gnu/libcurl.so.4+0x6cdbf)
       
      Indirect leak of 920 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e022b83b7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
          #1 0x7f7df25f1abc  (/lib/x86_64-linux-gnu/libcurl.so.4+0x7eabc)
       
      Indirect leak of 752 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e022b83b7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
          #1 0x7f7df25a61cc  (/lib/x86_64-linux-gnu/libcurl.so.4+0x331cc)
       
      Indirect leak of 424 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e022b83b7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
          #1 0x7f7df25be2a8  (/lib/x86_64-linux-gnu/libcurl.so.4+0x4b2a8)
       
      Indirect leak of 320 byte(s) in 2 object(s) allocated from:
          #0 0x7f7e022b89cf in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
          #1 0x7f7df25a2fa8  (/lib/x86_64-linux-gnu/libcurl.so.4+0x2ffa8)
       
      Indirect leak of 232 byte(s) in 9 object(s) allocated from:
          #0 0x7f7e0227077b in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:439
          #1 0x7f7df25cafb8  (/lib/x86_64-linux-gnu/libcurl.so.4+0x57fb8)
       
      Indirect leak of 96 byte(s) in 3 object(s) allocated from:
          #0 0x7f7e022b78d5 in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:85
          #1 0x7f7df2597760  (/lib/x86_64-linux-gnu/libcurl.so.4+0x24760)
       
      Indirect leak of 88 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e022b83b7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
          #1 0x7f7df25e14b9  (/lib/x86_64-linux-gnu/libcurl.so.4+0x6e4b9)
       
      Indirect leak of 74 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e022b83b7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
          #1 0x7f7df2591fa4  (/lib/x86_64-linux-gnu/libcurl.so.4+0x1efa4)
       
      Indirect leak of 63 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e022b89cf in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
          #1 0x7f7df25a2f2b  (/lib/x86_64-linux-gnu/libcurl.so.4+0x2ff2b)
       
      Indirect leak of 31 byte(s) in 4 object(s) allocated from:
          #0 0x7f7e022b89cf in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
          #1 0x7f7df25d78e7  (/lib/x86_64-linux-gnu/libcurl.so.4+0x648e7)
       
      Indirect leak of 31 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e0227077b in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:439
          #1 0x7f7df25d10c4 in curl_slist_append (/lib/x86_64-linux-gnu/libcurl.so.4+0x5e0c4)
       
      Indirect leak of 24 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e022b83b7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
          #1 0x7f7df25a41c4  (/lib/x86_64-linux-gnu/libcurl.so.4+0x311c4)
       
      Indirect leak of 16 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e022b89cf in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
          #1 0x7f7df25d1069  (/lib/x86_64-linux-gnu/libcurl.so.4+0x5e069)
       
      Indirect leak of 16 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e022b83b7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
          #1 0x7f7df2587446  (/lib/x86_64-linux-gnu/libcurl.so.4+0x14446)
       
      Indirect leak of 16 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e022b83b7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
          #1 0x7f7df2587446  (/lib/x86_64-linux-gnu/libcurl.so.4+0x14446)
          #2 0x7f7df2312fde in ha_videx::info_low(unsigned int, bool) /data/bld/12.3-asan-ubsan/storage/videx/ha_videx.cc:830
          #3 0x7f7df2315461 in ha_videx::info(unsigned int) /data/bld/12.3-asan-ubsan/storage/videx/ha_videx.cc:623
          #4 0x7f7df230ed63 in ha_videx::open(char const*, int, unsigned int) /data/bld/12.3-asan-ubsan/storage/videx/ha_videx.cc:541
          #5 0x55f311379c42 in handler::ha_open(TABLE*, char const*, int, unsigned int, st_mem_root*, List<String>*) /data/bld/12.3-asan-ubsan/sql/handler.cc:3930
          #6 0x55f31034abca in open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List<String>*) /data/bld/12.3-asan-ubsan/sql/table.cc:4710
          #7 0x55f30f7626ec in open_table(THD*, TABLE_LIST*, Open_table_context*) /data/bld/12.3-asan-ubsan/sql/sql_base.cc:2321
          #8 0x55f30f76915f in open_and_process_table /data/bld/12.3-asan-ubsan/sql/sql_base.cc:4264
          #9 0x55f30f76f5b3 in open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /data/bld/12.3-asan-ubsan/sql/sql_base.cc:4747
          #10 0x55f30f6ea730 in open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int) /data/bld/12.3-asan-ubsan/sql/sql_base.h:515
          #11 0x55f30fff3d02 in mysqld_show_create_get_fields(THD*, TABLE_LIST*, List<Item>*, String*) /data/bld/12.3-asan-ubsan/sql/sql_show.cc:1268
          #12 0x55f30fff59ce in mysqld_show_create(THD*, TABLE_LIST*) /data/bld/12.3-asan-ubsan/sql/sql_show.cc:1375
          #13 0x55f30fb87e97 in mysql_execute_command(THD*, bool) /data/bld/12.3-asan-ubsan/sql/sql_parse.cc:4420
          #14 0x55f30fba1fa5 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /data/bld/12.3-asan-ubsan/sql/sql_parse.cc:7944
          #15 0x55f30fbab05f in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /data/bld/12.3-asan-ubsan/sql/sql_parse.cc:1898
          #16 0x55f30fbb7b7c in do_command(THD*, bool) /data/bld/12.3-asan-ubsan/sql/sql_parse.cc:1432
          #17 0x55f3105705f7 in do_handle_one_connection(CONNECT*, bool) /data/bld/12.3-asan-ubsan/sql/sql_connect.cc:1503
          #18 0x55f310571760 in handle_one_connection /data/bld/12.3-asan-ubsan/sql/sql_connect.cc:1415
          #19 0x55f3124b3db6 in pfs_spawn_thread /data/bld/12.3-asan-ubsan/storage/perfschema/pfs.cc:2198
          #20 0x7f7e01aa81c3 in start_thread nptl/pthread_create.c:442
       
      Indirect leak of 5 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e0227077b in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:439
          #1 0x7f7df25e59af  (/lib/x86_64-linux-gnu/libcurl.so.4+0x729af)
       
      Indirect leak of 5 byte(s) in 1 object(s) allocated from:
          #0 0x7f7e0227077b in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:439
          #1 0x7f7df25e4bfd  (/lib/x86_64-linux-gnu/libcurl.so.4+0x71bfd)
       
      SUMMARY: AddressSanitizer: 13833 byte(s) leaked in 33 allocation(s).
      

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.