Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.1(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL), 11.2, 11.3(EOL), 11.7
Description
# mysqld options required for replay: --log-bin
|
USE test;
|
SET autocommit=0;
|
CREATE TABLE t1 (c INT) ENGINE=MyISAM;
|
SET GLOBAL gtid_slave_pos="0-1-100";
|
INSERT INTO t1 VALUES (0);
|
DROP TABLE not_there;
|
Leads to:
10.5.4 6877ef9a7c9c7ee55d67e4baaf4e8f7b874c9f89 |
mysqld: /test/10.5_dbg/storage/innobase/handler/ha_innodb.cc:17193: int innobase_xa_prepare(handlerton*, THD*, bool): Assertion `trx_is_registered_for_2pc(trx)' failed.
|
10.5.4 6877ef9a7c9c7ee55d67e4baaf4e8f7b874c9f89 |
Core was generated by `/test/MD060620-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 0x150ebf84a700 (LWP 3929910))]
|
(gdb) bt
|
(gdb) (gdb) #0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x000055dcba18200d in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
|
#2 0x000055dcb992bbbc in handle_fatal_signal (sig=6) at /test/10.5_dbg/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 0x0000150ec0508801 in __GI_abort () at abort.c:79
|
#6 0x0000150ec04f839a in __assert_fail_base (fmt=0x150ec067f7d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55dcba56b3b8 "trx_is_registered_for_2pc(trx)", file=file@entry=0x55dcba56a668 "/test/10.5_dbg/storage/innobase/handler/ha_innodb.cc", line=line@entry=17193, function=function@entry=0x55dcba5665c0 <innobase_xa_prepare(handlerton*, THD*, bool)::__PRETTY_FUNCTION__> "int innobase_xa_prepare(handlerton*, THD*, bool)") at assert.c:92
|
#7 0x0000150ec04f8412 in __GI___assert_fail (assertion=assertion@entry=0x55dcba56b3b8 "trx_is_registered_for_2pc(trx)", file=file@entry=0x55dcba56a668 "/test/10.5_dbg/storage/innobase/handler/ha_innodb.cc", line=line@entry=17193, function=function@entry=0x55dcba5665c0 <innobase_xa_prepare(handlerton*, THD*, bool)::__PRETTY_FUNCTION__> "int innobase_xa_prepare(handlerton*, THD*, bool)") at assert.c:101
|
#8 0x000055dcb9ce1ac1 in innobase_xa_prepare (hton=0x150ebf043088, thd=0x150e9e815088, prepare_trx=<optimized out>) at /test/10.5_dbg/storage/innobase/handler/ha_innodb.cc:17193
|
#9 0x000055dcb99435b8 in prepare_or_error (ht=ht@entry=0x150ebf043088, thd=thd@entry=0x150e9e815088, all=all@entry=true) at /test/10.5_dbg/sql/handler.cc:1304
|
#10 0x000055dcb9944f33 in ha_commit_trans (thd=thd@entry=0x150e9e815088, all=all@entry=true) at /test/10.5_dbg/sql/handler.cc:1682
|
#11 0x000055dcb97e9b08 in trans_commit_implicit (thd=thd@entry=0x150e9e815088) at /test/10.5_dbg/sql/transaction.cc:319
|
#12 0x000055dcb9680de5 in mysql_execute_command (thd=thd@entry=0x150e9e815088) at /test/10.5_dbg/sql/sql_parse.cc:3749
|
#13 0x000055dcb968e322 in mysql_parse (thd=thd@entry=0x150e9e815088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x150ebf849350, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:7992
|
#14 0x000055dcb967ae1c in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x150e9e815088, packet=packet@entry=0x150e9e867089 "DROP TABLE not_there", packet_length=packet_length@entry=20, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:1874
|
#15 0x000055dcb96795f6 in do_command (thd=0x150e9e815088) at /test/10.5_dbg/sql/sql_parse.cc:1355
|
#16 0x000055dcb97d49f9 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x150ea1920aa8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1411
|
#17 0x000055dcb97d5115 in handle_one_connection (arg=arg@entry=0x150ea1920aa8) at /test/10.5_dbg/sql/sql_connect.cc:1313
|
#18 0x000055dcb9c34104 in pfs_spawn_thread (arg=0x150ebf045b08) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#19 0x0000150ec11eb6db in start_thread (arg=0x150ebf84a700) at pthread_create.c:463
|
#20 0x0000150ec05e988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.1.46 (dbg), 10.2.33 (dbg), 10.3.24 (dbg), 10.4.14 (dbg), 10.5.4 (dbg)
Bug confirmed not present in:
MariaDB: 10.1.46 (opt), 10.2.33 (opt), 10.3.24 (opt), 10.4.14 (opt), 10.5.4 (opt)
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)
Attachments
Issue Links
- relates to
-
MDEV-463 Statistics: Failing assertion: trx_is_registered_for_2pc(trx) in ha_innodb.cc on ANALYZE TABLE with row binary logging
- Closed
-
MDEV-34810 Assertion `trx_is_registered_for_2pc(trx)' failed in innobase_xa_prepare on XA PREPARE after setting master_demote_to_slave
- Confirmed