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

UBSAN: lifo buffer (optimizer) - runtime error: applying non-zero offset 12 to null pointer

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6
    • 10.6
    • Optimizer
    • clang-20.1

    Description

      10.6.22

      CURRENT_TEST: main.index_intersect_innodb
      /source/sql/sql_lifo_buffer.h:177:17: runtime error: applying non-zero offset 12 to null pointer
          #0 0x55b8b4b88c1b in Forward_lifo_buffer::have_space_for(unsigned long) /source/sql/sql_lifo_buffer.h:177:17
          #1 0x55b8b4b80797 in DsMrr_impl::dsmrr_init(handler*, st_range_seq_if*, void*, unsigned int, unsigned int, st_handler_buffer*) /source/sql/multi_range_read
      .cc:1200:25
          #2 0x55b8b5d5ae89 in ha_innobase::multi_range_read_init(st_range_seq_if*, void*, unsigned int, unsigned int, st_handler_buffer*) /source/storage/innobase/h
      andler/ha_innodb.cc:20149:18
          #3 0x55b8b57374e0 in QUICK_RANGE_SELECT::reset() /source/sql/opt_range.cc:12841:16
          #4 0x55b8b572eff3 in read_keys_and_merge_scans(THD*, TABLE*, List<QUICK_RANGE_SELECT>, QUICK_RANGE_SELECT*, READ_RECORD*, bool, Bitmap<64u>*, Unique**) /so
      urce/sql/opt_range.cc:12395:39
          #5 0x55b8b573183f in QUICK_INDEX_INTERSECT_SELECT::read_keys_and_merge() /source/sql/opt_range.cc:12539:11
          #6 0x55b8b4659d2d in join_init_read_record(st_join_table*) /source/sql/sql_select.cc:23390:64
          #7 0x55b8b45e6cf6 in sub_select(JOIN*, st_join_table*, bool) /source/sql/sql_select.cc:22388:12
          #8 0x55b8b4664752 in do_select(JOIN*, Procedure*) /source/sql/sql_select.cc:21914:14
          #9 0x55b8b46623b4 in JOIN::exec_inner() /source/sql/sql_select.cc:4939:50
          #10 0x55b8b465f2eb in JOIN::exec() /source/sql/sql_select.cc:4717:3
          #11 0x55b8b45e9f34 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*) /source/sql/sql_select.cc:5196:9
          #12 0x55b8b45e9183 in handle_select(THD*, LEX*, select_result*, unsigned long) /source/sql/sql_select.cc:573:10
          #13 0x55b8b453598c in execute_sqlcom_select(THD*, TABLE_LIST*) /source/sql/sql_parse.cc:6422:12
          #14 0x55b8b45160c1 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:4013:12
          #15 0x55b8b44fbab6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:8209:18
          #16 0x55b8b44f3d5b in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1908:7
          #17 0x55b8b44fda1b in do_command(THD*, bool) /source/sql/sql_parse.cc:1421:17
          #18 0x55b8b4a7d94c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1386:11
          #19 0x55b8b4a7d2d2 in handle_one_connection /source/sql/sql_connect.cc:1298:5
          #20 0x55b8b40b1476 in asan_thread_start(void*) asan_interceptors.cpp.o
          #21 0x7ff458d351c3  (/lib/x86_64-linux-gnu/libc.so.6+0x891c3) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
          #22 0x7ff458db585b  (/lib/x86_64-linux-gnu/libc.so.6+0x10985b) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
       
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /source/sql/sql_lifo_buffer.h:177:17 
      

      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:
              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.