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

UBSAN error: load of value 2779096485, which is not a valid value for type enum_binlog_format

    XMLWordPrintable

Details

    Description

      Compile with UBSan like it is described in MDEV-21341.

      Run pretty much any test like so:

      UBSAN_OPTIONS=print_stacktrace=1 ./mtr alias
      

      and observe the error:

      /home/psergey/dev-git2/10.5/sql/sql_class.h:4169:24: runtime error: load of value 2779096485, which is not a valid value for type 'enum_binlog_format'
          #0 0x56245d5aa9bd in THD::set_current_stmt_binlog_format_stmt() /home/psergey/dev-git2/10.5/sql/sql_class.h:4169
          #1 0x56245d6c5842 in THD::reset_current_stmt_binlog_format_row() /home/psergey/dev-git2/10.5/sql/sql_class.h:4208
          #2 0x56245d66142c in THD::init() /home/psergey/dev-git2/10.5/sql/sql_class.cc:1286
          #3 0x56245d65a27b in THD::THD(unsigned long long, bool) /home/psergey/dev-git2/10.5/sql/sql_class.cc:841
          #4 0x56245d8bc5c4 in plugin_load /home/psergey/dev-git2/10.5/sql/sql_plugin.cc:1813
          #5 0x56245d8bc14d in plugin_init(int*, char**, int) /home/psergey/dev-git2/10.5/sql/sql_plugin.cc:1746
          #6 0x56245d3d293a in init_server_components /home/psergey/dev-git2/10.5/sql/mysqld.cc:5008
          #7 0x56245d3d4350 in mysqld_main(int, char**) /home/psergey/dev-git2/10.5/sql/mysqld.cc:5536
          #8 0x56245d3c13b9 in main /home/psergey/dev-git2/10.5/sql/main.cc:25
          #9 0x7f50b7c72b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
          #10 0x56245d3c12b9 in _start (/optane/dev-git2/10.5/sql/mysqld+0x32572b9)
      

      Attachments

        Issue Links

          Activity

            People

              sachin.setiya.007 Sachin Setiya (Inactive)
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.