Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5 , 10.6
CREATE TABLE t (c INT) ENGINE=InnoDB;
INSERT INTO t VALUES(0);
CREATE TEMPORARY TABLE t2 (c INT) ENGINE=InnoDB;
START TRANSACTION READ ONLY;
INSERT INTO t2 SELECT * FROM t;
OR
USE test;
CREATE TEMPORARY TABLE t (c INT,c2 INT) ENGINE=InnoDB;
START TRANSACTION READ ONLY;
INSERT INTO t VALUES(0);
SAVEPOINT s;
INSERT INTO t VALUES(0,0);
Leads to:
10.5.3 364e7a9ae6b5fbf69494cec30733b5ad28738cbb
mysqld: /test/10.5_dbg/storage/innobase/include/trx0sys.h:92: void trx_write_trx_id(byte*, trx_id_t): Assertion `id' failed.
10.5.3 364e7a9ae6b5fbf69494cec30733b5ad28738cbb
Core was generated by `/test/MD110420-mariadb-10.5.3-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 0x7f1c88a03700 (LWP 12982))]
(gdb) bt
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
#1 0x000055f4f3f8721e in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
#2 0x000055f4f372d08f in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:329
#3 <signal handler called>
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#5 0x00007f1c87147801 in __GI_abort () at abort.c:79
#6 0x00007f1c8713739a in __assert_fail_base (fmt=0x7f1c872be7d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55f4f4385ca9 "id", file=file@entry=0x55f4f437bd18 "/test/10.5_dbg/storage/innobase/include/trx0sys.h", line=line@entry=92, function=function@entry=0x55f4f43c3b20 <_ZZL16trx_write_trx_idPhmE19__PRETTY_FUNCTION__> "void trx_write_trx_id(byte*, trx_id_t)") at assert.c:92
#7 0x00007f1c87137412 in __GI___assert_fail (assertion=assertion@entry=0x55f4f4385ca9 "id", file=file@entry=0x55f4f437bd18 "/test/10.5_dbg/storage/innobase/include/trx0sys.h", line=line@entry=92, function=function@entry=0x55f4f43c3b20 <_ZZL16trx_write_trx_idPhmE19__PRETTY_FUNCTION__> "void trx_write_trx_id(byte*, trx_id_t)") at assert.c:101
#8 0x000055f4f3c45a1e in trx_write_trx_id (id=0, db_trx_id=0x7f1c5b574626 "") at /test/10.5_dbg/storage/innobase/include/trx0sys.h:92
#9 row_ins_step (thr=thr@entry=0x7f1c5b5747b8) at /test/10.5_dbg/storage/innobase/row/row0ins.cc:3720
#10 0x000055f4f3c65ead in row_insert_for_mysql (mysql_rec=mysql_rec@entry=0x7f1c5b44eba8 <incomplete sequence \375>, prebuilt=0x7f1c5b574098, ins_mode=<optimized out>) at /test/10.5_dbg/storage/innobase/row/row0mysql.cc:1462
#11 0x000055f4f3afd47d in ha_innobase::write_row (this=0x7f1c5b555aa0, record=0x7f1c5b44eba8 <incomplete sequence \375>) at /test/10.5_dbg/storage/innobase/handler/ha_innodb.cc:7771
#12 0x000055f4f3741011 in handler::ha_write_row (this=0x7f1c5b555aa0, buf=0x7f1c5b44eba8 <incomplete sequence \375>) at /test/10.5_dbg/sql/handler.cc:6950
#13 0x000055f4f34426db in write_record (thd=0x7f1c5b415088, table=0x7f1c5b573088, info=info@entry=0x7f1c5b475e20, sink=0x0) at /test/10.5_dbg/sql/sql_insert.cc:2091
#14 0x000055f4f3442b09 in select_insert::send_data (this=0x7f1c5b475dd0, values=...) at /test/10.5_dbg/sql/sql_insert.cc:4049
#15 0x000055f4f34da251 in select_result_sink::send_data_with_check (sent=<optimized out>, u=<optimized out>, items=..., this=<optimized out>) at /test/10.5_dbg/sql/sql_class.h:5236
#16 end_send (join=0x7f1c5b475e88, join_tab=0x7f1c5b477598, end_of_records=<optimized out>) at /test/10.5_dbg/sql/sql_select.cc:21799
#17 0x000055f4f34c24d1 in evaluate_join_record (join=join@entry=0x7f1c5b475e88, join_tab=join_tab@entry=0x7f1c5b4771f0, error=error@entry=0) at /test/10.5_dbg/sql/sql_select.cc:20828
#18 0x000055f4f34c984f in sub_select (join=0x7f1c5b475e88, join_tab=0x7f1c5b4771f0, end_of_records=<optimized out>) at /test/10.5_dbg/sql/sql_select.cc:20605
#19 0x000055f4f3501650 in do_select (procedure=0x0, join=0x7f1c5b475e88) at /test/10.5_dbg/sql/sql_select.cc:20139
#20 JOIN::exec_inner (this=this@entry=0x7f1c5b475e88) at /test/10.5_dbg/sql/sql_select.cc:4463
#21 0x000055f4f3501c6b in JOIN::exec (this=this@entry=0x7f1c5b475e88) at /test/10.5_dbg/sql/sql_select.cc:4244
#22 0x000055f4f34fff80 in mysql_select (thd=thd@entry=0x7f1c5b415088, tables=<optimized out>, fields=..., conds=0x0, og_num=0, order=<optimized out>, group=0x0, having=0x0, proc_param=0x0, select_options=2202245794560, result=0x7f1c5b475dd0, unit=0x7f1c5b419090, select_lex=0x7f1c5b474860) at /test/10.5_dbg/sql/sql_select.cc:4668
#23 0x000055f4f35002af in handle_select (thd=thd@entry=0x7f1c5b415088, lex=lex@entry=0x7f1c5b418fc8, result=result@entry=0x7f1c5b475dd0, setup_tables_done_option=setup_tables_done_option@entry=1073741824) at /test/10.5_dbg/sql/sql_select.cc:417
#24 0x000055f4f3485624 in mysql_execute_command (thd=thd@entry=0x7f1c5b415088) at /test/10.5_dbg/sql/sql_parse.cc:4661
#25 0x000055f4f34909d1 in mysql_parse (thd=thd@entry=0x7f1c5b415088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f1c88a02450, 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:7953
#26 0x000055f4f347c719 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7f1c5b415088, packet=packet@entry=0x7f1c5b467089 "INSERT INTO t2 SELECT * FROM t", packet_length=packet_length@entry=30, 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:1839
#27 0x000055f4f347af6f in do_command (thd=0x7f1c5b415088) at /test/10.5_dbg/sql/sql_parse.cc:1358
#28 0x000055f4f35d5a53 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x7f1c5f4433a8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1422
#29 0x000055f4f35d5d82 in handle_one_connection (arg=arg@entry=0x7f1c5f4433a8) at /test/10.5_dbg/sql/sql_connect.cc:1319
#30 0x000055f4f3a36080 in pfs_spawn_thread (arg=0x7f1c86445888) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
#31 0x00007f1c87e2a6db in start_thread (arg=0x7f1c88a03700) at pthread_create.c:463
#32 0x00007f1c8722888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed present in:
MariaDB: 10.2.32 (dbg), 10.3.23 (dbg), 10.4.13 (dbg), 10.5.2 (dbg), 10.5.3 (dbg)
Bug confirmed not present in:
MariaDB: 10.1.45 (dbg), 10.1.45 (opt), 10.2.32 (opt), 10.3.23 (opt), 10.4.13 (opt), 10.5.2 (opt), 10.5.3 (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)
{"report":{"fcp":944.5999999046326,"ttfb":163,"pageVisibility":"visible","entityId":85528,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"91004efa-65a4-4f58-a6ce-a606ec21b93b","navigationType":0,"readyForUser":1036.1999998092651,"redirectCount":0,"resourceLoadedEnd":1062.0999999046326,"resourceLoadedStart":167.79999995231628,"resourceTiming":[{"duration":145.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":167.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":167.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":313.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":145.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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","startTime":168.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":168.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":313.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":154.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/b09d0d077992e4331b5f9ec0d3ec448c-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":168.19999980926514,"connectEnd":168.19999980926514,"connectStart":168.19999980926514,"domainLookupEnd":168.19999980926514,"domainLookupStart":168.19999980926514,"fetchStart":168.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":168.19999980926514,"responseEnd":322.59999990463257,"responseStart":322.59999990463257,"secureConnectionStart":168.19999980926514},{"duration":413.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/b47ab3df14096803b180217eb8482517-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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","startTime":168.29999995231628,"connectEnd":168.29999995231628,"connectStart":168.29999995231628,"domainLookupEnd":168.29999995231628,"domainLookupStart":168.29999995231628,"fetchStart":168.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":168.29999995231628,"responseEnd":581.5,"responseStart":581.5,"secureConnectionStart":168.29999995231628},{"duration":416.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/6c569cbf8087ab04e40d0bef98627457-CDN/lu2bsh/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":168.39999985694885,"connectEnd":168.39999985694885,"connectStart":168.39999985694885,"domainLookupEnd":168.39999985694885,"domainLookupStart":168.39999985694885,"fetchStart":168.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":168.39999985694885,"responseEnd":584.6999998092651,"responseStart":584.6999998092651,"secureConnectionStart":168.39999985694885},{"duration":416.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":168.5,"connectEnd":168.5,"connectStart":168.5,"domainLookupEnd":168.5,"domainLookupStart":168.5,"fetchStart":168.5,"redirectEnd":0,"redirectStart":0,"requestStart":168.5,"responseEnd":585.1999998092651,"responseStart":585.1999998092651,"secureConnectionStart":168.5},{"duration":416.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":168.69999980926514,"connectEnd":168.69999980926514,"connectStart":168.69999980926514,"domainLookupEnd":168.69999980926514,"domainLookupStart":168.69999980926514,"fetchStart":168.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":168.69999980926514,"responseEnd":585.5,"responseStart":585.5,"secureConnectionStart":168.69999980926514},{"duration":417.2000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bsh/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":168.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":168.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":586,"responseStart":0,"secureConnectionStart":0},{"duration":417.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":168.79999995231628,"connectEnd":168.79999995231628,"connectStart":168.79999995231628,"domainLookupEnd":168.79999995231628,"domainLookupStart":168.79999995231628,"fetchStart":168.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":168.79999995231628,"responseEnd":586,"responseStart":586,"secureConnectionStart":168.79999995231628},{"duration":417.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bsh/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":169,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":169,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":586.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":417.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/81b5d7c27af3ebc078cc4a36383678ba-CDN/lu2bsh/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":169.09999990463257,"connectEnd":169.09999990463257,"connectStart":169.09999990463257,"domainLookupEnd":169.09999990463257,"domainLookupStart":169.09999990463257,"fetchStart":169.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":169.09999990463257,"responseEnd":586.5,"responseStart":586.5,"secureConnectionStart":169.09999990463257},{"duration":599.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":175.39999985694885,"connectEnd":175.39999985694885,"connectStart":175.39999985694885,"domainLookupEnd":175.39999985694885,"domainLookupStart":175.39999985694885,"fetchStart":175.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":175.39999985694885,"responseEnd":774.7999999523163,"responseStart":774.7999999523163,"secureConnectionStart":175.39999985694885},{"duration":775.8999998569489,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":177.5,"connectEnd":177.5,"connectStart":177.5,"domainLookupEnd":177.5,"domainLookupStart":177.5,"fetchStart":177.5,"redirectEnd":0,"redirectStart":0,"requestStart":177.5,"responseEnd":953.3999998569489,"responseStart":953.3999998569489,"secureConnectionStart":177.5},{"duration":297.89999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":475.7999999523163,"connectEnd":475.7999999523163,"connectStart":475.7999999523163,"domainLookupEnd":475.7999999523163,"domainLookupStart":475.7999999523163,"fetchStart":475.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":475.7999999523163,"responseEnd":773.6999998092651,"responseStart":773.6999998092651,"secureConnectionStart":475.7999999523163},{"duration":103.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bsh/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","startTime":850.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":850.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":954,"responseStart":0,"secureConnectionStart":0},{"duration":181.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/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","startTime":851.5,"connectEnd":851.5,"connectStart":851.5,"domainLookupEnd":851.5,"domainLookupStart":851.5,"fetchStart":851.5,"redirectEnd":0,"redirectStart":0,"requestStart":851.5,"responseEnd":1033.1999998092651,"responseStart":1033.1999998092651,"secureConnectionStart":851.5},{"duration":210.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/a000436f14ae82363031988faf35ddba-CDN/lu2bsh/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","startTime":851.8999998569489,"connectEnd":851.8999998569489,"connectStart":851.8999998569489,"domainLookupEnd":851.8999998569489,"domainLookupStart":851.8999998569489,"fetchStart":851.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":851.8999998569489,"responseEnd":1062.0999999046326,"responseStart":1062.0999999046326,"secureConnectionStart":851.8999998569489},{"duration":134.10000014305115,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":937.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":937.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1072,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":7,"responseStart":163,"responseEnd":178,"domLoading":167,"domInteractive":1112,"domContentLoadedEventStart":1112,"domContentLoadedEventEnd":1170,"domComplete":1524,"loadEventStart":1524,"loadEventEnd":1524,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1081.6999998092651},{"name":"bigPipe.sidebar-id.end","time":1082.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1082.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1083.7999999523163},{"name":"activityTabFullyLoaded","time":1183.5999999046326}],"measures":[],"correlationId":"5838f7b33308fa","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":95,"dbReadsTimeInMs":28,"dbConnsTimeInMs":35,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}