Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.6 , 10.11 , 11.2(EOL) , 11.4 , 11.6(EOL) , 11.7(EOL)
Possibly related: MDEV-25850 , MDEV-26636 , MDEV-29277 , MDEV-29507 , MDEV-30337
# MYEXTRA= "--no-defaults --sql_mode="
# REPL_EXTRA= "--gtid_strict_mode=1 --relay-log=relaylog" # used for both master & slave
# MASTER_EXTRA= "--log_bin=binlog --binlog_format=STATEMENT --log_bin_trust_function_creators=1 --server_id=1"
# SLAVE_EXTRA= "--slave-parallel-threads=11 --slave-parallel-mode=aggressive --slave-parallel-max-queued=1073741827 --slave_run_triggers_for_rbr=LOGGING --slave_skip_errors=ALL --server_id=2"
CREATE TABLE t1 (a1 VARCHAR (1), a2 VARCHAR (1)) ENGINE=InnoDB;
XA START 'a' ;
CREATE TEMPORARY TABLE t1 (c1 INT ) ENGINE=InnoDB;
INSERT INTO t1 VALUES ( 'a' );
INSERT IGNORE INTO t1 VALUES (@inserted_value);
XA END 'a' ;
XA ROLLBACK 'a' ;
SET SESSION gtid_domain_id=102;
Leads, very sporadically, to:
10.6.18 0ccdf54b644352f42e1768bc660be7ab50c1e9d2 (Debug)
Core was generated by `/test/MD240424-mariadb-10.6.18-linux-x86_64-dbg/bin/mariadbd --no-defaults --ba'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
[Current thread is 1 (LWP 2457798)]
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ./nptl/pthread_kill.c:89
#3 0x00001508c683c406 in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
#4 0x00001508c682287c in __GI_abort () at ./stdlib/abort.c:79
#5 0x000055b283f69902 in ut_dbg_assertion_failed (expr=expr@entry=0x55b2845e0fe1 "table->get_ref_count() == 0", file=file@entry=0x55b2845e1250 "/test/10.6_dbg/storage/innobase/dict/dict0dict.cc", line=line@entry=1826)at /test/10.6_dbg/storage/innobase/ut/ut0dbg.cc:60
#6 0x000055b28401cfab in dict_sys_t::remove (this=this@entry=0x55b284bfa980 <dict_sys>, table=0x150850021e38, lru=lru@entry=false, keep=keep@entry=false)at /test/10.6_dbg/storage/innobase/dict/dict0dict.cc:1826
#7 0x000055b283d5f650 in ha_innobase::delete_table (this=<optimized out>, name=<optimized out>)at /test/10.6_dbg/storage/innobase/handler/ha_innodb.cc:13528
#8 0x000055b2839c79c1 in hton_drop_table (hton=<optimized out>, path=<optimized out>) at /test/10.6_dbg/sql/handler.cc:573
#9 0x000055b28392bc8b in THD::rm_temporary_table (this=<optimized out>, base=0x55b286f5cc18, path=0x150850020f70 "/dev/shm/1714686204629124488/subreducer/289/tmp_slave/#sql-temptable-25632b-c-0") at /test/10.6_dbg/sql/temporary_tables.cc:705
#10 0x000055b28392c31e in THD::free_tmp_table_share (this=this@entry=0x150854000d58, share=share@entry=0x150850020958, delete_table=delete_table@entry=true)at /test/10.6_dbg/sql/temporary_tables.cc:1473
#11 0x000055b28392db50 in THD::drop_temporary_table (this=this@entry=0x150854000d58, table=<optimized out>, is_trans=is_trans@entry=0x1508a1964be7, delete_table=delete_table@entry=true)at /test/10.6_dbg/sql/temporary_tables.cc:673
#12 0x000055b2837c1c9e in mysql_rm_table_no_locks (thd=thd@entry=0x150854000d58, tables=tables@entry=0x15085400ae78, current_db=current_db@entry=0x150854000df8, ddl_log_state=0x1508a1964c40, ddl_log_state@entry=0x0, if_exists=if_exists@entry=true, drop_temporary=drop_temporary@entry=true, drop_view=false, drop_sequence=false, dont_log_query=false, dont_free_locks=false)at /test/10.6_dbg/sql/sql_table.cc:1321
#13 0x000055b2837c450f in mysql_rm_table (thd=thd@entry=0x150854000d58, tables=tables@entry=0x15085400ae78, if_exists=<optimized out>, drop_temporary=<optimized out>, drop_sequence=<optimized out>, dont_log_query=dont_log_query@entry=false)at /test/10.6_dbg/sql/sql_table.cc:1069
#14 0x000055b283706796 in mysql_execute_command (thd=thd@entry=0x150854000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false)at /test/10.6_dbg/sql/sql_parse.cc:5030
#15 0x000055b28370b0b4 in mysql_parse (thd=0x150854000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x1508a19658b0)at /test/10.6_dbg/sql/sql_parse.cc:8146
#16 0x000055b283b2ffe2 in Query_log_event::do_apply_event (this=0x15086c037098, rgi=0x15086c02edc0, query_arg=0x15086c037203 "DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `t1`", q_len_arg=<optimized out>) at /test/10.6_dbg/sql/sql_class.h:240
#17 0x000055b283b3091e in Query_log_event::do_apply_event (this=<optimized out>, rgi=<optimized out>)at /test/10.6_dbg/sql/log_event_server.cc:1609
#18 0x000055b28362c4e5 in Log_event::apply_event (rgi=0x15086c02edc0, this=0x15086c037098) at /test/10.6_dbg/sql/log_event.h:1509
#19 apply_event_and_update_pos_apply (ev=ev@entry=0x15086c037098, thd=thd@entry=0x150854000d58, rgi=rgi@entry=0x15086c02edc0, reason=reason@entry=0) at /test/10.6_dbg/sql/slave.cc:3906
#20 0x000055b28363672c in apply_event_and_update_pos_for_parallel (ev=ev@entry=0x15086c037098, thd=thd@entry=0x150854000d58, rgi=rgi@entry=0x15086c02edc0) at /test/10.6_dbg/sql/slave.cc:4102
#21 0x000055b2838d6508 in rpt_handle_event (qev=qev@entry=0x15086c02e968, rpt=rpt@entry=0x15086c00f7c0) at /test/10.6_dbg/sql/rpl_parallel.cc:64
#22 0x000055b2838db02b in handle_rpl_parallel_thread (arg=arg@entry=0x15086c00f7c0) at /test/10.6_dbg/sql/rpl_parallel.cc:1525
#23 0x000055b283ca0f78 in pfs_spawn_thread (arg=0x15086c012c38)at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
#24 0x00001508c688f18a in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:444
#25 0x00001508c691dbd0 in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Note the crashing query from the stack:
DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `t1`
Is not directly part of the testcase.
NTS: ~/MDEV-34049 | sc30985
{"report":{"fcp":1029.5,"ttfb":339.2999997138977,"pageVisibility":"visible","entityId":128987,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"57e35383-62aa-4ad4-a766-1ea00e2b78c4","navigationType":0,"readyForUser":1175.7999997138977,"redirectCount":0,"resourceLoadedEnd":1161.4000000953674,"resourceLoadedStart":344.90000009536743,"resourceTiming":[{"duration":136.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":344.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":344.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":481.5,"responseStart":0,"secureConnectionStart":0},{"duration":136.59999990463257,"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":345.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":345.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":481.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":158.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":345.40000009536743,"connectEnd":345.40000009536743,"connectStart":345.40000009536743,"domainLookupEnd":345.40000009536743,"domainLookupStart":345.40000009536743,"fetchStart":345.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":345.40000009536743,"responseEnd":503.5,"responseStart":503.5,"secureConnectionStart":345.40000009536743},{"duration":235.40000009536743,"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":345.59999990463257,"connectEnd":345.59999990463257,"connectStart":345.59999990463257,"domainLookupEnd":345.59999990463257,"domainLookupStart":345.59999990463257,"fetchStart":345.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":345.59999990463257,"responseEnd":581,"responseStart":580.9000000953674,"secureConnectionStart":345.59999990463257},{"duration":239.10000038146973,"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":345.7999997138977,"connectEnd":345.7999997138977,"connectStart":345.7999997138977,"domainLookupEnd":345.7999997138977,"domainLookupStart":345.7999997138977,"fetchStart":345.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":345.7999997138977,"responseEnd":584.9000000953674,"responseStart":584.9000000953674,"secureConnectionStart":345.7999997138977},{"duration":239.40000009536743,"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":346,"connectEnd":346,"connectStart":346,"domainLookupEnd":346,"domainLookupStart":346,"fetchStart":346,"redirectEnd":0,"redirectStart":0,"requestStart":346,"responseEnd":585.4000000953674,"responseStart":585.4000000953674,"secureConnectionStart":346},{"duration":239.5,"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":346.2999997138977,"connectEnd":346.2999997138977,"connectStart":346.2999997138977,"domainLookupEnd":346.2999997138977,"domainLookupStart":346.2999997138977,"fetchStart":346.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":346.2999997138977,"responseEnd":585.7999997138977,"responseStart":585.7999997138977,"secureConnectionStart":346.2999997138977},{"duration":307.09999990463257,"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":346.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":346.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":653.5,"responseStart":0,"secureConnectionStart":0},{"duration":239.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":346.59999990463257,"connectEnd":346.59999990463257,"connectStart":346.59999990463257,"domainLookupEnd":346.59999990463257,"domainLookupStart":346.59999990463257,"fetchStart":346.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":346.59999990463257,"responseEnd":586.1999998092651,"responseStart":586.1999998092651,"secureConnectionStart":346.59999990463257},{"duration":306.90000009536743,"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":346.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":346.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":653.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":239.89999961853027,"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":346.90000009536743,"connectEnd":346.90000009536743,"connectStart":346.90000009536743,"domainLookupEnd":346.90000009536743,"domainLookupStart":346.90000009536743,"fetchStart":346.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":346.90000009536743,"responseEnd":586.7999997138977,"responseStart":586.7999997138977,"secureConnectionStart":346.90000009536743},{"duration":550,"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":353.19999980926514,"connectEnd":353.19999980926514,"connectStart":353.19999980926514,"domainLookupEnd":353.19999980926514,"domainLookupStart":353.19999980926514,"fetchStart":353.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":353.19999980926514,"responseEnd":903.1999998092651,"responseStart":903.1999998092651,"secureConnectionStart":353.19999980926514},{"duration":792.5999999046326,"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":353.5,"connectEnd":353.5,"connectStart":353.5,"domainLookupEnd":353.5,"domainLookupStart":353.5,"fetchStart":353.5,"redirectEnd":0,"redirectStart":0,"requestStart":353.5,"responseEnd":1146.0999999046326,"responseStart":1146.0999999046326,"secureConnectionStart":353.5},{"duration":242.2999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":666,"connectEnd":666,"connectStart":666,"domainLookupEnd":666,"domainLookupStart":666,"fetchStart":666,"redirectEnd":0,"redirectStart":0,"requestStart":666,"responseEnd":908.2999997138977,"responseStart":908.1999998092651,"secureConnectionStart":666},{"duration":213.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&slack-enabled=true&whisper-enabled=true","startTime":948,"connectEnd":948,"connectStart":948,"domainLookupEnd":948,"domainLookupStart":948,"fetchStart":948,"redirectEnd":0,"redirectStart":0,"requestStart":948,"responseEnd":1161.4000000953674,"responseStart":1161.4000000953674,"secureConnectionStart":948},{"duration":206.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1021.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1021.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1228.2999997138977,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":66,"responseStart":339,"responseEnd":351,"domLoading":343,"domInteractive":1250,"domContentLoadedEventStart":1250,"domContentLoadedEventEnd":1299,"domComplete":1659,"loadEventStart":1659,"loadEventEnd":1659,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1233.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1234.2999997138977},{"name":"bigPipe.activity-panel-pipe-id.start","time":1234.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1236.1999998092651},{"name":"activityTabFullyLoaded","time":1329}],"measures":[],"correlationId":"7c84567daef98d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":206,"dbReadsTimeInMs":67,"dbConnsTimeInMs":97,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}