Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
10.7.1, 10.7(EOL), 10.8(EOL)
Description
export UBSAN_OPTIONS=print_stacktrace=1 |
rm -Rf /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data |
/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/scripts/mariadb-install-db --no-defaults --force --auth-root-authentication-method=normal --basedir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg --datadir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data |
Leads to:
10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Optimized) |
/test/10.8_opt_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'
|
#0 0x55c3771098f8 in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_opt_san/sql/ddl_log.cc:2548
|
#1 0x55c377110862 in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_opt_san/sql/ddl_log.h:271
|
#2 0x55c377110862 in ddl_log_write /test/10.8_opt_san/sql/ddl_log.cc:3044
|
#3 0x55c377118669 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_opt_san/sql/ddl_log.cc:3328
|
#4 0x55c37701e621 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_opt_san/sql/sql_table.cc:4539
|
#5 0x55c377022451 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_opt_san/sql/sql_table.cc:4666
|
#6 0x55c3770238b5 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_opt_san/sql/sql_table.cc:4778
|
#7 0x55c377045dea in Sql_cmd_create_table_like::execute(THD*) /test/10.8_opt_san/sql/sql_table.cc:11909
|
#8 0x55c376aa2826 in mysql_execute_command(THD*, bool) /test/10.8_opt_san/sql/sql_parse.cc:5989
|
#9 0x55c376a28e28 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_opt_san/sql/sql_parse.cc:8028
|
#10 0x55c376a7740e in bootstrap(st_mysql_file*) /test/10.8_opt_san/sql/sql_parse.cc:1081
|
#11 0x55c376269cb3 in mysqld_main(int, char**) /test/10.8_opt_san/sql/mysqld.cc:5782
|
#12 0x14f7b3ddd0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
|
#13 0x55c37611252d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-opt/bin/mariadbd+0x7d4952d)
|
10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Debug) |
/test/10.8_dbg_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'
|
#0 0x5562e831d31d in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.cc:2548
|
#1 0x5562e832179a in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.h:271
|
#2 0x5562e832179a in ddl_log_write /test/10.8_dbg_san/sql/ddl_log.cc:3044
|
#3 0x5562e83262d4 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_dbg_san/sql/ddl_log.cc:3328
|
#4 0x5562e8222ea6 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_dbg_san/sql/sql_table.cc:4539
|
#5 0x5562e8225ce8 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_dbg_san/sql/sql_table.cc:4666
|
#6 0x5562e8227b7a in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_dbg_san/sql/sql_table.cc:4778
|
#7 0x5562e8233e25 in Sql_cmd_create_table_like::execute(THD*) /test/10.8_dbg_san/sql/sql_table.cc:11909
|
#8 0x5562e7b66788 in mysql_execute_command(THD*, bool) /test/10.8_dbg_san/sql/sql_parse.cc:5989
|
#9 0x5562e7aa19f6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_dbg_san/sql/sql_parse.cc:8028
|
#10 0x5562e7b06311 in bootstrap(st_mysql_file*) /test/10.8_dbg_san/sql/sql_parse.cc:1081
|
#11 0x5562e713c8b0 in mysqld_main(int, char**) /test/10.8_dbg_san/sql/mysqld.cc:5782
|
#12 0x5562e7107b7a in main /test/10.8_dbg_san/sql/main.cc:34
|
#13 0x149f2cf210b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
|
#14 0x5562e6fdb57d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/bin/mariadbd+0x825157d)
|
Attachments
Issue Links
- is duplicated by
-
MDEV-27084 ddl_log_write_execute_entry: zero stored instead of cond_entry actual value
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
{code:bash}
rm -Rf /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/scripts/mariadb-install-db --no-defaults --force --auth-root-authentication-method=normal ${MYEXTRA_OPT} --basedir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg --datadir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data {code} Leads to: {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Debug)} /test/10.8_dbg_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' {noformat} |
{code:bash}
export UBSAN_OPTIONS=print_stacktrace=1 rm -Rf /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/scripts/mariadb-install-db --no-defaults --force --auth-root-authentication-method=normal ${MYEXTRA_OPT} --basedir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg --datadir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data {code} Leads to: {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Debug)} /test/10.8_dbg_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #0 0x5562e831d31d in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.cc:2548 #1 0x5562e832179a in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.h:271 #2 0x5562e832179a in ddl_log_write /test/10.8_dbg_san/sql/ddl_log.cc:3044 #3 0x5562e83262d4 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_dbg_san/sql/ddl_log.cc:3328 #4 0x5562e8222ea6 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_dbg_san/sql/sql_table.cc:4539 #5 0x5562e8225ce8 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_dbg_san/sql/sql_table.cc:4666 #6 0x5562e8227b7a in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_dbg_san/sql/sql_table.cc:4778 #7 0x5562e8233e25 in Sql_cmd_create_table_like::execute(THD*) /test/10.8_dbg_san/sql/sql_table.cc:11909 #8 0x5562e7b66788 in mysql_execute_command(THD*, bool) /test/10.8_dbg_san/sql/sql_parse.cc:5989 #9 0x5562e7aa19f6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_dbg_san/sql/sql_parse.cc:8028 #10 0x5562e7b06311 in bootstrap(st_mysql_file*) /test/10.8_dbg_san/sql/sql_parse.cc:1081 #11 0x5562e713c8b0 in mysqld_main(int, char**) /test/10.8_dbg_san/sql/mysqld.cc:5782 #12 0x5562e7107b7a in main /test/10.8_dbg_san/sql/main.cc:34 #13 0x149f2cf210b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #14 0x5562e6fdb57d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/bin/mariadbd+0x825157d) {noformat} |
Affects Version/s | 10.7 [ 24805 ] |
Description |
{code:bash}
export UBSAN_OPTIONS=print_stacktrace=1 rm -Rf /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/scripts/mariadb-install-db --no-defaults --force --auth-root-authentication-method=normal ${MYEXTRA_OPT} --basedir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg --datadir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data {code} Leads to: {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Debug)} /test/10.8_dbg_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #0 0x5562e831d31d in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.cc:2548 #1 0x5562e832179a in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.h:271 #2 0x5562e832179a in ddl_log_write /test/10.8_dbg_san/sql/ddl_log.cc:3044 #3 0x5562e83262d4 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_dbg_san/sql/ddl_log.cc:3328 #4 0x5562e8222ea6 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_dbg_san/sql/sql_table.cc:4539 #5 0x5562e8225ce8 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_dbg_san/sql/sql_table.cc:4666 #6 0x5562e8227b7a in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_dbg_san/sql/sql_table.cc:4778 #7 0x5562e8233e25 in Sql_cmd_create_table_like::execute(THD*) /test/10.8_dbg_san/sql/sql_table.cc:11909 #8 0x5562e7b66788 in mysql_execute_command(THD*, bool) /test/10.8_dbg_san/sql/sql_parse.cc:5989 #9 0x5562e7aa19f6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_dbg_san/sql/sql_parse.cc:8028 #10 0x5562e7b06311 in bootstrap(st_mysql_file*) /test/10.8_dbg_san/sql/sql_parse.cc:1081 #11 0x5562e713c8b0 in mysqld_main(int, char**) /test/10.8_dbg_san/sql/mysqld.cc:5782 #12 0x5562e7107b7a in main /test/10.8_dbg_san/sql/main.cc:34 #13 0x149f2cf210b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #14 0x5562e6fdb57d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/bin/mariadbd+0x825157d) {noformat} |
{code:bash}
export UBSAN_OPTIONS=print_stacktrace=1 rm -Rf /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/scripts/mariadb-install-db --no-defaults --force --auth-root-authentication-method=normal ${MYEXTRA_OPT} --basedir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg --datadir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data {code} Leads to: {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Debug)} /test/10.8_dbg_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #0 0x5562e831d31d in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.cc:2548 #1 0x5562e832179a in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.h:271 #2 0x5562e832179a in ddl_log_write /test/10.8_dbg_san/sql/ddl_log.cc:3044 #3 0x5562e83262d4 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_dbg_san/sql/ddl_log.cc:3328 #4 0x5562e8222ea6 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_dbg_san/sql/sql_table.cc:4539 #5 0x5562e8225ce8 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_dbg_san/sql/sql_table.cc:4666 #6 0x5562e8227b7a in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_dbg_san/sql/sql_table.cc:4778 #7 0x5562e8233e25 in Sql_cmd_create_table_like::execute(THD*) /test/10.8_dbg_san/sql/sql_table.cc:11909 #8 0x5562e7b66788 in mysql_execute_command(THD*, bool) /test/10.8_dbg_san/sql/sql_parse.cc:5989 #9 0x5562e7aa19f6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_dbg_san/sql/sql_parse.cc:8028 #10 0x5562e7b06311 in bootstrap(st_mysql_file*) /test/10.8_dbg_san/sql/sql_parse.cc:1081 #11 0x5562e713c8b0 in mysqld_main(int, char**) /test/10.8_dbg_san/sql/mysqld.cc:5782 #12 0x5562e7107b7a in main /test/10.8_dbg_san/sql/main.cc:34 #13 0x149f2cf210b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #14 0x5562e6fdb57d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/bin/mariadbd+0x825157d) {noformat} {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Optimized)} /test/10.8_opt_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #0 0x55c3771098f8 in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_opt_san/sql/ddl_log.cc:2548 #1 0x55c377110862 in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_opt_san/sql/ddl_log.h:271 #2 0x55c377110862 in ddl_log_write /test/10.8_opt_san/sql/ddl_log.cc:3044 #3 0x55c377118669 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_opt_san/sql/ddl_log.cc:3328 #4 0x55c37701e621 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_opt_san/sql/sql_table.cc:4539 #5 0x55c377022451 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_opt_san/sql/sql_table.cc:4666 #6 0x55c3770238b5 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_opt_san/sql/sql_table.cc:4778 #7 0x55c377045dea in Sql_cmd_create_table_like::execute(THD*) /test/10.8_opt_san/sql/sql_table.cc:11909 #8 0x55c376aa2826 in mysql_execute_command(THD*, bool) /test/10.8_opt_san/sql/sql_parse.cc:5989 #9 0x55c376a28e28 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_opt_san/sql/sql_parse.cc:8028 #10 0x55c376a7740e in bootstrap(st_mysql_file*) /test/10.8_opt_san/sql/sql_parse.cc:1081 #11 0x55c376269cb3 in mysqld_main(int, char**) /test/10.8_opt_san/sql/mysqld.cc:5782 #12 0x14f7b3ddd0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #13 0x55c37611252d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-opt/bin/mariadbd+0x7d4952d) {noformat} |
Description |
{code:bash}
export UBSAN_OPTIONS=print_stacktrace=1 rm -Rf /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/scripts/mariadb-install-db --no-defaults --force --auth-root-authentication-method=normal ${MYEXTRA_OPT} --basedir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg --datadir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data {code} Leads to: {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Debug)} /test/10.8_dbg_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #0 0x5562e831d31d in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.cc:2548 #1 0x5562e832179a in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.h:271 #2 0x5562e832179a in ddl_log_write /test/10.8_dbg_san/sql/ddl_log.cc:3044 #3 0x5562e83262d4 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_dbg_san/sql/ddl_log.cc:3328 #4 0x5562e8222ea6 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_dbg_san/sql/sql_table.cc:4539 #5 0x5562e8225ce8 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_dbg_san/sql/sql_table.cc:4666 #6 0x5562e8227b7a in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_dbg_san/sql/sql_table.cc:4778 #7 0x5562e8233e25 in Sql_cmd_create_table_like::execute(THD*) /test/10.8_dbg_san/sql/sql_table.cc:11909 #8 0x5562e7b66788 in mysql_execute_command(THD*, bool) /test/10.8_dbg_san/sql/sql_parse.cc:5989 #9 0x5562e7aa19f6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_dbg_san/sql/sql_parse.cc:8028 #10 0x5562e7b06311 in bootstrap(st_mysql_file*) /test/10.8_dbg_san/sql/sql_parse.cc:1081 #11 0x5562e713c8b0 in mysqld_main(int, char**) /test/10.8_dbg_san/sql/mysqld.cc:5782 #12 0x5562e7107b7a in main /test/10.8_dbg_san/sql/main.cc:34 #13 0x149f2cf210b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #14 0x5562e6fdb57d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/bin/mariadbd+0x825157d) {noformat} {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Optimized)} /test/10.8_opt_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #0 0x55c3771098f8 in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_opt_san/sql/ddl_log.cc:2548 #1 0x55c377110862 in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_opt_san/sql/ddl_log.h:271 #2 0x55c377110862 in ddl_log_write /test/10.8_opt_san/sql/ddl_log.cc:3044 #3 0x55c377118669 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_opt_san/sql/ddl_log.cc:3328 #4 0x55c37701e621 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_opt_san/sql/sql_table.cc:4539 #5 0x55c377022451 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_opt_san/sql/sql_table.cc:4666 #6 0x55c3770238b5 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_opt_san/sql/sql_table.cc:4778 #7 0x55c377045dea in Sql_cmd_create_table_like::execute(THD*) /test/10.8_opt_san/sql/sql_table.cc:11909 #8 0x55c376aa2826 in mysql_execute_command(THD*, bool) /test/10.8_opt_san/sql/sql_parse.cc:5989 #9 0x55c376a28e28 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_opt_san/sql/sql_parse.cc:8028 #10 0x55c376a7740e in bootstrap(st_mysql_file*) /test/10.8_opt_san/sql/sql_parse.cc:1081 #11 0x55c376269cb3 in mysqld_main(int, char**) /test/10.8_opt_san/sql/mysqld.cc:5782 #12 0x14f7b3ddd0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #13 0x55c37611252d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-opt/bin/mariadbd+0x7d4952d) {noformat} |
{code:bash}
export UBSAN_OPTIONS=print_stacktrace=1 rm -Rf /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/scripts/mariadb-install-db --no-defaults --force --auth-root-authentication-method=normal ${MYEXTRA_OPT} --basedir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg --datadir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data {code} Leads to: {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Optimized)} /test/10.8_opt_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #0 0x55c3771098f8 in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_opt_san/sql/ddl_log.cc:2548 #1 0x55c377110862 in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_opt_san/sql/ddl_log.h:271 #2 0x55c377110862 in ddl_log_write /test/10.8_opt_san/sql/ddl_log.cc:3044 #3 0x55c377118669 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_opt_san/sql/ddl_log.cc:3328 #4 0x55c37701e621 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_opt_san/sql/sql_table.cc:4539 #5 0x55c377022451 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_opt_san/sql/sql_table.cc:4666 #6 0x55c3770238b5 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_opt_san/sql/sql_table.cc:4778 #7 0x55c377045dea in Sql_cmd_create_table_like::execute(THD*) /test/10.8_opt_san/sql/sql_table.cc:11909 #8 0x55c376aa2826 in mysql_execute_command(THD*, bool) /test/10.8_opt_san/sql/sql_parse.cc:5989 #9 0x55c376a28e28 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_opt_san/sql/sql_parse.cc:8028 #10 0x55c376a7740e in bootstrap(st_mysql_file*) /test/10.8_opt_san/sql/sql_parse.cc:1081 #11 0x55c376269cb3 in mysqld_main(int, char**) /test/10.8_opt_san/sql/mysqld.cc:5782 #12 0x14f7b3ddd0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #13 0x55c37611252d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-opt/bin/mariadbd+0x7d4952d) {noformat} {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Debug)} /test/10.8_dbg_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #0 0x5562e831d31d in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.cc:2548 #1 0x5562e832179a in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.h:271 #2 0x5562e832179a in ddl_log_write /test/10.8_dbg_san/sql/ddl_log.cc:3044 #3 0x5562e83262d4 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_dbg_san/sql/ddl_log.cc:3328 #4 0x5562e8222ea6 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_dbg_san/sql/sql_table.cc:4539 #5 0x5562e8225ce8 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_dbg_san/sql/sql_table.cc:4666 #6 0x5562e8227b7a in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_dbg_san/sql/sql_table.cc:4778 #7 0x5562e8233e25 in Sql_cmd_create_table_like::execute(THD*) /test/10.8_dbg_san/sql/sql_table.cc:11909 #8 0x5562e7b66788 in mysql_execute_command(THD*, bool) /test/10.8_dbg_san/sql/sql_parse.cc:5989 #9 0x5562e7aa19f6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_dbg_san/sql/sql_parse.cc:8028 #10 0x5562e7b06311 in bootstrap(st_mysql_file*) /test/10.8_dbg_san/sql/sql_parse.cc:1081 #11 0x5562e713c8b0 in mysqld_main(int, char**) /test/10.8_dbg_san/sql/mysqld.cc:5782 #12 0x5562e7107b7a in main /test/10.8_dbg_san/sql/main.cc:34 #13 0x149f2cf210b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #14 0x5562e6fdb57d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/bin/mariadbd+0x825157d) {noformat} |
Assignee | Oleksandr Byelkin [ sanja ] | Aleksey Midenkov [ midenok ] |
Affects Version/s | 10.7.1 [ 26120 ] |
Fix Version/s | 10.7 [ 24805 ] | |
Fix Version/s | 10.8 [ 26121 ] |
Labels | init | init regression |
Priority | Major [ 3 ] | Blocker [ 1 ] |
Labels | init regression | corruption init regression |
Summary | UBSAN: mariadb-install-db: ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' | UBSAN: mariadb-install-db and mariadbd: ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int', and incorrect information in temporary file |
Summary | UBSAN: mariadb-install-db and mariadbd: ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int', and incorrect information in temporary file | UBSAN: mariadb-install-db and mariadbd: ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int', and temporary file corruption |
Assignee | Aleksey Midenkov [ midenok ] | Roel Van de Paar [ roel ] |
Assignee | Roel Van de Paar [ roel ] | Aleksey Midenkov [ midenok ] |
Labels | corruption init regression | affects-tests corruption init regression |
Labels | affects-tests corruption init regression | affects-tests corruption init memory_exhaustion regression |
Summary | UBSAN: mariadb-install-db and mariadbd: ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int', and temporary file corruption | UBSAN: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' |
Status | Open [ 1 ] | In Progress [ 3 ] |
Assignee | Aleksey Midenkov [ midenok ] | Oleksandr Byelkin [ sanja ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Aleksey Midenkov [ midenok ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Fix Version/s | 10.8.0 [ 26800 ] | |
Fix Version/s | 10.7.2 [ 26813 ] | |
Fix Version/s | 10.7 [ 24805 ] | |
Fix Version/s | 10.8 [ 26121 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Link |
This issue is duplicated by |
Workflow | MariaDB v3 [ 127468 ] | MariaDB v4 [ 159844 ] |
Description |
{code:bash}
export UBSAN_OPTIONS=print_stacktrace=1 rm -Rf /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/scripts/mariadb-install-db --no-defaults --force --auth-root-authentication-method=normal ${MYEXTRA_OPT} --basedir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg --datadir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data {code} Leads to: {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Optimized)} /test/10.8_opt_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #0 0x55c3771098f8 in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_opt_san/sql/ddl_log.cc:2548 #1 0x55c377110862 in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_opt_san/sql/ddl_log.h:271 #2 0x55c377110862 in ddl_log_write /test/10.8_opt_san/sql/ddl_log.cc:3044 #3 0x55c377118669 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_opt_san/sql/ddl_log.cc:3328 #4 0x55c37701e621 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_opt_san/sql/sql_table.cc:4539 #5 0x55c377022451 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_opt_san/sql/sql_table.cc:4666 #6 0x55c3770238b5 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_opt_san/sql/sql_table.cc:4778 #7 0x55c377045dea in Sql_cmd_create_table_like::execute(THD*) /test/10.8_opt_san/sql/sql_table.cc:11909 #8 0x55c376aa2826 in mysql_execute_command(THD*, bool) /test/10.8_opt_san/sql/sql_parse.cc:5989 #9 0x55c376a28e28 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_opt_san/sql/sql_parse.cc:8028 #10 0x55c376a7740e in bootstrap(st_mysql_file*) /test/10.8_opt_san/sql/sql_parse.cc:1081 #11 0x55c376269cb3 in mysqld_main(int, char**) /test/10.8_opt_san/sql/mysqld.cc:5782 #12 0x14f7b3ddd0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #13 0x55c37611252d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-opt/bin/mariadbd+0x7d4952d) {noformat} {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Debug)} /test/10.8_dbg_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #0 0x5562e831d31d in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.cc:2548 #1 0x5562e832179a in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.h:271 #2 0x5562e832179a in ddl_log_write /test/10.8_dbg_san/sql/ddl_log.cc:3044 #3 0x5562e83262d4 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_dbg_san/sql/ddl_log.cc:3328 #4 0x5562e8222ea6 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_dbg_san/sql/sql_table.cc:4539 #5 0x5562e8225ce8 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_dbg_san/sql/sql_table.cc:4666 #6 0x5562e8227b7a in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_dbg_san/sql/sql_table.cc:4778 #7 0x5562e8233e25 in Sql_cmd_create_table_like::execute(THD*) /test/10.8_dbg_san/sql/sql_table.cc:11909 #8 0x5562e7b66788 in mysql_execute_command(THD*, bool) /test/10.8_dbg_san/sql/sql_parse.cc:5989 #9 0x5562e7aa19f6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_dbg_san/sql/sql_parse.cc:8028 #10 0x5562e7b06311 in bootstrap(st_mysql_file*) /test/10.8_dbg_san/sql/sql_parse.cc:1081 #11 0x5562e713c8b0 in mysqld_main(int, char**) /test/10.8_dbg_san/sql/mysqld.cc:5782 #12 0x5562e7107b7a in main /test/10.8_dbg_san/sql/main.cc:34 #13 0x149f2cf210b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #14 0x5562e6fdb57d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/bin/mariadbd+0x825157d) {noformat} |
{code:bash}
export UBSAN_OPTIONS=print_stacktrace=1 rm -Rf /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data /test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/scripts/mariadb-install-db --no-defaults --force --auth-root-authentication-method=normal --basedir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg --datadir=/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/data {code} Leads to: {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Optimized)} /test/10.8_opt_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #0 0x55c3771098f8 in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_opt_san/sql/ddl_log.cc:2548 #1 0x55c377110862 in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_opt_san/sql/ddl_log.h:271 #2 0x55c377110862 in ddl_log_write /test/10.8_opt_san/sql/ddl_log.cc:3044 #3 0x55c377118669 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_opt_san/sql/ddl_log.cc:3328 #4 0x55c37701e621 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_opt_san/sql/sql_table.cc:4539 #5 0x55c377022451 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_opt_san/sql/sql_table.cc:4666 #6 0x55c3770238b5 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_opt_san/sql/sql_table.cc:4778 #7 0x55c377045dea in Sql_cmd_create_table_like::execute(THD*) /test/10.8_opt_san/sql/sql_table.cc:11909 #8 0x55c376aa2826 in mysql_execute_command(THD*, bool) /test/10.8_opt_san/sql/sql_parse.cc:5989 #9 0x55c376a28e28 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_opt_san/sql/sql_parse.cc:8028 #10 0x55c376a7740e in bootstrap(st_mysql_file*) /test/10.8_opt_san/sql/sql_parse.cc:1081 #11 0x55c376269cb3 in mysqld_main(int, char**) /test/10.8_opt_san/sql/mysqld.cc:5782 #12 0x14f7b3ddd0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #13 0x55c37611252d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-opt/bin/mariadbd+0x7d4952d) {noformat} {noformat:title=10.8.0 5566cbadb03856aba9c236b131f544490cd2bee4 (Debug)} /test/10.8_dbg_san/sql/ddl_log.cc:2548:3: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int' #0 0x5562e831d31d in ddl_log_write_execute_entry(unsigned int, unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.cc:2548 #1 0x5562e832179a in ddl_log_write_execute_entry(unsigned int, st_ddl_log_memory_entry**) /test/10.8_dbg_san/sql/ddl_log.h:271 #2 0x5562e832179a in ddl_log_write /test/10.8_dbg_san/sql/ddl_log.cc:3044 #3 0x5562e83262d4 in ddl_log_create_table(THD*, st_ddl_log_state*, handlerton*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, bool) /test/10.8_dbg_san/sql/ddl_log.cc:3328 #4 0x5562e8222ea6 in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /test/10.8_dbg_san/sql/sql_table.cc:4539 #5 0x5562e8225ce8 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /test/10.8_dbg_san/sql/sql_table.cc:4666 #6 0x5562e8227b7a in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /test/10.8_dbg_san/sql/sql_table.cc:4778 #7 0x5562e8233e25 in Sql_cmd_create_table_like::execute(THD*) /test/10.8_dbg_san/sql/sql_table.cc:11909 #8 0x5562e7b66788 in mysql_execute_command(THD*, bool) /test/10.8_dbg_san/sql/sql_parse.cc:5989 #9 0x5562e7aa19f6 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/10.8_dbg_san/sql/sql_parse.cc:8028 #10 0x5562e7b06311 in bootstrap(st_mysql_file*) /test/10.8_dbg_san/sql/sql_parse.cc:1081 #11 0x5562e713c8b0 in mysqld_main(int, char**) /test/10.8_dbg_san/sql/mysqld.cc:5782 #12 0x5562e7107b7a in main /test/10.8_dbg_san/sql/main.cc:34 #13 0x149f2cf210b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #14 0x5562e6fdb57d in _start (/test/UBASAN_MD151121-mariadb-10.8.0-linux-x86_64-dbg/bin/mariadbd+0x825157d) {noformat} |
We haven't synched the log entries yet, we sync them now before
writing the execute entry.
*/
bzero(file_entry_buf, global_ddl_log.io_size);
file_entry_buf[DDL_LOG_ENTRY_TYPE_POS]= (uchar)DDL_LOG_EXECUTE_CODE;
int4store(file_entry_buf + DDL_LOG_NEXT_ENTRY_POS, first_entry);
int8store(file_entry_buf + DDL_LOG_ID_POS, (cond_entry << DDL_LOG_RETRY_BITS)); <<<<<<<<<<< Line 2548 <<<<<<<<<<<