|
USE test;
|
SET @@global.log_bin_trust_function_creators=1;
|
CREATE TABLE t(pk TIMESTAMP DEFAULT '0000-00-00 00:00:00.00',b DATE,KEY (pk));
|
CREATE FUNCTION f() RETURNS INT RETURN (SELECT notthere FROM t LIMIT 1);
|
XA BEGIN 'a';
|
SELECT f(@b,'a');
|
XA END 'a';
|
XA PREPARE 'a';
|
SELECT f(@a,@b);
|
Binary logging option is not required.
Leads to:
|
10.5.4 07d1c8567cbfe94398a9857c47fb9919cad42651
|
2020-06-12 20:13:00 0 [Note] /test/MD120620-mariadb-10.5.4-linux-x86_64-dbg/bin/mysqld: ready for connections.
|
Version: '10.5.4-MariaDB' socket: '/test/MD120620-mariadb-10.5.4-linux-x86_64-dbg/socket.sock' port: 15523 MariaDB Server
|
2020-06-12 20:13:26 0x149388886700 InnoDB: Assertion failure in file /test/10.5_opt/storage/innobase/trx/trx0roll.cc line 326
|
InnoDB: We intentionally generate a memory trap.
|
InnoDB: Submit a detailed bug report to https://jira.mariadb.org/
|
InnoDB: If you get repeated assertion failures or crashes, even
|
InnoDB: immediately after the mysqld startup, there may be
|
InnoDB: corruption in the InnoDB tablespace. Please refer to
|
InnoDB: https://mariadb.com/kb/en/library/innodb-recovery-modes/
|
InnoDB: about forcing recovery.
|
200612 20:13:26 [ERROR] mysqld got signal 6 ;
|
...
|
Query (0x149363047030): SELECT f(@a,@b)
|
Connection ID (thread ID): 4
|
Status: NOT_KILLED
|
|
10.5.4 07d1c8567cbfe94398a9857c47fb9919cad42651 (dbg)
|
Core was generated by `/test/MD120620-mariadb-10.5.4-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
[Current thread is 1 (Thread 0x14f353a46700 (LWP 3458208))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x000055e72108d9e7 in my_write_core (sig=sig@entry=6) at /test/10.5_opt/mysys/stacktrace.c:518
|
#2 0x000055e720a58daa in handle_fatal_signal (sig=6) at /test/10.5_opt/sql/signal_handler.cc:330
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
|
#5 0x000014f351cdc801 in __GI_abort () at abort.c:79
|
#6 0x000055e72075ffaa in ut_dbg_assertion_failed (expr=expr@entry=0x0, file=file@entry=0x55e7213c01b0 "/test/10.5_opt/storage/innobase/trx/trx0roll.cc", line=line@entry=326) at /test/10.5_opt/storage/innobase/ut/ut0dbg.cc:60
|
#7 0x000055e720eb5c47 in trx_rollback_last_sql_stat_for_mysql (trx=trx@entry=0x14f33e4021b0) at /test/10.5_opt/storage/innobase/trx/trx0roll.cc:326
|
#8 0x000055e720d71dc8 in innobase_rollback (hton=<optimized out>, thd=0x14f32c812018, rollback_trx=<optimized out>) at /test/10.5_opt/storage/innobase/handler/ha_innodb.cc:4470
|
#9 0x000055e720a5c6d7 in ha_rollback_trans (thd=thd@entry=0x14f32c812018, all=all@entry=false) at /test/10.5_opt/sql/handler.cc:1987
|
#10 0x000055e720961105 in trans_rollback_stmt (thd=thd@entry=0x14f32c812018) at /test/10.5_opt/sql/transaction.cc:525
|
#11 0x000055e7208612e3 in mysql_execute_command (thd=thd@entry=0x14f32c812018) at /test/10.5_opt/sql/sql_parse.cc:6003
|
#12 0x000055e7208698fc in mysql_parse (thd=0x14f32c812018, rawbuf=<optimized out>, length=15, parser_state=0x14f353a45430, is_com_multi=<optimized out>, is_next_command=<optimized out>) at /test/10.5_opt/sql/sql_parse.cc:7992
|
#13 0x000055e72085ebe5 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14f32c812018, packet=packet@entry=0x14f32c83a019 "", packet_length=packet_length@entry=15, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_opt/sql/sql_parse.cc:1874
|
#14 0x000055e72085cfd4 in do_command (thd=0x14f32c812018) at /test/10.5_opt/sql/sql_parse.cc:1355
|
#15 0x000055e720952681 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x14f350833958, put_in_cache=put_in_cache@entry=true) at /test/10.5_opt/sql/sql_connect.cc:1411
|
#16 0x000055e7209529e4 in handle_one_connection (arg=arg@entry=0x14f350833958) at /test/10.5_opt/sql/sql_connect.cc:1313
|
#17 0x000055e720cc040a in pfs_spawn_thread (arg=0x14f35084e818) at /test/10.5_opt/storage/perfschema/pfs.cc:2201
|
#18 0x000014f3529bf6db in start_thread (arg=0x14f353a46700) at pthread_create.c:463
|
#19 0x000014f351dbd88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
10.5.4 07d1c8567cbfe94398a9857c47fb9919cad42651 (opt)
|
Core was generated by `/test/MD120620-mariadb-10.5.4-linux-x86_64-opt/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
[Current thread is 1 (Thread 0x1490a6fef700 (LWP 3493453))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x000055b8783e39e7 in my_write_core (sig=sig@entry=6) at /test/10.5_opt/mysys/stacktrace.c:518
|
#2 0x000055b877daedaa in handle_fatal_signal (sig=6) at /test/10.5_opt/sql/signal_handler.cc:330
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
|
#5 0x00001490a5285801 in __GI_abort () at abort.c:79
|
#6 0x000055b877ab5faa in ut_dbg_assertion_failed (expr=expr@entry=0x0, file=file@entry=0x55b8787161b0 "/test/10.5_opt/storage/innobase/trx/trx0roll.cc", line=line@entry=326) at /test/10.5_opt/storage/innobase/ut/ut0dbg.cc:60
|
#7 0x000055b87820bc47 in trx_rollback_last_sql_stat_for_mysql (trx=trx@entry=0x1490920021b0) at /test/10.5_opt/storage/innobase/trx/trx0roll.cc:326
|
#8 0x000055b8780c7dc8 in innobase_rollback (hton=<optimized out>, thd=0x149081012018, rollback_trx=<optimized out>) at /test/10.5_opt/storage/innobase/handler/ha_innodb.cc:4470
|
#9 0x000055b877db26d7 in ha_rollback_trans (thd=thd@entry=0x149081012018, all=all@entry=false) at /test/10.5_opt/sql/handler.cc:1987
|
#10 0x000055b877cb7105 in trans_rollback_stmt (thd=thd@entry=0x149081012018) at /test/10.5_opt/sql/transaction.cc:525
|
#11 0x000055b877bb72e3 in mysql_execute_command (thd=thd@entry=0x149081012018) at /test/10.5_opt/sql/sql_parse.cc:6003
|
#12 0x000055b877bbf8fc in mysql_parse (thd=0x149081012018, rawbuf=<optimized out>, length=15, parser_state=0x1490a6fee430, is_com_multi=<optimized out>, is_next_command=<optimized out>) at /test/10.5_opt/sql/sql_parse.cc:7992
|
#13 0x000055b877bb4be5 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x149081012018, packet=packet@entry=0x14908103a019 "", packet_length=packet_length@entry=15, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_opt/sql/sql_parse.cc:1874
|
#14 0x000055b877bb2fd4 in do_command (thd=0x149081012018) at /test/10.5_opt/sql/sql_parse.cc:1355
|
#15 0x000055b877ca8681 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x1490a3c33958, put_in_cache=put_in_cache@entry=true) at /test/10.5_opt/sql/sql_connect.cc:1411
|
#16 0x000055b877ca89e4 in handle_one_connection (arg=arg@entry=0x1490a3c33958) at /test/10.5_opt/sql/sql_connect.cc:1313
|
#17 0x000055b87801640a in pfs_spawn_thread (arg=0x1490a3c4e818) at /test/10.5_opt/storage/perfschema/pfs.cc:2201
|
#18 0x00001490a5f686db in start_thread (arg=0x1490a6fef700) at pthread_create.c:463
|
#19 0x00001490a536688f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.1.46 (dbg), 10.1.46 (opt), 10.2.33 (dbg), 10.2.33 (opt), 10.3.24 (dbg), 10.3.24 (opt), 10.4.14 (dbg), 10.4.14 (opt), 10.5.4 (dbg), 10.5.4 (opt)
Bug confirmed not present in:
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.47 (dbg), 5.6.47 (opt), 5.7.29 (dbg), 5.7.29 (opt), 8.0.19 (dbg), 8.0.19 (opt)
|