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

UBSAN: runtime error: inf is outside the range of representable values of type 'unsigned long long'

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6.21
    • 10.6
    • Optimizer

    Description

      CURRENT_TEST: main.select
      /source/sql/sql_select.cc:31065:33: runtime error: inf is outside the range of representable values of type 'unsigned long long'
          #0 0x55f4d34f0f98 in test_if_cheaper_ordering(bool, st_join_table const*, st_order*, TABLE*, Bitmap<64u>, int, unsigned long long, int*, int*, unsigned lon
      g long*, double*, unsigned int*, unsigned int*) /source/sql/sql_select.cc:31065:33
          #1 0x55f4d3498ee2 in test_if_skip_sort_order(st_join_table*, st_order*, unsigned long long, bool, Bitmap<64u> const*, bool*) /source/sql/sql_select.cc:2556
      4:5
          #2 0x55f4d346ce6f in JOIN::optimize_stage2() /source/sql/sql_select.cc:3334:15
          #3 0x55f4d3472aa5 in JOIN::optimize_inner() /source/sql/sql_select.cc:2639:9
          #4 0x55f4d3466367 in JOIN::optimize() /source/sql/sql_select.cc:1927:10
          #5 0x55f4d344acdc in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_r
      esult*, st_select_lex_unit*, st_select_lex*) /source/sql/sql_select.cc:5182:19
          #6 0x55f4d344a183 in handle_select(THD*, LEX*, select_result*, unsigned long) /source/sql/sql_select.cc:573:10
          #7 0x55f4d339698c in execute_sqlcom_select(THD*, TABLE_LIST*) /source/sql/sql_parse.cc:6422:12
          #8 0x55f4d33770c1 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:4013:12
          #9 0x55f4d335cab6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:8209:18
          #10 0x55f4d3354d5b in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1908:7
          #11 0x55f4d335ea1b in do_command(THD*, bool) /source/sql/sql_parse.cc:1421:17
          #12 0x55f4d38de94c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1386:11
          #13 0x55f4d38de2d2 in handle_one_connection /source/sql/sql_connect.cc:1298:5
          #14 0x55f4d2f12476 in asan_thread_start(void*) asan_interceptors.cpp.o
          #15 0x7f4d0013d1c3  (/lib/x86_64-linux-gnu/libc.so.6+0x891c3) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
          #16 0x7f4d001bd85b  (/lib/x86_64-linux-gnu/libc.so.6+0x10985b) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
       
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /source/sql/sql_select.cc:31065:33 
      

      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.