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

sql/sql_show.cc:9154:52: runtime error: load of value 885455934, which is not a valid value for type 'enum enum_schema_tables'

Details

    Description

      main.gis test - 11.4-3bbe11acd93ad63ed1d90656e11a665d6326996f

      /source/sql/sql_show.cc:9154:52: runtime error: load of value 885455934, which is not a valid value for type 'enum enum_schema_tables'
          #0 0x561f243d3840 in optimize_for_get_all_tables(THD*, TABLE_LIST*, Item*) /source/sql/sql_show.cc:9154:52
          #1 0x561f243d3840 in optimize_schema_tables_reads(JOIN*) /source/sql/sql_show.cc:9322:11
          #2 0x561f242171be in JOIN::optimize_stage2() /source/sql/sql_select.cc:3287:8
          #3 0x561f2421df55 in JOIN::optimize_inner() /source/sql/sql_select.cc:2734:9
          #4 0x561f24211a5b in JOIN::optimize() /source/sql/sql_select.cc:2003:10
          #5 0x561f241f64bc 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:5354:19
          #6 0x561f241f5073 in handle_select(THD*, LEX*, select_result*, unsigned long long) /source/sql/sql_select.cc:642:10
          #7 0x561f240fb6ce in execute_sqlcom_select(THD*, TABLE_LIST*) /source/sql/sql_parse.cc:6183:12
          #8 0x561f240dfe45 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:3975:12
          #9 0x561f240c4136 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:7907:18
          #10 0x561f240bc359 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1904:7
          #11 0x561f240c609b in do_command(THD*, bool) /source/sql/sql_parse.cc:1417:17
          #12 0x561f246ad92c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1408:11
          #13 0x561f246ad2b2 in handle_one_connection /source/sql/sql_connect.cc:1320:5
          #14 0x561f23b9ed76 in asan_thread_start(void*) asan_interceptors.cpp.o
          #15 0x7f2c59fe81c3  (/lib/x86_64-linux-gnu/libc.so.6+0x891c3) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
          #16 0x7f2c5a06885b  (/lib/x86_64-linux-gnu/libc.so.6+0x10985b) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
       
      SUMMARY: UndefinedBehaviorSanitizer: invalid-enum-load /source/sql/sql_show.cc:9154:52 
      /source/sql/sql_show.cc:5447:8: runtime error: load of value 885455934, which is not a valid value for type 'enum enum_schema_tables'
          #0 0x561f243a6b86 in get_all_tables(THD*, TABLE_LIST*, Item*) /source/sql/sql_show.cc:5447:8
          #1 0x561f243d49c3 in get_schema_tables_result(JOIN*, enum_schema_table_state) /source/sql/sql_show.cc:9445:11
          #2 0x561f24271913 in JOIN::exec_inner() /source/sql/sql_select.cc:5016:7
          #3 0x561f2426ee1b in JOIN::exec() /source/sql/sql_select.cc:4838:8
          #4 0x561f241f672f 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:5368:21
          #5 0x561f241f5073 in handle_select(THD*, LEX*, select_result*, unsigned long long) /source/sql/sql_select.cc:642:10
          #6 0x561f240fb6ce in execute_sqlcom_select(THD*, TABLE_LIST*) /source/sql/sql_parse.cc:6183:12
          #7 0x561f240dfe45 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:3975:12
          #8 0x561f240c4136 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:7907:18
          #9 0x561f240bc359 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1904:7
          #10 0x561f240c609b in do_command(THD*, bool) /source/sql/sql_parse.cc:1417:17
          #11 0x561f246ad92c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1408:11
          #12 0x561f246ad2b2 in handle_one_connection /source/sql/sql_connect.cc:1320:5
          #13 0x561f23b9ed76 in asan_thread_start(void*) asan_interceptors.cpp.o
          #14 0x7f2c59fe81c3  (/lib/x86_64-linux-gnu/libc.so.6+0x891c3) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
          #15 0x7f2c5a06885b  (/lib/x86_64-linux-gnu/libc.so.6+0x10985b) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
       
      SUMMARY: UndefinedBehaviorSanitizer: invalid-enum-load /source/sql/sql_show.cc:5447:8 
      /source/sql/sql_show.cc:5447:42: runtime error: load of value 885455934, which is not a valid value for type 'enum enum_schema_tables'
          #0 0x561f243a6b95 in get_all_tables(THD*, TABLE_LIST*, Item*) /source/sql/sql_show.cc:5447:42
          #1 0x561f243d49c3 in get_schema_tables_result(JOIN*, enum_schema_table_state) /source/sql/sql_show.cc:9445:11
          #2 0x561f24271913 in JOIN::exec_inner() /source/sql/sql_select.cc:5016:7
          #3 0x561f2426ee1b in JOIN::exec() /source/sql/sql_select.cc:4838:8
          #4 0x561f241f672f 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:5368:21
          #5 0x561f241f5073 in handle_select(THD*, LEX*, select_result*, unsigned long long) /source/sql/sql_select.cc:642:10
          #6 0x561f240fb6ce in execute_sqlcom_select(THD*, TABLE_LIST*) /source/sql/sql_parse.cc:6183:12
          #7 0x561f240dfe45 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:3975:12
          #8 0x561f240c4136 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:7907:18
          #9 0x561f240bc359 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1904:7
          #10 0x561f240c609b in do_command(THD*, bool) /source/sql/sql_parse.cc:1417:17
          #11 0x561f246ad92c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1408:11
          #12 0x561f246ad2b2 in handle_one_connection /source/sql/sql_connect.cc:1320:5
          #13 0x561f23b9ed76 in asan_thread_start(void*) asan_interceptors.cpp.o
          #14 0x7f2c59fe81c3  (/lib/x86_64-linux-gnu/libc.so.6+0x891c3) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
          #15 0x7f2c5a06885b  (/lib/x86_64-linux-gnu/libc.so.6+0x10985b) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
       
      SUMMARY: UndefinedBehaviorSanitizer: invalid-enum-load /source/sql/sql_show.cc:5447:42 
      /source/sql/sql_show.cc:5555:15: runtime error: load of value 885455934, which is not a valid value for type 'enum enum_schema_tables'
          #0 0x561f243a505e in get_all_tables(THD*, TABLE_LIST*, Item*) /source/sql/sql_show.cc:5555:15
          #1 0x561f243d49c3 in get_schema_tables_result(JOIN*, enum_schema_table_state) /source/sql/sql_show.cc:9445:11
          #2 0x561f24271913 in JOIN::exec_inner() /source/sql/sql_select.cc:5016:7
          #3 0x561f2426ee1b in JOIN::exec() /source/sql/sql_select.cc:4838:8
          #4 0x561f241f672f 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:5368:21
          #5 0x561f241f5073 in handle_select(THD*, LEX*, select_result*, unsigned long long) /source/sql/sql_select.cc:642:10
          #6 0x561f240fb6ce in execute_sqlcom_select(THD*, TABLE_LIST*) /source/sql/sql_parse.cc:6183:12
          #7 0x561f240dfe45 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:3975:12
          #8 0x561f240c4136 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:7907:18
          #9 0x561f240bc359 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1904:7
          #10 0x561f240c609b in do_command(THD*, bool) /source/sql/sql_parse.cc:1417:17
          #11 0x561f246ad92c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1408:11
          #12 0x561f246ad2b2 in handle_one_connection /source/sql/sql_connect.cc:1320:5
          #13 0x561f23b9ed76 in asan_thread_start(void*) asan_interceptors.cpp.o
          #14 0x7f2c59fe81c3  (/lib/x86_64-linux-gnu/libc.so.6+0x891c3) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
          #15 0x7f2c5a06885b  (/lib/x86_64-linux-gnu/libc.so.6+0x10985b) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
       
      SUMMARY: UndefinedBehaviorSanitizer: invalid-enum-load /source/sql/sql_show.cc:5555:15 
      /source/sql/sql_show.cc:5560:20: runtime error: load of value 885455934, which is not a valid value for type 'enum enum_schema_tables'
          #0 0x561f243a506d in get_all_tables(THD*, TABLE_LIST*, Item*) /source/sql/sql_show.cc:5560:20
          #1 0x561f243d49c3 in get_schema_tables_result(JOIN*, enum_schema_table_state) /source/sql/sql_show.cc:9445:11
          #2 0x561f24271913 in JOIN::exec_inner() /source/sql/sql_select.cc:5016:7
          #3 0x561f2426ee1b in JOIN::exec() /source/sql/sql_select.cc:4838:8
          #4 0x561f241f672f 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:5368:21
          #5 0x561f241f5073 in handle_select(THD*, LEX*, select_result*, unsigned long long) /source/sql/sql_select.cc:642:10
          #6 0x561f240fb6ce in execute_sqlcom_select(THD*, TABLE_LIST*) /source/sql/sql_parse.cc:6183:12
          #7 0x561f240dfe45 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:3975:12
          #8 0x561f240c4136 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:7907:18
          #9 0x561f240bc359 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1904:7
          #10 0x561f240c609b in do_command(THD*, bool) /source/sql/sql_parse.cc:1417:17
          #11 0x561f246ad92c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1408:11
          #12 0x561f246ad2b2 in handle_one_connection /source/sql/sql_connect.cc:1320:5
          #13 0x561f23b9ed76 in asan_thread_start(void*) asan_interceptors.cpp.o
          #14 0x7f2c59fe81c3  (/lib/x86_64-linux-gnu/libc.so.6+0x891c3) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
          #15 0x7f2c5a06885b  (/lib/x86_64-linux-gnu/libc.so.6+0x10985b) (BuildId: c047672cae7964324658491e7dee26748ae5d2f8)
       
      SUMMARY: UndefinedBehaviorSanitizer: invalid-enum-load /source/sql/sql_show.cc:5560:20 
      2025-03-25  6:16:49 0 [Note] /build/sql/mariadbd (initiated by: unknown): Normal shutdown
      2025-03-25  6:16:49 0 [Note] /build/sql/mariadbd: Shutdown complete
      

      Attachments

        Issue Links

          Activity

            There are no comments yet on this issue.

            People

              danblack Daniel Black
              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.