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
{"report":{"fcp":1679.2000002861023,"ttfb":582.5999999046326,"pageVisibility":"visible","entityId":126130,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"ac6731e1-8a35-434a-83f8-076085e94485","navigationType":0,"readyForUser":1774.5999999046326,"redirectCount":0,"resourceLoadedEnd":2402.800000190735,"resourceLoadedStart":590.2000002861023,"resourceTiming":[{"duration":548.8999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":590.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":590.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1139.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":548.9000000953674,"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":590.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":590.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1139.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":575.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":590.8000001907349,"connectEnd":590.8000001907349,"connectStart":590.8000001907349,"domainLookupEnd":590.8000001907349,"domainLookupStart":590.8000001907349,"fetchStart":590.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":590.8000001907349,"responseEnd":1166.2000002861023,"responseStart":1166.2000002861023,"secureConnectionStart":590.8000001907349},{"duration":659.9000000953674,"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":590.9000000953674,"connectEnd":590.9000000953674,"connectStart":590.9000000953674,"domainLookupEnd":590.9000000953674,"domainLookupStart":590.9000000953674,"fetchStart":590.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":590.9000000953674,"responseEnd":1250.8000001907349,"responseStart":1250.7000002861023,"secureConnectionStart":590.9000000953674},{"duration":664.5,"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":591,"connectEnd":591,"connectStart":591,"domainLookupEnd":591,"domainLookupStart":591,"fetchStart":591,"redirectEnd":0,"redirectStart":0,"requestStart":591,"responseEnd":1255.5,"responseStart":1255.5,"secureConnectionStart":591},{"duration":665.4000000953674,"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":591.3000001907349,"connectEnd":591.3000001907349,"connectStart":591.3000001907349,"domainLookupEnd":591.3000001907349,"domainLookupStart":591.3000001907349,"fetchStart":591.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":591.3000001907349,"responseEnd":1256.7000002861023,"responseStart":1256.7000002861023,"secureConnectionStart":591.3000001907349},{"duration":666.4000000953674,"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":591.4000000953674,"connectEnd":591.4000000953674,"connectStart":591.4000000953674,"domainLookupEnd":591.4000000953674,"domainLookupStart":591.4000000953674,"fetchStart":591.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":591.4000000953674,"responseEnd":1257.8000001907349,"responseStart":1257.7000002861023,"secureConnectionStart":591.4000000953674},{"duration":734.8000001907349,"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":591.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":591.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1326.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":667.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":591.7000002861023,"connectEnd":591.7000002861023,"connectStart":591.7000002861023,"domainLookupEnd":591.7000002861023,"domainLookupStart":591.7000002861023,"fetchStart":591.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":591.7000002861023,"responseEnd":1259.0999999046326,"responseStart":1259.0999999046326,"secureConnectionStart":591.7000002861023},{"duration":734.5999999046326,"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":591.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":591.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1326.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":668.5,"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":592,"connectEnd":592,"connectStart":592,"domainLookupEnd":592,"domainLookupStart":592,"fetchStart":592,"redirectEnd":0,"redirectStart":0,"requestStart":592,"responseEnd":1260.5,"responseStart":1260.5,"secureConnectionStart":592},{"duration":1800.9000000953674,"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":601.4000000953674,"connectEnd":601.4000000953674,"connectStart":601.4000000953674,"domainLookupEnd":601.4000000953674,"domainLookupStart":601.4000000953674,"fetchStart":601.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":601.4000000953674,"responseEnd":2402.300000190735,"responseStart":2402.300000190735,"secureConnectionStart":601.4000000953674},{"duration":1801.3000001907349,"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":601.5,"connectEnd":601.5,"connectStart":601.5,"domainLookupEnd":601.5,"domainLookupStart":601.5,"fetchStart":601.5,"redirectEnd":0,"redirectStart":0,"requestStart":601.5,"responseEnd":2402.800000190735,"responseStart":2402.800000190735,"secureConnectionStart":601.5},{"duration":344.8999996185303,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1339.2000002861023,"connectEnd":1339.2000002861023,"connectStart":1339.2000002861023,"domainLookupEnd":1339.2000002861023,"domainLookupStart":1339.2000002861023,"fetchStart":1339.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1339.2000002861023,"responseEnd":1684.0999999046326,"responseStart":1684.0999999046326,"secureConnectionStart":1339.2000002861023},{"duration":751.7999997138977,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1671.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1671.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2423.0999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":423,"responseStart":582,"responseEnd":599,"domLoading":588,"domInteractive":2423,"domContentLoadedEventStart":2423,"domContentLoadedEventEnd":2464,"domComplete":3513,"loadEventStart":3513,"loadEventEnd":3515,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2405.800000190735},{"name":"bigPipe.sidebar-id.end","time":2406.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":2406.800000190735},{"name":"bigPipe.activity-panel-pipe-id.end","time":2409},{"name":"activityTabFullyLoaded","time":2470.5}],"measures":[],"correlationId":"4778327a376b50","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":95,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}