Details
-
Bug
-
Status: Stalled (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.5, 10.6, 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL), 11.2(EOL), 11.3(EOL), 11.4
Description
Though this bug looks like MDEV-22708, it would seem to be a different bug, and it affects only 10.5.5 debug.
# mysqld options required for replay: --log-bin
|
SET SQL_MODE='';
|
USE test;
|
RESET MASTER TO 5000000000;
|
CREATE TABLE t (c INT);
|
XA BEGIN 'a';
|
INSERT INTO t VALUES ('a');
|
XA END 'a';
|
XA PREPARE 'a';
|
Leads to:
10.5.5 e1013725ce0f3f947e728491eef75d9985e8db2f |
mysqld: /test/10.5_dbg/sql/log.cc:8135: void MYSQL_BIN_LOG::trx_group_commit_leader(MYSQL_BIN_LOG::group_commit_entry*): Assertion `is_open()' failed.
|
10.5.5 e1013725ce0f3f947e728491eef75d9985e8db2f |
Core was generated by `/test/MD250620-mariadb-10.5.5-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 0x14885f32e700 (LWP 2489108))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x000055bd67af07d0 in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
|
#2 0x000055bd672a947a 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 0x000014885d60f801 in __GI_abort () at abort.c:79
|
#6 0x000014885d5ff39a in __assert_fail_base (fmt=0x14885d7867d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55bd67fad7c1 "is_open()", file=file@entry=0x55bd67e29967 "/test/10.5_dbg/sql/log.cc", line=line@entry=8135, function=function@entry=0x55bd67e2ebc0 <MYSQL_BIN_LOG::trx_group_commit_leader(MYSQL_BIN_LOG::group_commit_entry*)::__PRETTY_FUNCTION__> "void MYSQL_BIN_LOG::trx_group_commit_leader(MYSQL_BIN_LOG::group_commit_entry*)") at assert.c:92
|
#7 0x000014885d5ff412 in __GI___assert_fail (assertion=assertion@entry=0x55bd67fad7c1 "is_open()", file=file@entry=0x55bd67e29967 "/test/10.5_dbg/sql/log.cc", line=line@entry=8135, function=function@entry=0x55bd67e2ebc0 <MYSQL_BIN_LOG::trx_group_commit_leader(MYSQL_BIN_LOG::group_commit_entry*)::__PRETTY_FUNCTION__> "void MYSQL_BIN_LOG::trx_group_commit_leader(MYSQL_BIN_LOG::group_commit_entry*)") at assert.c:101
|
#8 0x000055bd673eba7c in MYSQL_BIN_LOG::trx_group_commit_leader (this=this@entry=0x55bd68871940 <mysql_bin_log>, leader=leader@entry=0x14885f32c1b0) at /test/10.5_dbg/sql/log.cc:8135
|
#9 0x000055bd673ec7be in MYSQL_BIN_LOG::write_transaction_to_binlog_events (this=this@entry=0x55bd68871940 <mysql_bin_log>, entry=entry@entry=0x14885f32c1b0) at /test/10.5_dbg/sql/log.cc:7966
|
#10 0x000055bd673ecc42 in MYSQL_BIN_LOG::write_transaction_to_binlog (this=this@entry=0x55bd68871940 <mysql_bin_log>, thd=thd@entry=0x14883b415088, cache_mngr=cache_mngr@entry=0x14883b4cd088, end_ev=end_ev@entry=0x14885f32c490, all=all@entry=true, using_stmt_cache=using_stmt_cache@entry=true, using_trx_cache=true) at /test/10.5_dbg/sql/log.cc:7614
|
#11 0x000055bd673ecf00 in binlog_flush_cache (thd=thd@entry=0x14883b415088, cache_mngr=cache_mngr@entry=0x14883b4cd088, end_ev=end_ev@entry=0x14885f32c490, all=all@entry=true, using_stmt=using_stmt@entry=true, using_trx=using_trx@entry=true) at /test/10.5_dbg/sql/log.cc:1797
|
#12 0x000055bd673ed5ca in binlog_commit_flush_xa_prepare (thd=thd@entry=0x14883b415088, all=all@entry=true, cache_mngr=cache_mngr@entry=0x14883b4cd088) at /test/10.5_dbg/sql/log.cc:2122
|
#13 0x000055bd673ed9a0 in write_empty_xa_prepare (cache_mngr=0x14883b4cd088, thd=0x14883b415088) at /test/10.5_dbg/sql/log.cc:10121
|
#14 MYSQL_BIN_LOG::unlog_xa_prepare (this=0x55bd68871940 <mysql_bin_log>, thd=0x14883b415088, all=<optimized out>) at /test/10.5_dbg/sql/log.cc:10162
|
#15 0x000055bd672c1cd4 in ha_prepare (thd=thd@entry=0x14883b415088) at /test/10.5_dbg/sql/handler.cc:1399
|
#16 0x000055bd67214bf2 in trans_xa_prepare (thd=thd@entry=0x14883b415088) at /test/10.5_dbg/sql/xa.cc:531
|
#17 0x000055bd67003740 in mysql_execute_command (thd=thd@entry=0x14883b415088) at /test/10.5_dbg/sql/sql_parse.cc:5805
|
#18 0x000055bd6700b638 in mysql_parse (thd=thd@entry=0x14883b415088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14885f32d350, 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:7995
|
#19 0x000055bd66ff8110 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14883b415088, packet=packet@entry=0x14883b467089 "XA PREPARE 'a'", packet_length=packet_length@entry=14, 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
|
#20 0x000055bd66ff68ea in do_command (thd=0x14883b415088) at /test/10.5_dbg/sql/sql_parse.cc:1355
|
#21 0x000055bd6715215f in do_handle_one_connection (connect=<optimized out>, connect@entry=0x14883e4d9f08, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1411
|
#22 0x000055bd6715287b in handle_one_connection (arg=arg@entry=0x14883e4d9f08) at /test/10.5_dbg/sql/sql_connect.cc:1313
|
#23 0x000055bd675b511c in pfs_spawn_thread (arg=0x14885c046788) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#24 0x000014885e2f26db in start_thread (arg=0x14885f32e700) at pthread_create.c:463
|
#25 0x000014885d6f088f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.5.5 (dbg)
Bug confirmed not 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.5 (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-17977 FLUSH MASTER fails with ER_NO_UNIQUE_LOGFILE and causes subsequent assertion failure `Count >= rest_length' in _my_b_write
- Stalled
-
MDEV-22708 Assertion `!mysql_bin_log.is_open() || thd.is_current_stmt_binlog_format_row()' failed in Delayed_insert::handle_inserts and in Diagnostics_area::set_eof_status
- Closed
-
MDEV-30409 SIGSEGV in __memmove_avx_unaligned_erms from _my_b_write and Assertion `Count >= rest_length' failed in _my_b_write
- Open