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

UBSAN: runtime error: applying non-zero offset 138116761973048 to null pointer (FederatedX)

Details

    Description

      Version: '10.6.22-MariaDB-log'  socket: '/build/mysql-test/var/tmp/5/mysqld.1.sock'  port: 19180  Source distribution
      /source/storage/federatedx/ha_federatedx.cc:1514:17: runtime error: applying non-zero offset 138383920120120 to null pointer
          #0 0x7bcc02ff03da in fill_server(st_mem_root*, st_fedrated_server*, st_federatedx_share*, charset_info_st const*) /source/storage/federatedx/ha_federatedx.cc:1514:17
          #1 0x7bcc02fedfe4 in get_server(st_federatedx_share*, TABLE*) /source/storage/federatedx/ha_federatedx.cc:1555:3
          #2 0x7bcc02febe1a in ha_federatedx::create(char const*, TABLE*, HA_CREATE_INFO*) /source/storage/federatedx/ha_federatedx.cc:3421:16
          #3 0x558179cd90e5 in handler::ha_create(char const*, TABLE*, HA_CREATE_INFO*) /source/sql/handler.cc:5609:14
          #4 0x558179cdedca in ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*, bool) /source/sql/handler.cc:6078:22
          #5 0x55817946b2ae in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /source/sql/sql_table.cc:4620:11
          #6 0x55817946924c in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /source/sql/sql_table.cc:4720:8
          #7 0x55817946d7d0 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /source/sql/sql_table.cc:4959:7
          #8 0x5581794bb606 in Sql_cmd_create_table_like::execute(THD*) /source/sql/sql_table.cc:12486:12
          #9 0x558179144e48 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:6167:26
          #10 0x55817912aab6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:8209:18
          #11 0x558179122d5b in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1908:7
          #12 0x55817912ca1b in do_command(THD*, bool) /source/sql/sql_parse.cc:1421:17
          #13 0x5581796ac94c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1386:11
          #14 0x5581796ac2d2 in handle_one_connection /source/sql/sql_connect.cc:1298:5
          #15 0x558178ce0476 in asan_thread_start(void*) asan_interceptors.cpp.o
          #16 0x7fcc056bf1c3  (/lib/x86_64-linux-gnu/libc.so.6+0x891c3) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
          #17 0x7fcc0573f85b  (/lib/x86_64-linux-gnu/libc.so.6+0x10985b) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
       
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /source/storage/federatedx/ha_federatedx.cc:1514:17 
      

      X variant in mtr tests:

      federated.error_on_close-8313 'old'      w4 [ pass ]   1464
      federated.error_on_close-8313 'X'        w5 [ fail ]  Found warnings/errors in server log file!
              Test ended at 2025-03-21 02:55:38
      line
      /source/storage/federatedx/ha_federatedx.cc:1514:17: runtime error: applying non-zero offset 137577953164600 to null pointer
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /source/storage/federatedx/ha_federatedx.cc:1514:17 
      ^ Found warnings in /build/mysql-test/var/5/log/mysqld.1.err
      ok
       
       - saving '/build/mysql-test/var/5/log/federated.error_on_close-8313-X/' to '/build/mysql-test/var/log/federated.error_on_close-8313-X/'
      federated.federated 'old'                w4 [ pass ]     11
      federated.federated_bug_13118 'old'      w4 [ pass ]     21
      federated.optimizer 'X'                  w7 [ fail ]  Found warnings/errors in server log file!
              Test ended at 2025-03-21 02:55:39
      line
      /source/storage/federatedx/ha_federatedx.cc:1514:17: runtime error: applying non-zero offset 138116761973048 to null pointer
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /source/storage/federatedx/ha_federatedx.cc:1514:17 
      ^ Found warnings in /build/mysql-test/var/7/log/mysqld.1.err
      ok
       
       - saving '/build/mysql-test/var/7/log/federated.optimizer-X/' to '/build/mysql-test/var/log/federated.optimizer-X/'
      multi_source.multi_parallel              w2 [ pass ]    679
      federated.federated_bug_25714 'old'      w4 [ pass ]    123
      federated.federated 'X'                  w5 [ fail ]  Found warnings/errors in server log file!
      

      Attachments

        Issue Links

          Activity

            There are no comments yet on this issue.

            People

              Unassigned Unassigned
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.