[MDEV-25566] Assertion `!thd->wsrep_cs().current_error()' failed in void wsrep_after_command_ignore_result(THD*) Created: 2021-04-29  Updated: 2023-02-01

Status: Open
Project: MariaDB Server
Component/s: Galera
Affects Version/s: 10.4, 10.5, 10.6
Fix Version/s: 10.4, 10.5

Type: Bug Priority: Major
Reporter: Ramesh Sivaraman Assignee: Seppo Jaakola
Resolution: Unresolved Votes: 0
Labels: not-10.2, not-10.3


 Description   

CREATE EVENT EVENT2 ON SCHEDULE AT current_timestamp ON COMPLETION NOT PRESERVE DO SELECT 1;
SET GLOBAL wsrep_cluster_address='';
SET GLOBAL event_scheduler=1;
SELECT SLEEP(1);
SELECT SLEEP(1);
SELECT SLEEP(1);

Leads to:

10.6.0 8751aa7397b2e698fa0b46ec3e60abb9e2fd7e1b (Debug)

mysqld: /test/10.6_dbg/sql/wsrep_trans_observer.h:519: void wsrep_after_command_ignore_result(THD*): Assertion `!thd->wsrep_cs().current_error()' failed.

10.6.0 8751aa7397b2e698fa0b46ec3e60abb9e2fd7e1b (Debug)

Core was generated by `/test/GAL_MD200421-mariadb-10.6.0-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 0x14b4853cc700 (LWP 2319273))]
(gdb) bt
#0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
#1  0x00005566a06c470f in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
#2  0x000055669fe59c86 in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:343
#3  <signal handler called>
#4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#5  0x000014b487cba859 in __GI_abort () at abort.c:79
#6  0x000014b487cba729 in __assert_fail_base (fmt=0x14b487e50588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5566a0857e48 "!thd->wsrep_cs().current_error()", file=0x5566a0817578 "/test/10.6_dbg/sql/wsrep_trans_observer.h", line=519, function=<optimized out>) at assert.c:92
#7  0x000014b487ccbf36 in __GI___assert_fail (assertion=assertion@entry=0x5566a0857e48 "!thd->wsrep_cs().current_error()", file=file@entry=0x5566a0817578 "/test/10.6_dbg/sql/wsrep_trans_observer.h", line=line@entry=519, function=function@entry=0x5566a0857e70 "void wsrep_after_command_ignore_result(THD*)") at assert.c:101
#8  0x000055669fcc7d67 in wsrep_after_command_ignore_result (thd=0x14b460000958) at /test/10.6_dbg/wsrep-lib/include/wsrep/client_state.hpp:1009
#9  Event_job_data::execute (this=this@entry=0x14b4853cbb40, thd=thd@entry=0x14b460000958, drop=<optimized out>) at /test/10.6_dbg/sql/event_data_objects.cc:1560
#10 0x00005566a008192f in Event_worker_thread::run (this=this@entry=0x14b4853cbddf, thd=thd@entry=0x14b460000958, event=event@entry=0x14b460029150) at /test/10.6_dbg/sql/event_scheduler.cc:323
#11 0x00005566a0081b1b in event_worker_thread (arg=arg@entry=0x14b460029150) at /test/10.6_dbg/sql/event_scheduler.cc:268
#12 0x00005566a01a12f7 in pfs_spawn_thread (arg=0x5566a360d1b8) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
#13 0x000014b4881c8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#14 0x000014b487db7293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Bug confirmed present in:
MariaDB: 10.4.19 (dbg), 10.5.10 (dbg), 10.6.0 (dbg)

Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.38 (dbg), 10.3.29 (dbg)


Generated at Thu Feb 08 09:38:40 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.