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

Item_func_eq::val_bool is doing a string comparison

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Incomplete
    • 11.8
    • N/A
    • Data types
    • None

    Description

      11.8 - binlog.binlog_gtid_index

      Version: '11.8.1-MariaDB-log'  socket: '/build/mysql-test/var/tmp/3/mysqld.1.sock'  port: 19180  Source distribution
      /source/sql/sql_string.cc:846:28: runtime error: null pointer passed as argument 1, which is declared to never be null
      /source/include/m_ctype.h:1104:33: note: nonnull attribute specified here
          #0 0x55b5f3d05a4e in sortcmp(Binary_string const*, Binary_string const*, charset_info_st const*) /source/sql/sql_string.cc:846:13
          #1 0x55b5f478a977 in Arg_comparator::compare() /source/sql/item_cmpfunc.h:114:33
          #2 0x55b5f478a977 in Item_func_eq::val_bool() /source/sql/item_cmpfunc.cc:1912:18
          #3 0x55b5f3574873 in Item_bool_func::val_int() /source/sql/item_cmpfunc.h:245:12
          #4 0x55b5f4264b8f in Type_handler::Item_send_long(Item*, Protocol*, st_value*) const /source/sql/sql_type.cc:7697:22
          #5 0x55b5f35ae092 in Protocol::send_result_set_row(List<Item>*) /source/sql/protocol.cc:1353:15
          #6 0x55b5f37be607 in select_send::send_data(List<Item>&) /source/sql/sql_class.cc:3294:17
          #7 0x55b5f3b36363 in JOIN::exec_inner() /source/sql/sql_select.cc:4930:22
          #8 0x55b5f3b345fb in JOIN::exec() /source/sql/sql_select.cc:4842:8
          #9 0x55b5f3abbd83 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:5375:21
          #10 0x55b5f3aba453 in handle_select(THD*, LEX*, select_result*, unsigned long long) /source/sql/sql_select.cc:633:10
          #11 0x55b5f39c0e0e in execute_sqlcom_select(THD*, TABLE_LIST*) /source/sql/sql_parse.cc:6191:12
          #12 0x55b5f39a53aa in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:3979:12
          #13 0x55b5f3989b06 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:7915:18
          #14 0x55b5f3981da6 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1902:7
          #15 0x55b5f398ba6b in do_command(THD*, bool) /source/sql/sql_parse.cc:1415:17
          #16 0x55b5f3f8097c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1415:11
          #17 0x55b5f3f802fe in handle_one_connection /source/sql/sql_connect.cc:1327:5
          #18 0x55b5f3451586 in asan_thread_start(void*) asan_interceptors.cpp.o
          #19 0x7faac345c1f4  (/lib/x86_64-linux-gnu/libc.so.6+0x891f4) (BuildId: 79005c16293efa45b441fed45f4f29b138557e9e)
          #20 0x7faac34dc89b  (/lib/x86_64-linux-gnu/libc.so.6+0x10989b) (BuildId: 79005c16293efa45b441fed45f4f29b138557e9e)
       
       
      SUMMARY: UndefinedBehaviorSanitizer: invalid-null-argument /source/sql/sql_string.cc:846:28 
      2025-04-09  8:36:19 5 [Note] Error reading binlog GTID index, will fallback to slower sequential binlog scan. Error is: Corrupt page, invalid checksum
      2025-04-09  8:36:19 5 [Note] Error reading binlog GTID index, will fallback to slower sequential binlog scan. Error is: Corrupt page, invalid checksum
      2025-04-09  8:36:19 0 [Note] /build/sql/mariadbd (initiated by: unknown): Normal shutdown
      2025-04-09  8:36:19 0 [Note] /build/sql/mariadbd: Shutdown complete
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.