|
CREATE OR REPLACE TABLE mysql.general_log (c INT) ENGINE=InnoDB;
|
SET max_session_mem_used=32768;
|
XA START 'a';
|
XA END 'a';
|
SET GLOBAL general_log=ON;
|
XA PREPARE 'a';
|
SET GLOBAL general_log=ON;
|
Leads to:
|
11.0.1 b075191ba8598af6aff5549e6e19f6255aef258a (Debug)
|
Core was generated by `/test/MD090123-mariadb-11.0.1-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=23308975728192)
|
at ./nptl/pthread_kill.c:44
|
[Current thread is 1 (Thread 0x15330b37e640 (LWP 480346))]
|
(gdb) bt
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=23308975728192) at ./nptl/pthread_kill.c:44
|
#1 __pthread_kill_internal (signo=6, threadid=23308975728192) at ./nptl/pthread_kill.c:78
|
#2 __GI___pthread_kill (threadid=23308975728192, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
|
#3 0x000015333b828476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
|
#4 0x000015333b80e7f3 in __GI_abort () at ./stdlib/abort.c:79
|
#5 0x000055ed2190bfb2 in ut_dbg_assertion_failed (expr=expr@entry=0x0, file=file@entry=0x55ed21e0ed08 "/test/11.0_dbg/storage/innobase/trx/trx0trx.cc", line=line@entry=1671) at /test/11.0_dbg/storage/innobase/ut/ut0dbg.cc:60
|
#6 0x000055ed218fb3af in trx_mark_sql_stat_end (trx=trx@entry=0x153332fa8b80) at /test/11.0_dbg/storage/innobase/trx/trx0trx.cc:1671
|
#7 0x000055ed216fd844 in innobase_commit (hton=<optimized out>, thd=0x1532e4000d58, commit_trx=<optimized out>) at /test/11.0_dbg/storage/innobase/handler/ha_innodb.cc:4544
|
#8 0x000055ed21425411 in commit_one_phase_2 (thd=thd@entry=0x1532e4000d58, all=all@entry=false, trans=trans@entry=0x1532e4004748, is_real_trans=false) at /test/11.0_dbg/sql/handler.cc:2085
|
#9 0x000055ed214255ea in ha_commit_one_phase (thd=thd@entry=0x1532e4000d58, all=all@entry=false) at /test/11.0_dbg/sql/handler.cc:2038
|
#10 0x000055ed21435856 in ha_commit_trans (thd=thd@entry=0x1532e4000d58, all=all@entry=false) at /test/11.0_dbg/sql/handler.cc:1832
|
#11 0x000055ed212c8790 in trans_commit_stmt (thd=thd@entry=0x1532e4000d58) at /test/11.0_dbg/sql/transaction.cc:472
|
#12 0x000055ed21165748 in mysql_execute_command (thd=thd@entry=0x1532e4000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/11.0_dbg/sql/sql_parse.cc:6061
|
#13 0x000055ed21166934 in mysql_parse (thd=thd@entry=0x1532e4000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x15330b37d2c0) at /test/11.0_dbg/sql/sql_parse.cc:8000
|
#14 0x000055ed21168ac8 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1532e4000d58, packet=packet@entry=0x1532e400ae09 "SET GLOBAL general_log=ON", packet_length=packet_length@entry=25, blocking=blocking@entry=true) at /test/11.0_dbg/sql/sql_class.h:243
|
#15 0x000055ed2116a921 in do_command (thd=0x1532e4000d58, blocking=blocking@entry=true) at /test/11.0_dbg/sql/sql_parse.cc:1407
|
#16 0x000055ed212b49ea in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55ed2397cbf8, put_in_cache=put_in_cache@entry=true) at /test/11.0_dbg/sql/sql_connect.cc:1416
|
#17 0x000055ed212b4c4e in handle_one_connection (arg=0x55ed2397cbf8) at /test/11.0_dbg/sql/sql_connect.cc:1318
|
#18 0x000015333b87ab43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
|
#19 0x000015333b90ca00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
|
Bug confirmed present in:
MariaDB: 10.3.38 (dbg), 10.3.38 (opt), 10.4.28 (dbg), 10.4.28 (opt), 10.5.19 (dbg), 10.5.19 (opt), 10.6.12 (dbg), 10.6.12 (opt), 10.7.8 (opt), 10.7.8 (dbg), 10.8.7 (dbg), 10.8.7 (opt), 10.9.5 (dbg), 10.9.5 (opt), 10.10.3 (dbg), 10.10.3 (opt), 10.11.2 (dbg), 10.11.2 (opt), 11.0.1 (dbg), 11.0.1 (opt)
Bug (or feature/syntax) confirmed not present in:
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.40 (dbg), 5.7.40 (opt), 8.0.31 (dbg), 8.0.31 (opt)
|
|
Additional testcase with slightly different stack:
CREATE TABLE t (c INT) ENGINE=InnoDB;
|
CREATE OR REPLACE TABLE mysql.slow_log (c INT);
|
XA START 'a';
|
INSERT INTO t VALUES (1);
|
XA END 'a';
|
XA PREPARE 'a';
|
SET GLOBAL slow_query_log=1;
|
Leads to:
|
11.0.1 f2dc4d4c10ac36a73b5c1eb765352d3aee808d66 (Debug)
|
Core was generated by `/test/MD180223-mariadb-11.0.1-linux-x86_64-dbg/bin/mariadbd --no-defaults --cor'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=23454524851776)
|
at ./nptl/pthread_kill.c:44
|
[Current thread is 1 (Thread 0x1554ee9f4640 (LWP 2525856))]
|
(gdb) bt
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=23454524851776) at ./nptl/pthread_kill.c:44
|
#1 __pthread_kill_internal (signo=6, threadid=23454524851776) at ./nptl/pthread_kill.c:78
|
#2 __GI___pthread_kill (threadid=23454524851776, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
|
#3 0x0000155523cb4476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
|
#4 0x0000155523c9a7f3 in __GI_abort () at ./stdlib/abort.c:79
|
#5 0x0000555ea34ffb02 in ut_dbg_assertion_failed (expr=expr@entry=0x0, file=file@entry=0x555ea3aca3e8 "/test/11.0_dbg/storage/innobase/trx/trx0trx.cc", line=line@entry=1671) at /test/11.0_dbg/storage/innobase/ut/ut0dbg.cc:60
|
#6 0x0000555ea34eee92 in trx_mark_sql_stat_end (trx=trx@entry=0x15551b434b80) at /test/11.0_dbg/storage/innobase/trx/trx0trx.cc:1671
|
#7 0x0000555ea3308c1c in innobase_commit (hton=<optimized out>, thd=0x1554ac000d58, commit_trx=<optimized out>) at /test/11.0_dbg/storage/innobase/handler/ha_innodb.cc:4511
|
#8 0x0000555ea3035fe4 in commit_one_phase_2 (thd=thd@entry=0x1554ac000d58, all=all@entry=false, trans=trans@entry=0x1554ac004750, is_real_trans=false) at /test/11.0_dbg/sql/handler.cc:2125
|
#9 0x0000555ea30361bd in ha_commit_one_phase (thd=thd@entry=0x1554ac000d58, all=all@entry=false) at /test/11.0_dbg/sql/handler.cc:2078
|
#10 0x0000555ea3046b14 in ha_commit_trans (thd=thd@entry=0x1554ac000d58, all=all@entry=false) at /test/11.0_dbg/sql/handler.cc:1872
|
#11 0x0000555ea2ed56c7 in trans_commit_stmt (thd=thd@entry=0x1554ac000d58) at /test/11.0_dbg/sql/transaction.cc:472
|
#12 0x0000555ea2d6b5e3 in mysql_execute_command (thd=thd@entry=0x1554ac000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/11.0_dbg/sql/sql_parse.cc:6063
|
#13 0x0000555ea2d6c7cf in mysql_parse (thd=thd@entry=0x1554ac000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x1554ee9f32c0) at /test/11.0_dbg/sql/sql_parse.cc:8002
|
#14 0x0000555ea2d6e963 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1554ac000d58, packet=packet@entry=0x1554ac00ae19 "SET GLOBAL slow_query_log=1", packet_length=packet_length@entry=27, blocking=blocking@entry=true) at /test/11.0_dbg/sql/sql_class.h:242
|
#15 0x0000555ea2d707bc in do_command (thd=0x1554ac000d58, blocking=blocking@entry=true) at /test/11.0_dbg/sql/sql_parse.cc:1407
|
#16 0x0000555ea2ec16e2 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x555ea5920fd8, put_in_cache=put_in_cache@entry=true) at /test/11.0_dbg/sql/sql_connect.cc:1416
|
#17 0x0000555ea2ec1941 in handle_one_connection (arg=0x555ea5920fd8) at /test/11.0_dbg/sql/sql_connect.cc:1318
|
#18 0x0000155523d06b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
|
#19 0x0000155523d98a00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
|
Bug confirmed present in:
MariaDB: 10.3.38 (dbg), 10.3.38 (opt), 10.3.39 (dbg), 10.3.39 (opt), 10.4.29 (dbg), 10.4.29 (opt), 10.5.20 (dbg), 10.5.20 (opt), 10.6.13 (dbg), 10.6.13 (opt), 10.7.8 (dbg), 10.7.8 (opt), 10.8.8 (dbg), 10.8.8 (opt), 10.9.6 (dbg), 10.9.6 (opt), 10.10.4 (dbg), 10.10.4 (opt), 10.11.2 (dbg), 10.11.2 (opt), 10.11.3 (dbg), 10.11.3 (opt), 11.0.1 (dbg), 11.0.1 (opt)
|