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

UBSAN: Index_statistics - runtime error: -nan is outside the range of representable values of type 'unsigned long long'

Details

    Description

      10.6 - main.update_innodb test

      CURRENT_TEST: main.update_innodb
      /source/sql/sql_statistics.h:482:35: runtime error: -nan is outside the range of representable values of type 'unsigned long long'
          #0 0x557ebdd41d4a in Index_statistics::set_avg_frequency(unsigned int, double) /source/sql/sql_statistics.h:482:35
          #1 0x557ebdd41d4a in read_statistics_for_table(THD*, TABLE*, TABLE_LIST*, bool, bool) /source/sql/sql_statistics.cc:3031:24
          #2 0x557ebdd41d4a in read_statistics_for_tables(THD*, TABLE_LIST*, bool) /source/sql/sql_statistics.cc:3236:23
          #3 0x557ebde63154 in mysql_multi_update_prepare(THD*) /source/sql/sql_update.cc:1939:10
          #4 0x557ebda6d777 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:4520:10
          #5 0x557ebda4dab6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:8209:18
          #6 0x557ebda45d5b in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1908:7
          #7 0x557ebda4fa1b in do_command(THD*, bool) /source/sql/sql_parse.cc:1421:17
          #8 0x557ebdfcf94c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1386:11
          #9 0x557ebdfcf2d2 in handle_one_connection /source/sql/sql_connect.cc:1298:5
          #10 0x557ebd603476 in asan_thread_start(void*) asan_interceptors.cpp.o
          #11 0x7f46877e61c3  (/lib/x86_64-linux-gnu/libc.so.6+0x891c3) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
          #12 0x7f468786685b  (/lib/x86_64-linux-gnu/libc.so.6+0x10985b) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
      

      Attachments

        Issue Links

          Activity

            danblack Daniel Black created issue -
            danblack Daniel Black made changes -
            Field Original Value New Value
            Roel Roel Van de Paar made changes -
            Labels UBSAN beginner-friendly UBSAN beginner-friendly float-cast-overflow
            Roel Roel Van de Paar made changes -
            Environment clang-20.1 clang-20.1 or clang-18.1
            Roel Roel Van de Paar made changes -
            Status Open [ 1 ] Confirmed [ 10101 ]
            Roel Roel Van de Paar made changes -
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.11 [ 27614 ]
            Fix Version/s 11.4 [ 29301 ]
            Fix Version/s 11.8 [ 29921 ]
            Affects Version/s 10.5 [ 23123 ]
            Affects Version/s 10.6 [ 24028 ]
            Affects Version/s 10.11 [ 27614 ]
            Affects Version/s 11.4 [ 29301 ]
            Affects Version/s 11.8 [ 29921 ]
            Affects Version/s 12.0 [ 29945 ]
            Affects Version/s 10.6.21 [ 29953 ]
            Description
            {noformat:title=10.6 - main.update_innodb test}
            CURRENT_TEST: main.update_innodb
            /source/sql/sql_statistics.h:482:35: runtime error: -nan is outside the range of representable values of type 'unsigned long long'
                #0 0x557ebdd41d4a in Index_statistics::set_avg_frequency(unsigned int, double) /source/sql/sql_statistics.h:482:35
                #1 0x557ebdd41d4a in read_statistics_for_table(THD*, TABLE*, TABLE_LIST*, bool, bool) /source/sql/sql_statistics.cc:3031:24
                #2 0x557ebdd41d4a in read_statistics_for_tables(THD*, TABLE_LIST*, bool) /source/sql/sql_statistics.cc:3236:23
                #3 0x557ebde63154 in mysql_multi_update_prepare(THD*) /source/sql/sql_update.cc:1939:10
                #4 0x557ebda6d777 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:4520:10
                #5 0x557ebda4dab6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:8209:18
                #6 0x557ebda45d5b in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1908:7
                #7 0x557ebda4fa1b in do_command(THD*, bool) /source/sql/sql_parse.cc:1421:17
                #8 0x557ebdfcf94c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1386:11
                #9 0x557ebdfcf2d2 in handle_one_connection /source/sql/sql_connect.cc:1298:5
                #10 0x557ebd603476 in asan_thread_start(void*) asan_interceptors.cpp.o
                #11 0x7f46877e61c3 (/lib/x86_64-linux-gnu/libc.so.6+0x891c3) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
                #12 0x7f468786685b (/lib/x86_64-linux-gnu/libc.so.6+0x10985b) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
            {noformat}
            {noformat:title=10.6 - main.update_innodb test}
            CURRENT_TEST: main.update_innodb
            /source/sql/sql_statistics.h:482:35: runtime error: -nan is outside the range of representable values of type 'unsigned long long'
                #0 0x557ebdd41d4a in Index_statistics::set_avg_frequency(unsigned int, double) /source/sql/sql_statistics.h:482:35
                #1 0x557ebdd41d4a in read_statistics_for_table(THD*, TABLE*, TABLE_LIST*, bool, bool) /source/sql/sql_statistics.cc:3031:24
                #2 0x557ebdd41d4a in read_statistics_for_tables(THD*, TABLE_LIST*, bool) /source/sql/sql_statistics.cc:3236:23
                #3 0x557ebde63154 in mysql_multi_update_prepare(THD*) /source/sql/sql_update.cc:1939:10
                #4 0x557ebda6d777 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:4520:10
                #5 0x557ebda4dab6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:8209:18
                #6 0x557ebda45d5b in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1908:7
                #7 0x557ebda4fa1b in do_command(THD*, bool) /source/sql/sql_parse.cc:1421:17
                #8 0x557ebdfcf94c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1386:11
                #9 0x557ebdfcf2d2 in handle_one_connection /source/sql/sql_connect.cc:1298:5
                #10 0x557ebd603476 in asan_thread_start(void*) asan_interceptors.cpp.o
                #11 0x7f46877e61c3 (/lib/x86_64-linux-gnu/libc.so.6+0x891c3) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
                #12 0x7f468786685b (/lib/x86_64-linux-gnu/libc.so.6+0x10985b) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
            {noformat}
            Roel Roel Van de Paar made changes -

            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.