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":680.7999999523163,"ttfb":150.79999995231628,"pageVisibility":"visible","entityId":120950,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"fa990fd2-a8c7-40e3-a9e8-380e3fa699d7","navigationType":0,"readyForUser":766.7000000476837,"redirectCount":0,"resourceLoadedEnd":718.5999999046326,"resourceLoadedStart":156,"resourceTiming":[{"duration":6.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":156,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":156,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":162.20000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":6,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":156.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":156.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":162.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":63,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":156.29999995231628,"connectEnd":156.29999995231628,"connectStart":156.29999995231628,"domainLookupEnd":156.29999995231628,"domainLookupStart":156.29999995231628,"fetchStart":156.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":156.29999995231628,"responseEnd":219.29999995231628,"responseStart":219.29999995231628,"secureConnectionStart":156.29999995231628},{"duration":173,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":156.5,"connectEnd":156.5,"connectStart":156.5,"domainLookupEnd":156.5,"domainLookupStart":156.5,"fetchStart":156.5,"redirectEnd":0,"redirectStart":0,"requestStart":156.5,"responseEnd":329.5,"responseStart":329.5,"secureConnectionStart":156.5},{"duration":169.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":156.5,"connectEnd":156.5,"connectStart":156.5,"domainLookupEnd":156.5,"domainLookupStart":156.5,"fetchStart":156.5,"redirectEnd":0,"redirectStart":0,"requestStart":156.5,"responseEnd":325.89999985694885,"responseStart":325.89999985694885,"secureConnectionStart":156.5},{"duration":173.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":156.70000004768372,"connectEnd":156.70000004768372,"connectStart":156.70000004768372,"domainLookupEnd":156.70000004768372,"domainLookupStart":156.70000004768372,"fetchStart":156.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":156.70000004768372,"responseEnd":330,"responseStart":330,"secureConnectionStart":156.70000004768372},{"duration":173.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":156.70000004768372,"connectEnd":156.70000004768372,"connectStart":156.70000004768372,"domainLookupEnd":156.70000004768372,"domainLookupStart":156.70000004768372,"fetchStart":156.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":156.70000004768372,"responseEnd":330.39999985694885,"responseStart":330.39999985694885,"secureConnectionStart":156.70000004768372},{"duration":174,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":156.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":156.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":330.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":173.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":156.89999985694885,"connectEnd":156.89999985694885,"connectStart":156.89999985694885,"domainLookupEnd":156.89999985694885,"domainLookupStart":156.89999985694885,"fetchStart":156.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":156.89999985694885,"responseEnd":330.7999999523163,"responseStart":330.7999999523163,"secureConnectionStart":156.89999985694885},{"duration":174.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":157,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":157,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":331.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":174.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":157.20000004768372,"connectEnd":157.20000004768372,"connectStart":157.20000004768372,"domainLookupEnd":157.20000004768372,"domainLookupStart":157.20000004768372,"fetchStart":157.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":157.20000004768372,"responseEnd":331.39999985694885,"responseStart":331.39999985694885,"secureConnectionStart":157.20000004768372},{"duration":430.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":162.39999985694885,"connectEnd":162.39999985694885,"connectStart":162.39999985694885,"domainLookupEnd":162.39999985694885,"domainLookupStart":162.39999985694885,"fetchStart":162.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":162.39999985694885,"responseEnd":593,"responseStart":593,"secureConnectionStart":162.39999985694885},{"duration":431.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":162.59999990463257,"connectEnd":162.59999990463257,"connectStart":162.59999990463257,"domainLookupEnd":162.59999990463257,"domainLookupStart":162.59999990463257,"fetchStart":162.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":162.59999990463257,"responseEnd":594.0999999046326,"responseStart":594,"secureConnectionStart":162.59999990463257},{"duration":208.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":370.5,"connectEnd":370.5,"connectStart":370.5,"domainLookupEnd":370.5,"domainLookupStart":370.5,"fetchStart":370.5,"redirectEnd":0,"redirectStart":0,"requestStart":370.5,"responseEnd":578.5999999046326,"responseStart":578.5999999046326,"secureConnectionStart":370.5},{"duration":128.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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":590.5,"connectEnd":590.5,"connectStart":590.5,"domainLookupEnd":590.5,"domainLookupStart":590.5,"fetchStart":590.5,"redirectEnd":0,"redirectStart":0,"requestStart":590.5,"responseEnd":718.5999999046326,"responseStart":718.5999999046326,"secureConnectionStart":590.5},{"duration":107.79999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":674.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":674.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":782.0999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":3,"responseStart":150,"responseEnd":157,"domLoading":153,"domInteractive":829,"domContentLoadedEventStart":829,"domContentLoadedEventEnd":876,"domComplete":1651,"loadEventStart":1651,"loadEventEnd":1651,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":808.5},{"name":"bigPipe.sidebar-id.end","time":809.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":809.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":812},{"name":"activityTabFullyLoaded","time":882.8999998569489}],"measures":[],"correlationId":"c1494645dee6c0","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":85,"dbReadsTimeInMs":15,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}