Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.5, 10.6, 10.4(EOL)
-
None
Description
CREATE TABLE t1 (c1 BIGINT NOT NULL); |
INSERT INTO t1 (c1) VALUES(10); |
SET GLOBAL wsrep_on = OFF; |
XA START 't'; |
SET @@session.query_prealloc_size = 0; |
SET SESSION max_session_mem_used = 8192; |
LOAD INDEX INTO CACHE t1 IGNORE LEAVES; |
SET SESSION wsrep_dirty_reads=1; |
SET GLOBAL wsrep_on = TRUE; |
SET SESSION wsrep_trx_fragment_unit = 'statements'; |
SET SESSION wsrep_trx_fragment_size = 3; |
SET GLOBAL wsrep_cluster_address='gcomm://'; |
SAVEPOINT my_sp;
|
SELECT 1; |
CREATE TABLE tbl2(c1 VARCHAR(20)) engine=InnoDB; |
Leads to:
10.6.12 (Debug) |
mysqld: /test/10.6_dbg/wsrep-lib/src/transaction.cpp:883: int wsrep::transaction::after_statement(): Assertion `state() == s_executing || state() == s_prepared || state() == s_committed || state() == s_aborted || state() == s_must_replay' failed.
|
10.6.12 (Debug) |
Core was generated by `/test/GAL_MD270123-mariadb-10.6.12-linux-x86_64-dbg/bin/mysqld --defaults-file='.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
[Current thread is 1 (Thread 0x14d2b9440700 (LWP 366714))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
#1 0x000055ab79c41987 in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
|
#2 0x000055ab794f43d7 in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:357
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#5 0x000014d2ef249859 in __GI_abort () at abort.c:79
|
#6 0x000014d2ef249729 in __assert_fail_base (fmt=0x14d2ef3df588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55ab7a31ae98 "state() == s_executing || state() == s_prepared || state() == s_committed || state() == s_aborted || state() == s_must_replay", file=0x55ab7a319698 "/test/10.6_dbg/wsrep-lib/src/transaction.cpp", line=883, function=<optimized out>) at assert.c:92
|
#7 0x000014d2ef25afd6 in __GI___assert_fail (assertion=assertion@entry=0x55ab7a31ae98 "state() == s_executing || state() == s_prepared || state() == s_committed || state() == s_aborted || state() == s_must_replay", file=file@entry=0x55ab7a319698 "/test/10.6_dbg/wsrep-lib/src/transaction.cpp", line=line@entry=883, function=function@entry=0x55ab7a31adb0 "int wsrep::transaction::after_statement()") at assert.c:101
|
#8 0x000055ab79da1db7 in wsrep::transaction::after_statement (this=this@entry=0x14d284007340) at /test/10.6_dbg/wsrep-lib/include/wsrep/transaction.hpp:64
|
#9 0x000055ab79d87b7a in wsrep::client_state::after_statement (this=this@entry=0x14d2840072d8) at /test/10.6_dbg/wsrep-lib/src/client_state.cpp:281
|
#10 0x000055ab7922e3c2 in wsrep_after_statement (thd=0x14d284000d48) at /test/10.6_dbg/sql/sql_class.h:5429
|
#11 wsrep_mysql_parse (thd=thd@entry=0x14d284000d48, rawbuf=0x14d2840844f0 "CREATE TABLE tbl2(c1 VARCHAR(20)) engine=InnoDB", length=47, parser_state=parser_state@entry=0x14d2b943f310) at /test/10.6_dbg/sql/sql_parse.cc:7861
|
#12 0x000055ab7923c200 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14d284000d48, packet=packet@entry=0x14d28400ac79 "CREATE TABLE tbl2(c1 VARCHAR(20)) engine=InnoDB", packet_length=packet_length@entry=47, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1365
|
#13 0x000055ab7923e62c in do_command (thd=0x14d284000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1409
|
#14 0x000055ab7938320a in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55ab7c3b4e28, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1416
|
#15 0x000055ab793836dc in handle_one_connection (arg=0x55ab7c3b4e28) at /test/10.6_dbg/sql/sql_connect.cc:1318
|
#16 0x000014d2ef75a609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#17 0x000014d2ef346133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
10.5.19 (Debug) |
mysqld: /test/10.5_dbg/wsrep-lib/src/transaction.cpp:883: int wsrep::transaction::after_statement(): Assertion `state() == s_executing || state() == s_prepared || state() == s_committed || state() == s_aborted || state() == s_must_replay' failed.
|
10.5.19 (Debug) |
Core was generated by `/test/GAL_MD270123-mariadb-10.5.19-linux-x86_64-dbg/bin/mysqld --defaults-file='.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
[Current thread is 1 (Thread 0x147b8415a700 (LWP 308211))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
#1 0x000055c9e263d22c in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:424
|
#2 0x000055c9e1e7d6c5 in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:356
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#5 0x0000147ba7cdc859 in __GI_abort () at abort.c:79
|
#6 0x0000147ba7cdc729 in __assert_fail_base (fmt=0x147ba7e72588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55c9e2d0a898 "state() == s_executing || state() == s_prepared || state() == s_committed || state() == s_aborted || state() == s_must_replay", file=0x55c9e2d09098 "/test/10.5_dbg/wsrep-lib/src/transaction.cpp", line=883, function=<optimized out>) at assert.c:92
|
#7 0x0000147ba7cedfd6 in __GI___assert_fail (assertion=assertion@entry=0x55c9e2d0a898 "state() == s_executing || state() == s_prepared || state() == s_committed || state() == s_aborted || state() == s_must_replay", file=file@entry=0x55c9e2d09098 "/test/10.5_dbg/wsrep-lib/src/transaction.cpp", line=line@entry=883, function=function@entry=0x55c9e2d0a7b0 "int wsrep::transaction::after_statement()") at assert.c:101
|
#8 0x000055c9e2799b1f in wsrep::transaction::after_statement (this=this@entry=0x147af4007070) at /test/10.5_dbg/wsrep-lib/include/wsrep/transaction.hpp:64
|
#9 0x000055c9e277f8e2 in wsrep::client_state::after_statement (this=this@entry=0x147af4007008) at /test/10.5_dbg/wsrep-lib/src/client_state.cpp:281
|
#10 0x000055c9e1bd951a in wsrep_after_statement (thd=0x147af4000d48) at /test/10.5_dbg/sql/sql_class.h:5174
|
#11 wsrep_mysql_parse (thd=thd@entry=0x147af4000d48, rawbuf=0x147af4082ab0 "CREATE TABLE tbl2(c1 VARCHAR(20)) engine=InnoDB", length=47, parser_state=parser_state@entry=0x147b84159310, 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:7920
|
#12 0x000055c9e1be779c in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x147af4000d48, packet=packet@entry=0x147af400a9a9 "CREATE TABLE tbl2(c1 VARCHAR(20)) engine=InnoDB", packet_length=packet_length@entry=47, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_class.h:1297
|
#13 0x000055c9e1be9feb in do_command (thd=0x147af4000d48) at /test/10.5_dbg/sql/sql_parse.cc:1375
|
#14 0x000055c9e1d2566b in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55c9e5c49e68, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1416
|
#15 0x000055c9e1d25b3c in handle_one_connection (arg=0x55c9e5c49e68) at /test/10.5_dbg/sql/sql_connect.cc:1318
|
#16 0x0000147ba81ed609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#17 0x0000147ba7dd9133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Attachments
Issue Links
- relates to
-
MDEV-24981 LOAD INDEX may cause rollback of prepared XA transaction
- Open
-
MDEV-33129 Crash in wsrep::wsrep_provider_v26::replay when setting gtid_slave_pos
- Needs Feedback