Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
10.6 , 10.9(EOL) , 10.10(EOL) , 10.11 , 11.0(EOL) , 11.1(EOL) , 11.2(EOL) , 11.3(EOL)
--source include/have_innodb.inc
SET unique_checks=0;
SET foreign_key_checks=0;
SET @@pseudo_slave_mode=1;
CREATE TABLE t (a INT ,b CHAR , KEY (a)) engine=InnoDB;
XA START '1' ;
INSERT INTO t VALUES ();
XA END '1' ;
XA PREPARE '1' ;
HANDLER t OPEN AS t;
HANDLER t READ NEXT ;
HANDLER t READ NEXT ;
Leads to:
10.6.16 6f091434f313996436b4f01d7e7d62a9f3786958 (Debug)
InnoDB: Failing assertion: old_rec
10.6.16 6f091434f313996436b4f01d7e7d62a9f3786958 (Debug)
Core was generated by `/test/MD311023-mariadb-10.6.16-linux-x86_64-dbg/bin/mariadbd --no-defaults --co'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
[Current thread is 1 (Thread 0x145b2cafe700 (LWP 1228624))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x0000145b35f6f859 in __GI_abort () at abort.c:79
#2 0x000055f9584713df in ut_dbg_assertion_failed (expr=expr@entry=0x55f958aafad4 "old_rec", file=file@entry=0x55f958acceb8 "/test/10.6_dbg/storage/innobase/btr/btr0pcur.cc", line=line@entry=366) at /test/10.6_dbg/storage/innobase/ut/ut0dbg.cc:60
#3 0x000055f9584c3708 in btr_pcur_t::restore_position (this=this@entry=0x145aec02aea8, restore_latch_mode=restore_latch_mode@entry=BTR_SEARCH_LEAF, mtr=mtr@entry=0x145b2cafc740) at /test/10.6_dbg/storage/innobase/btr/btr0pcur.cc:366
#4 0x000055f9583e55f3 in sel_restore_position_for_mysql (same_user_rec=same_user_rec@entry=0x145b2cafc0ab, latch_mode=latch_mode@entry=BTR_SEARCH_LEAF, pcur=pcur@entry=0x145aec02aea8, moves_up=moves_up@entry=true, mtr=mtr@entry=0x145b2cafc740) at /test/10.6_dbg/storage/innobase/row/row0sel.cc:3643
#5 0x000055f9583f1320 in row_search_mvcc (buf=buf@entry=0x145aec01fed8 "\377", mode=PAGE_CUR_G, mode@entry=PAGE_CUR_UNSUPP, prebuilt=0x145aec02acd8, match_mode=match_mode@entry=0, direction=direction@entry=1) at /test/10.6_dbg/storage/innobase/row/row0sel.cc:4734
#6 0x000055f958238a95 in ha_innobase::general_fetch (this=0x145aec02a440, buf=0x145aec01fed8 "\377", direction=direction@entry=1, match_mode=match_mode@entry=0) at /test/10.6_dbg/storage/innobase/handler/ha_innodb.cc:9387
#7 0x000055f958238e1a in ha_innobase::rnd_next (this=0x145aec02a440, buf=<optimized out>) at /test/10.6_dbg/storage/innobase/handler/ha_innodb.cc:9590
#8 0x000055f957e7a1c7 in handler::ha_rnd_next (this=0x145aec02a440, buf=0x145aec01fed8 "\377") at /test/10.6_dbg/sql/handler.cc:3460
#9 0x000055f957b5447e in mysql_ha_read (thd=thd@entry=0x145aec000d48, tables=tables@entry=0x145aec013488, mode=RNEXT, keyname=0x0, key_expr=<optimized out>, ha_rkey_mode=HA_READ_KEY_EXACT, cond=0x0, select_limit_cnt=1, offset_limit_cnt=0) at /test/10.6_dbg/sql/sql_handler.cc:910
#10 0x000055f957ba7653 in mysql_execute_command (thd=thd@entry=0x145aec000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_limit.h:96
#11 0x000055f957b904fe in mysql_parse (thd=thd@entry=0x145aec000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x145b2cafd2c0) at /test/10.6_dbg/sql/sql_parse.cc:8050
#12 0x000055f957b9e492 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x145aec000d48, packet=packet@entry=0x145aec00af99 "", packet_length=packet_length@entry=19, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1403
#13 0x000055f957ba0bba in do_command (thd=0x145aec000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1409
#14 0x000055f957cf6e37 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55f95a5d0728, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1416
#15 0x000055f957cf73ec in handle_one_connection (arg=arg@entry=0x55f95a5d0728) at /test/10.6_dbg/sql/sql_connect.cc:1318
#16 0x000055f95816bace in pfs_spawn_thread (arg=0x55f95a5be6d8) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
#17 0x0000145b36480609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#18 0x0000145b3606c133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed present in:
MariaDB: 10.6.16 (dbg), 10.6.16 (opt), 10.9.8 (dbg), 10.9.8 (opt), 10.10.7 (dbg), 10.10.7 (opt), 10.11.6 (dbg),10.11.6 (opt), 11.0.4 (dbg), 11.0.4 (opt), 11.1.3 (dbg), 11.1.3 (opt), 11.2.2 (dbg), 11.2.2 (opt), 11.3.0 (dbg), 11.3.0 (opt)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.4.32 (dbg), 10.4.32 (opt), 10.5.23 (dbg), 10.5.23 (opt)
relates to
MDEV-515
innodb bulk insert
Closed
No workflow transitions have been executed yet.
{"report":{"fcp":1000.8000001907349,"ttfb":260.40000009536743,"pageVisibility":"visible","entityId":126130,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"58522e52-fd29-4312-ad8c-fed9e8dfce4d","navigationType":0,"readyForUser":1101.1000003814697,"redirectCount":0,"resourceLoadedEnd":1344.1000003814697,"resourceLoadedStart":266.90000009536743,"resourceTiming":[{"duration":160,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":266.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":266.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":426.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":160.09999990463257,"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":267.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":427.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":236.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":267.30000019073486,"connectEnd":267.30000019073486,"connectStart":267.30000019073486,"domainLookupEnd":267.30000019073486,"domainLookupStart":267.30000019073486,"fetchStart":267.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":267.30000019073486,"responseEnd":503.7000002861023,"responseStart":503.7000002861023,"secureConnectionStart":267.30000019073486},{"duration":321.2000002861023,"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":267.5,"connectEnd":267.5,"connectStart":267.5,"domainLookupEnd":267.5,"domainLookupStart":267.5,"fetchStart":267.5,"redirectEnd":0,"redirectStart":0,"requestStart":267.5,"responseEnd":588.7000002861023,"responseStart":588.7000002861023,"secureConnectionStart":267.5},{"duration":324.2999997138977,"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":267.7000002861023,"connectEnd":267.7000002861023,"connectStart":267.7000002861023,"domainLookupEnd":267.7000002861023,"domainLookupStart":267.7000002861023,"fetchStart":267.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":267.7000002861023,"responseEnd":592,"responseStart":592,"secureConnectionStart":267.7000002861023},{"duration":324.7000002861023,"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":267.90000009536743,"connectEnd":267.90000009536743,"connectStart":267.90000009536743,"domainLookupEnd":267.90000009536743,"domainLookupStart":267.90000009536743,"fetchStart":267.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":267.90000009536743,"responseEnd":592.6000003814697,"responseStart":592.6000003814697,"secureConnectionStart":267.90000009536743},{"duration":324.7999997138977,"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":268.1000003814697,"connectEnd":268.1000003814697,"connectStart":268.1000003814697,"domainLookupEnd":268.1000003814697,"domainLookupStart":268.1000003814697,"fetchStart":268.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":268.1000003814697,"responseEnd":592.9000000953674,"responseStart":592.9000000953674,"secureConnectionStart":268.1000003814697},{"duration":384.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":268.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":652.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":325,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":268.40000009536743,"connectEnd":268.40000009536743,"connectStart":268.40000009536743,"domainLookupEnd":268.40000009536743,"domainLookupStart":268.40000009536743,"fetchStart":268.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":268.40000009536743,"responseEnd":593.4000000953674,"responseStart":593.4000000953674,"secureConnectionStart":268.40000009536743},{"duration":384.5,"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":268.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":653,"responseStart":0,"secureConnectionStart":0},{"duration":325.19999980926514,"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":268.7000002861023,"connectEnd":268.7000002861023,"connectStart":268.7000002861023,"domainLookupEnd":268.7000002861023,"domainLookupStart":268.7000002861023,"fetchStart":268.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":268.7000002861023,"responseEnd":593.9000000953674,"responseStart":593.9000000953674,"secureConnectionStart":268.7000002861023},{"duration":1059.5,"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":284,"connectEnd":284,"connectStart":284,"domainLookupEnd":284,"domainLookupStart":284,"fetchStart":284,"redirectEnd":0,"redirectStart":0,"requestStart":284,"responseEnd":1343.5,"responseStart":1343.5,"secureConnectionStart":284},{"duration":1060.1000003814697,"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":284,"connectEnd":284,"connectStart":284,"domainLookupEnd":284,"domainLookupStart":284,"fetchStart":284,"redirectEnd":0,"redirectStart":0,"requestStart":284,"responseEnd":1344.1000003814697,"responseStart":1344.1000003814697,"secureConnectionStart":284},{"duration":652.3000001907349,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":686,"connectEnd":686,"connectStart":686,"domainLookupEnd":686,"domainLookupStart":686,"fetchStart":686,"redirectEnd":0,"redirectStart":0,"requestStart":686,"responseEnd":1338.3000001907349,"responseStart":1338.3000001907349,"secureConnectionStart":686},{"duration":417.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":989.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":989.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1406.7000002861023,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":46,"responseStart":261,"responseEnd":272,"domLoading":265,"domInteractive":1427,"domContentLoadedEventStart":1427,"domContentLoadedEventEnd":1490,"domComplete":2064,"loadEventStart":2064,"loadEventEnd":2067,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1411.6000003814697},{"name":"bigPipe.sidebar-id.end","time":1412.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1412.7000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":1413.1000003814697},{"name":"activityTabFullyLoaded","time":1497.4000000953674}],"measures":[],"correlationId":"4636978fb04a2b","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":151,"dbReadsTimeInMs":16,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}