Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5 , 10.6
Seemingly different from MDEV-14472 , MDEV-17814 :
# mysqld options required for replay: --log-bin
SET GLOBAL autocommit=0;
SET GLOBAL event_scheduler= ON;
SET timestamp=12345;
CREATE TABLE t1 (c1 INT ZEROFILL NULL);
CREATE EVENT e1 ON SCHEDULE AT current_timestamp + INTERVAL 1 DAY DO INSERT INTO t1 VALUES (1);
SELECT SLEEP (3);
Leads to:
10.6.0 9118fd360a3da0bba521caf2a35c424968235ac4 (Debug)
mysqld: /test/10.6_dbg/sql/sql_class.h:4360: void THD::restore_stmt_binlog_format(enum_binlog_format): Assertion `!is_current_stmt_binlog_format_row()' failed.
10.6.0 9118fd360a3da0bba521caf2a35c424968235ac4 (Debug)
Core was generated by `/test/MD010121-mariadb-10.6.0-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:56
[Current thread is 1 (Thread 0x152c90664700 (LWP 1680884))]
(gdb) bt
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
#1 0x0000557e964840d7 in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
#2 0x0000557e95c18ab1 in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:330
#3 <signal handler called>
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#5 0x0000152c93303859 in __GI_abort () at abort.c:79
#6 0x0000152c93303729 in __assert_fail_base (fmt=0x152c93499588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x557e965d8130 "!is_current_stmt_binlog_format_row()", file=0x557e965c21e0 "/test/10.6_dbg/sql/sql_class.h", line=4360, function=<optimized out>) at assert.c:92
#7 0x0000152c93314f36 in __GI___assert_fail (assertion=assertion@entry=0x557e965d8130 "!is_current_stmt_binlog_format_row()", file=file@entry=0x557e965c21e0 "/test/10.6_dbg/sql/sql_class.h", line=line@entry=4360, function=function@entry=0x557e965d8158 "void THD::restore_stmt_binlog_format(enum_binlog_format)") at assert.c:101
#8 0x0000557e95a86486 in THD::restore_stmt_binlog_format (format=BINLOG_FORMAT_STMT, this=0x152c30004008) at /test/10.6_dbg/sql/sql_class.h:4360
#9 Events::drop_event (thd=thd@entry=0x152c30004008, dbname=dbname@entry=0x152c90663b88, name=name@entry=0x152c90663b98, if_exists=if_exists@entry=false) at /test/10.6_dbg/sql/events.cc:629
#10 0x0000557e95a843ea in Event_job_data::execute (this=this@entry=0x152c90663b40, thd=thd@entry=0x152c30004008, drop=<optimized out>) at /test/10.6_dbg/sql/event_data_objects.cc:1543
#11 0x0000557e95e4011d in Event_worker_thread::run (this=this@entry=0x152c90663ddf, thd=thd@entry=0x152c30004008, event=event@entry=0x152c30002230) at /test/10.6_dbg/sql/event_scheduler.cc:323
#12 0x0000557e95e40309 in event_worker_thread (arg=arg@entry=0x152c30002230) at /test/10.6_dbg/sql/event_scheduler.cc:268
#13 0x0000557e95f6388f in pfs_spawn_thread (arg=0x152c2c01b918) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
#14 0x0000152c93811609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#15 0x0000152c93400293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed present in:
MariaDB: 10.2.37 (dbg), 10.3.28 (dbg), 10.4.18 (dbg), 10.5.9 (dbg), 10.6.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.37 (opt), 10.3.28 (opt), 10.4.18 (opt), 10.5.9 (opt), 10.6.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.50 (dbg), 5.6.50 (opt), 5.7.32 (dbg), 5.7.32 (opt), 8.0.22 (dbg), 8.0.22 (opt)
10.5 and 10.6 crash with the above stack on debug. 10.4 and earlier crash with this stack instead:
10.4.18 3454b5cf35a61e8f6cfab376638520dee4a50609 (Debug)
mysqld: /test/10.4_dbg/sql/sql_base.cc:897: void close_thread_tables(THD*): Assertion `thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)' failed.
10.4.18 3454b5cf35a61e8f6cfab376638520dee4a50609 (Debug)
Core was generated by `/test/MD010121-mariadb-10.4.18-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:56
[Current thread is 1 (Thread 0x151838085700 (LWP 1751357))]
(gdb) bt
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
#1 0x000055674b19eebd in my_write_core (sig=sig@entry=6) at /test/10.4_dbg/mysys/stacktrace.c:386
#2 0x000055674a8b5abf in handle_fatal_signal (sig=6) at /test/10.4_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 0x000015184d5f7859 in __GI_abort () at abort.c:79
#6 0x000015184d5f7729 in __assert_fail_base (fmt=0x15184d78d588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55674b268ec0 "thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)", file=0x55674b268770 "/test/10.4_dbg/sql/sql_base.cc", line=897, function=<optimized out>) at assert.c:92
#7 0x000015184d608f36 in __GI___assert_fail (assertion=assertion@entry=0x55674b268ec0 "thd->transaction.stmt.is_empty() || thd->in_sub_stmt || (thd->state_flags & Open_tables_state::BACKUPS_AVAIL)", file=file@entry=0x55674b268770 "/test/10.4_dbg/sql/sql_base.cc", line=line@entry=897, function=function@entry=0x55674b268ea0 "void close_thread_tables(THD*)") at assert.c:101
#8 0x000055674a555d67 in close_thread_tables (thd=thd@entry=0x1517d0003b10) at /test/10.4_dbg/sql/handler.h:1771
#9 0x000055674aacfe6c in Event_db_repository::drop_event (this=0x55674d0f1830, thd=thd@entry=0x1517d0003b10, db=db@entry=0x151838084d90, name=name@entry=0x151838084da0, drop_if_exists=drop_if_exists@entry=false) at /test/10.4_dbg/sql/event_db_repository.cc:923
#10 0x000055674a70865e in Events::drop_event (thd=thd@entry=0x1517d0003b10, dbname=dbname@entry=0x151838084d90, name=name@entry=0x151838084da0, if_exists=if_exists@entry=false) at /test/10.4_dbg/sql/events.cc:616
#11 0x000055674a7067cd in Event_job_data::execute (this=this@entry=0x151838084d40, thd=thd@entry=0x1517d0003b10, drop=<optimized out>) at /test/10.4_dbg/sql/event_data_objects.cc:1520
#12 0x000055674aaca5e1 in Event_worker_thread::run (this=this@entry=0x151838084e4f, thd=thd@entry=0x1517d0003b10, event=event@entry=0x1517d0001f70) at /test/10.4_dbg/sql/event_scheduler.cc:313
#13 0x000055674aaca7d8 in event_worker_thread (arg=0x1517d0001f70) at /test/10.4_dbg/sql/event_scheduler.cc:267
#14 0x000015184dbb4609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#15 0x000015184d6f4293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
And there are many bugs with a similar assert message to that one.
{"report":{"fcp":724.5999994277954,"ttfb":184.5999994277954,"pageVisibility":"visible","entityId":95641,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"ebfd24b4-d8fa-42fd-87c2-52bdc866df2f","navigationType":0,"readyForUser":814.3999996185303,"redirectCount":0,"resourceLoadedEnd":873.6999998092651,"resourceLoadedStart":191.39999961853027,"resourceTiming":[{"duration":6.899999618530273,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":191.39999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":191.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":198.29999923706055,"responseStart":0,"secureConnectionStart":0},{"duration":6.800000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":191.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":191.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":198.5,"responseStart":0,"secureConnectionStart":0},{"duration":82,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":191.89999961853027,"connectEnd":191.89999961853027,"connectStart":191.89999961853027,"domainLookupEnd":191.89999961853027,"domainLookupStart":191.89999961853027,"fetchStart":191.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":191.89999961853027,"responseEnd":273.8999996185303,"responseStart":273.8999996185303,"secureConnectionStart":191.89999961853027},{"duration":107.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":192,"connectEnd":192,"connectStart":192,"domainLookupEnd":192,"domainLookupStart":192,"fetchStart":192,"redirectEnd":0,"redirectStart":0,"requestStart":192,"responseEnd":299.5,"responseStart":299.5,"secureConnectionStart":192},{"duration":111,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":192.19999980926514,"connectEnd":192.19999980926514,"connectStart":192.19999980926514,"domainLookupEnd":192.19999980926514,"domainLookupStart":192.19999980926514,"fetchStart":192.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":192.19999980926514,"responseEnd":303.19999980926514,"responseStart":303.19999980926514,"secureConnectionStart":192.19999980926514},{"duration":111.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":192.39999961853027,"connectEnd":192.39999961853027,"connectStart":192.39999961853027,"domainLookupEnd":192.39999961853027,"domainLookupStart":192.39999961853027,"fetchStart":192.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":192.39999961853027,"responseEnd":303.5999994277954,"responseStart":303.5999994277954,"secureConnectionStart":192.39999961853027},{"duration":111.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":192.5999994277954,"connectEnd":192.5999994277954,"connectStart":192.5999994277954,"domainLookupEnd":192.5999994277954,"domainLookupStart":192.5999994277954,"fetchStart":192.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":192.5999994277954,"responseEnd":304.19999980926514,"responseStart":304.19999980926514,"secureConnectionStart":192.5999994277954},{"duration":112.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":192.79999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":305.29999923706055,"responseStart":0,"secureConnectionStart":0},{"duration":112.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":192.89999961853027,"connectEnd":192.89999961853027,"connectStart":192.89999961853027,"domainLookupEnd":192.89999961853027,"domainLookupStart":192.89999961853027,"fetchStart":192.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":192.89999961853027,"responseEnd":305.0999994277954,"responseStart":305.0999994277954,"secureConnectionStart":192.89999961853027},{"duration":113,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":193,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":306,"responseStart":0,"secureConnectionStart":0},{"duration":112.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":193.19999980926514,"connectEnd":193.19999980926514,"connectStart":193.19999980926514,"domainLookupEnd":193.19999980926514,"domainLookupStart":193.19999980926514,"fetchStart":193.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":193.19999980926514,"responseEnd":306,"responseStart":306,"secureConnectionStart":193.19999980926514},{"duration":242,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":194.0999994277954,"connectEnd":194.0999994277954,"connectStart":194.0999994277954,"domainLookupEnd":194.0999994277954,"domainLookupStart":194.0999994277954,"fetchStart":194.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":194.0999994277954,"responseEnd":436.0999994277954,"responseStart":436.0999994277954,"secureConnectionStart":194.0999994277954},{"duration":269.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":194.0999994277954,"connectEnd":194.0999994277954,"connectStart":194.0999994277954,"domainLookupEnd":194.0999994277954,"domainLookupStart":194.0999994277954,"fetchStart":194.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":194.0999994277954,"responseEnd":463.3999996185303,"responseStart":463.3999996185303,"secureConnectionStart":194.0999994277954},{"duration":206.79999923706055,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":505,"connectEnd":505,"connectStart":505,"domainLookupEnd":505,"domainLookupStart":505,"fetchStart":505,"redirectEnd":0,"redirectStart":0,"requestStart":505,"responseEnd":711.7999992370605,"responseStart":711.7999992370605,"secureConnectionStart":505},{"duration":134.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":718.7999992370605,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":718.7999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":853.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":124.10000038146973,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":742.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":742.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":866.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":123.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":743.3999996185303,"connectEnd":743.3999996185303,"connectStart":743.3999996185303,"domainLookupEnd":743.3999996185303,"domainLookupStart":743.3999996185303,"fetchStart":743.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":743.3999996185303,"responseEnd":866.5,"responseStart":866.5,"secureConnectionStart":743.3999996185303},{"duration":129.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":743.8999996185303,"connectEnd":743.8999996185303,"connectStart":743.8999996185303,"domainLookupEnd":743.8999996185303,"domainLookupStart":743.8999996185303,"fetchStart":743.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":743.8999996185303,"responseEnd":873.6999998092651,"responseStart":873.6999998092651,"secureConnectionStart":743.8999996185303},{"duration":51.70000076293945,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":875.2999992370605,"connectEnd":875.2999992370605,"connectStart":875.2999992370605,"domainLookupEnd":875.2999992370605,"domainLookupStart":875.2999992370605,"fetchStart":875.2999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":875.2999992370605,"responseEnd":927,"responseStart":927,"secureConnectionStart":875.2999992370605}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":14,"responseStart":185,"responseEnd":187,"domLoading":189,"domInteractive":877,"domContentLoadedEventStart":877,"domContentLoadedEventEnd":919,"domComplete":1145,"loadEventStart":1145,"loadEventEnd":1145,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":854.7999992370605},{"name":"bigPipe.sidebar-id.end","time":855.5999994277954},{"name":"bigPipe.activity-panel-pipe-id.start","time":855.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":858.1999998092651},{"name":"activityTabFullyLoaded","time":932.7999992370605}],"measures":[],"correlationId":"2d767d77d29aa7","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}