Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.4(EOL) , 10.5 , 10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL) , 10.10(EOL) , 10.11 , 11.0(EOL) , 11.1(EOL)
Looks similar to MDEV-27858 however this bug remains post-patch. It is however not caused by the patch, as the bug can be found in builds from late January 2022.
SET GLOBAL innodb_default_row_format=0;
SET sql_mode= '' ,unique_checks=0,foreign_key_checks=0;
CREATE TABLE t (pk INT ,c CHAR (255),c2 CHAR (255),c3 CHAR (255),c4 CHAR (255),c5 CHAR (255),c6 CHAR (255),c7 CHAR (255),c8 CHAR (255), PRIMARY KEY (pk)) ENGINE=InnoDB CHARACTER SET utf32;
INSERT INTO t(c) VALUES (10);
Leads to:
11.1.0 2b61ff8f2221745f0a96855a0feb0825c426f993 (Debug)
mariadbd: /test/11.1_dbg/storage/innobase/btr/btr0bulk.cc:1226: dberr_t BtrBulk::finish(dberr_t): Assertion `err != DB_SUCCESS || btr_validate_index(m_index, __null) == DB_SUCCESS' failed.
11.1.0 2b61ff8f2221745f0a96855a0feb0825c426f993 (Debug)
Core was generated by `/test/MD070423-mariadb-11.1.0-linux-x86_64-dbg/bin/mariadbd --no-defaults --cor'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=23363482273344)
at ./nptl/pthread_kill.c:44
[Current thread is 1 (Thread 0x153fbc0fc640 (LWP 409785))]
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=23363482273344) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=23363482273344) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=23363482273344, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x0000153fd9e69476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x0000153fd9e4f7f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x0000153fd9e4f71b in __assert_fail_base (fmt=0x153fda004150 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x563cf977ac18 "err != DB_SUCCESS || btr_validate_index(m_index, __null) == DB_SUCCESS", file=0x563cf977ad48 "/test/11.1_dbg/storage/innobase/btr/btr0bulk.cc", line=1226, function=<optimized out>) at ./assert/assert.c:92
#6 0x0000153fd9e60e96 in __GI___assert_fail (assertion=0x563cf977ac18 "err != DB_SUCCESS || btr_validate_index(m_index, __null) == DB_SUCCESS", file=0x563cf977ad48 "/test/11.1_dbg/storage/innobase/btr/btr0bulk.cc", line=1226, function=0x563cf977abf0 "dberr_t BtrBulk::finish(dberr_t)") at ./assert/assert.c:101
#7 0x0000563cf91ce13d in BtrBulk::finish (this=this@entry=0x153fbc0fa220, err=DB_SUCCESS) at /test/11.1_dbg/storage/innobase/btr/btr0bulk.cc:1226
#8 0x0000563cf90f98f5 in row_merge_bulk_t::write_to_index (this=this@entry=0x153f70079d40, index_no=index_no@entry=0, trx=trx@entry=0x153fd9122b80) at /test/11.1_dbg/storage/innobase/row/row0merge.cc:5337
#9 0x0000563cf90f99e6 in row_merge_bulk_t::write_to_table (this=0x153f70079d40, table=<optimized out>, trx=trx@entry=0x153fd9122b80) at /test/11.1_dbg/storage/innobase/row/row0merge.cc:5350
#10 0x0000563cf90f9a2c in trx_mod_table_time_t::write_bulk (this=this@entry=0x153f7002a208, table=<optimized out>, trx=trx@entry=0x153fd9122b80) at /test/11.1_dbg/storage/innobase/row/row0merge.cc:5363
#11 0x0000563cf8fa896d in innodb_prepare_commit_versioned (thd=<optimized out>, trx_id=<optimized out>) at /test/11.1_dbg/storage/innobase/handler/ha_innodb.cc:3661
#12 0x0000563cf8cec096 in ha_commit_trans (thd=thd@entry=0x153f70000d58, all=all@entry=false) at /test/11.1_dbg/sql/handler.cc:1813
#13 0x0000563cf8b7ad85 in trans_commit_stmt (thd=thd@entry=0x153f70000d58) at /test/11.1_dbg/sql/transaction.cc:472
#14 0x0000563cf8a0fdb8 in mysql_execute_command (thd=thd@entry=0x153f70000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/11.1_dbg/sql/sql_parse.cc:5820
#15 0x0000563cf8a10f05 in mysql_parse (thd=thd@entry=0x153f70000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x153fbc0fb230) at /test/11.1_dbg/sql/sql_parse.cc:7760
#16 0x0000563cf8a13099 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x153f70000d58, packet=packet@entry=0x153f7000ae49 "INSERT INTO t(c) VALUES (10)", packet_length=packet_length@entry=28, blocking=blocking@entry=true) at /test/11.1_dbg/sql/sql_class.h:242
#17 0x0000563cf8a14ef5 in do_command (thd=0x153f70000d58, blocking=blocking@entry=true) at /test/11.1_dbg/sql/sql_parse.cc:1405
#18 0x0000563cf8b66cfc in do_handle_one_connection (connect=<optimized out>, connect@entry=0x563cfac5cfd8, put_in_cache=put_in_cache@entry=true) at /test/11.1_dbg/sql/sql_connect.cc:1416
#19 0x0000563cf8b66f5b in handle_one_connection (arg=0x563cfac5cfd8) at /test/11.1_dbg/sql/sql_connect.cc:1318
#20 0x0000153fd9ebbb43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#21 0x0000153fd9f4da00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Bug confirmed present in:
MariaDB: 10.7.8 (dbg), 10.8.8 (dbg), 10.9.6 (dbg), 10.10.4 (dbg), 10.11.3 (dbg), 11.0.2 (dbg), 11.1.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.4.29 (dbg), 10.4.29 (opt), 10.5.20 (dbg), 10.5.20 (opt), 10.6.13 (dbg), 10.6.13 (opt), 10.7.8 (opt), 10.8.8 (opt), 10.9.6 (opt), 10.10.4 (opt), 10.11.3 (opt), 11.0.2 (opt), 11.1.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.40 (dbg), 5.7.40 (opt), 8.0.31 (dbg), 8.0.31 (opt)
{"report":{"fcp":1907.4000000953674,"ttfb":293.90000009536743,"pageVisibility":"visible","entityId":120950,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9f2683e1-e325-4d61-924b-c6c9d0ac0bd2","navigationType":0,"readyForUser":1987.9000000953674,"redirectCount":0,"resourceLoadedEnd":966,"resourceLoadedStart":319.40000009536743,"resourceTiming":[{"duration":102.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":319.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":319.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":421.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":102.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":319.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":319.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":422.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":386.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":320,"connectEnd":320,"connectStart":320,"domainLookupEnd":320,"domainLookupStart":320,"fetchStart":320,"redirectEnd":0,"redirectStart":0,"requestStart":424,"responseEnd":706.6000003814697,"responseStart":448.80000019073486,"secureConnectionStart":320},{"duration":645.8999996185303,"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":320.1000003814697,"connectEnd":320.1000003814697,"connectStart":320.1000003814697,"domainLookupEnd":320.1000003814697,"domainLookupStart":320.1000003814697,"fetchStart":320.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":424.2000002861023,"responseEnd":966,"responseStart":473.7000002861023,"secureConnectionStart":320.1000003814697},{"duration":158.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":320.30000019073486,"connectEnd":320.30000019073486,"connectStart":320.30000019073486,"domainLookupEnd":320.30000019073486,"domainLookupStart":320.30000019073486,"fetchStart":320.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":430.1000003814697,"responseEnd":478.80000019073486,"responseStart":476.7000002861023,"secureConnectionStart":320.30000019073486},{"duration":158.59999990463257,"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":320.40000009536743,"connectEnd":320.40000009536743,"connectStart":320.40000009536743,"domainLookupEnd":320.40000009536743,"domainLookupStart":320.40000009536743,"fetchStart":320.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":430.90000009536743,"responseEnd":479,"responseStart":477.2000002861023,"secureConnectionStart":320.40000009536743},{"duration":160.90000009536743,"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":320.7000002861023,"connectEnd":320.7000002861023,"connectStart":320.7000002861023,"domainLookupEnd":320.7000002861023,"domainLookupStart":320.7000002861023,"fetchStart":320.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":434.40000009536743,"responseEnd":481.6000003814697,"responseStart":479.30000019073486,"secureConnectionStart":320.7000002861023},{"duration":102.2000002861023,"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":320.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":320.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":423.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":160.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":321,"connectEnd":321,"connectStart":321,"domainLookupEnd":321,"domainLookupStart":321,"fetchStart":321,"redirectEnd":0,"redirectStart":0,"requestStart":434.6000003814697,"responseEnd":481.80000019073486,"responseStart":480.1000003814697,"secureConnectionStart":321},{"duration":108.09999990463257,"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":321.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":321.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":429.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":162.09999990463257,"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":321.30000019073486,"connectEnd":321.30000019073486,"connectStart":321.30000019073486,"domainLookupEnd":321.30000019073486,"domainLookupStart":321.30000019073486,"fetchStart":321.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":435,"responseEnd":483.40000009536743,"responseStart":480.5,"secureConnectionStart":321.30000019073486},{"duration":640.5999999046326,"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":322.40000009536743,"connectEnd":322.40000009536743,"connectStart":322.40000009536743,"domainLookupEnd":322.40000009536743,"domainLookupStart":322.40000009536743,"fetchStart":322.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":641.7000002861023,"responseEnd":963,"responseStart":957.6000003814697,"secureConnectionStart":322.40000009536743},{"duration":640.7000002861023,"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":322.5,"connectEnd":322.5,"connectStart":322.5,"domainLookupEnd":322.5,"domainLookupStart":322.5,"fetchStart":322.5,"redirectEnd":0,"redirectStart":0,"requestStart":642.3000001907349,"responseEnd":963.2000002861023,"responseStart":958.1000003814697,"secureConnectionStart":322.5},{"duration":264.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":855.8000001907349,"connectEnd":855.8000001907349,"connectStart":855.8000001907349,"domainLookupEnd":855.8000001907349,"domainLookupStart":855.8000001907349,"fetchStart":855.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1002.5,"responseEnd":1120.7000002861023,"responseStart":1105.9000000953674,"secureConnectionStart":855.8000001907349}],"fetchStart":0,"domainLookupStart":65,"domainLookupEnd":75,"connectStart":75,"connectEnd":97,"secureConnectionStart":85,"requestStart":98,"responseStart":293,"responseEnd":313,"domLoading":317,"domInteractive":2137,"domContentLoadedEventStart":2137,"domContentLoadedEventEnd":2214,"domComplete":2801,"loadEventStart":2801,"loadEventEnd":2802,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2085.5},{"name":"bigPipe.sidebar-id.end","time":2086.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":2086.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":2087.800000190735},{"name":"activityTabFullyLoaded","time":2232.1000003814697}],"measures":[],"correlationId":"92d5cc319ae6e1","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":24,"dbConnsTimeInMs":34,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}