10.4 fac997feef048de877e39d1366871d5872c61710
|
mysqld: /home/travis/src/storage/innobase/trx/trx0rec.cc:1999: dberr_t trx_undo_report_rename(trx_t*, const dict_table_t*): Assertion `++loop_count < 2' failed.
|
181208 6:43:27 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f1021b01c82 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x00005634c86b0167 in trx_undo_report_rename (trx=0x7f100c188518, table=0x7f101c7b8068) at /home/travis/src/storage/innobase/trx/trx0rec.cc:1999
|
#9 0x00005634c861714a in row_rename_table_for_mysql (old_name=0x7f101c8762a0 "test/FTS_", '0' <repeats 13 times>, "6f3_CONFIG", new_name=0x7f101e33dfe8 "test/#sql-ib1782-3932461062", trx=0x7f100c188518, commit=false) at /home/travis/src/storage/innobase/row/row0mysql.cc:4288
|
#10 0x00005634c861525d in row_drop_table_for_mysql (name=0x7f10201b54e0 "test/FTS_", '0' <repeats 13 times>, "6f3_CONFIG", trx=0x7f100c188518, sqlcom=SQLCOM_DROP_DB, create_failed=false, nonatomic=false) at /home/travis/src/storage/innobase/row/row0mysql.cc:3522
|
#11 0x00005634c8804f34 in fts_drop_table (trx=0x7f100c188518, table_name=0x7f10201b54e0 "test/FTS_", '0' <repeats 13 times>, "6f3_CONFIG") at /home/travis/src/storage/innobase/fts/fts0fts.cc:1470
|
#12 0x00005634c88055bf in fts_drop_common_tables (trx=0x7f100c188518, fts_table=0x7f10201b57b0) at /home/travis/src/storage/innobase/fts/fts0fts.cc:1609
|
#13 0x00005634c880587b in fts_drop_tables (trx=0x7f100c188518, table=0x7f101e29f9f8) at /home/travis/src/storage/innobase/fts/fts0fts.cc:1721
|
#14 0x00005634c86143e8 in row_drop_ancillary_fts_tables (table=0x7f101e29f9f8, trx=0x7f100c188518) at /home/travis/src/storage/innobase/row/row0mysql.cc:3221
|
#15 0x00005634c861577a in row_drop_table_for_mysql (name=0x7f10201b62a0 "test/#sql-5d69_10", trx=0x7f100c188518, sqlcom=SQLCOM_TRUNCATE, create_failed=true, nonatomic=false) at /home/travis/src/storage/innobase/row/row0mysql.cc:3713
|
#16 0x00005634c84c805d in ha_innobase::create (this=0x7f101c11af08, name=0x7f10201b918d "./test/#sql-5d69_10", form=0x7f10201b67a0, create_info=0x7f10201b9510, file_per_table=true, trx=0x7f100c188518) at /home/travis/src/storage/innobase/handler/ha_innodb.cc:12606
|
#17 0x00005634c84b3ab7 in ha_innobase::create (this=0x7f101c11af08, name=0x7f10201b918d "./test/#sql-5d69_10", form=0x7f10201b67a0, create_info=0x7f10201b9510) at /home/travis/src/storage/innobase/handler/ha_innodb.cc:12651
|
#18 0x00005634c8294408 in handler::ha_create (this=0x7f101c11af08, name=0x7f10201b918d "./test/#sql-5d69_10", form=0x7f10201b67a0, info_arg=0x7f10201b9510) at /home/travis/src/sql/handler.cc:4595
|
#19 0x00005634c8295490 in ha_create_table (thd=0x7f101c58bab0, path=0x7f10201b918d "./test/#sql-5d69_10", db=0x7f101c539ec0 "test", table_name=0x7f10201b8cca "#sql-5d69_10", create_info=0x7f10201b9510, frm=0x7f10201b7bb0) at /home/travis/src/sql/handler.cc:4969
|
#20 0x00005634c805cf07 in mysql_alter_table (thd=0x7f101c58bab0, new_db=0x7f101c590168, new_name=0x7f101c590538, create_info=0x7f10201b9510, table_list=0x7f101c539888, alter_info=0x7f10201b9450, order_num=0, order=0x0, ignore=false) at /home/travis/src/sql/sql_table.cc:9745
|
#21 0x00005634c80e6faa in Sql_cmd_alter_table::execute (this=0x7f101c53a480, thd=0x7f101c58bab0) at /home/travis/src/sql/sql_alter.cc:497
|
#22 0x00005634c7f84c0f in mysql_execute_command (thd=0x7f101c58bab0) at /home/travis/src/sql/sql_parse.cc:6290
|
#23 0x00005634c7f89e08 in mysql_parse (thd=0x7f101c58bab0, rawbuf=0x7f101c5395e8 "ALTER TABLE `table17_innodb_int_autoinc` ADD FOREIGN KEY e (tscol6) REFERENCES t8 (scol10) ON DELETE CASCADE, ADD CONSTRAINT CHECK (`col_bigint_not_null` < 1) /* QNO 17285 CON_ID 16 */", length=185, parser_state=0x7f10201ba650, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:8092
|
#24 0x00005634c7f76db6 in dispatch_command (command=COM_QUERY, thd=0x7f101c58bab0, packet=0x7f101c5918d1 "ALTER TABLE `table17_innodb_int_autoinc` ADD FOREIGN KEY e (tscol6) REFERENCES t8 (scol10) ON DELETE CASCADE, ADD CONSTRAINT CHECK (`col_bigint_not_null` < 1) /* QNO 17285 CON_ID 16 */ ", packet_length=186, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:1851
|
#25 0x00005634c7f757d3 in do_command (thd=0x7f101c58bab0) at /home/travis/src/sql/sql_parse.cc:1396
|
#26 0x00005634c80e0fea in do_handle_one_connection (connect=0x5634ca3954b0) at /home/travis/src/sql/sql_connect.cc:1402
|
#27 0x00005634c80e0d3b in handle_one_connection (arg=0x5634ca3954b0) at /home/travis/src/sql/sql_connect.cc:1308
|
#28 0x00007f10227466ba in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
|
#29 0x00007f1021bdb41d in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
The test case and notes to it are in mleich 's comment
- is caused by
-
MDEV-14717
RENAME TABLE in InnoDB is not crash-safe
-
-
Closed
{"report":{"fcp":789.7999999523163,"ttfb":157.09999990463257,"pageVisibility":"visible","entityId":71296,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"fc63445c-3880-4072-95f4-5af20e81118e","navigationType":0,"readyForUser":865.0999999046326,"redirectCount":0,"resourceLoadedEnd":740.5999999046326,"resourceLoadedStart":171.29999995231628,"resourceTiming":[{"duration":124.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":171.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":171.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":295.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":123.79999995231628,"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":171.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":171.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":295.5,"responseStart":0,"secureConnectionStart":0},{"duration":140.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":171.89999985694885,"connectEnd":171.89999985694885,"connectStart":171.89999985694885,"domainLookupEnd":171.89999985694885,"domainLookupStart":171.89999985694885,"fetchStart":171.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":171.89999985694885,"responseEnd":312,"responseStart":312,"secureConnectionStart":171.89999985694885},{"duration":188.29999995231628,"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":172.20000004768372,"connectEnd":172.20000004768372,"connectStart":172.20000004768372,"domainLookupEnd":172.20000004768372,"domainLookupStart":172.20000004768372,"fetchStart":172.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":172.20000004768372,"responseEnd":360.5,"responseStart":360.5,"secureConnectionStart":172.20000004768372},{"duration":192,"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":172.29999995231628,"connectEnd":172.29999995231628,"connectStart":172.29999995231628,"domainLookupEnd":172.29999995231628,"domainLookupStart":172.29999995231628,"fetchStart":172.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":172.29999995231628,"responseEnd":364.2999999523163,"responseStart":364.2999999523163,"secureConnectionStart":172.29999995231628},{"duration":192.40000009536743,"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":172.39999985694885,"connectEnd":172.39999985694885,"connectStart":172.39999985694885,"domainLookupEnd":172.39999985694885,"domainLookupStart":172.39999985694885,"fetchStart":172.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":172.39999985694885,"responseEnd":364.7999999523163,"responseStart":364.7999999523163,"secureConnectionStart":172.39999985694885},{"duration":192.70000004768372,"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":172.5,"connectEnd":172.5,"connectStart":172.5,"domainLookupEnd":172.5,"domainLookupStart":172.5,"fetchStart":172.5,"redirectEnd":0,"redirectStart":0,"requestStart":172.5,"responseEnd":365.2000000476837,"responseStart":365.2000000476837,"secureConnectionStart":172.5},{"duration":192.70000004768372,"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":173,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":365.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":192.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":173.09999990463257,"connectEnd":173.09999990463257,"connectStart":173.09999990463257,"domainLookupEnd":173.09999990463257,"domainLookupStart":173.09999990463257,"fetchStart":173.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":173.09999990463257,"responseEnd":365.7000000476837,"responseStart":365.7000000476837,"secureConnectionStart":173.09999990463257},{"duration":193,"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":173.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":366.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":193,"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":173.29999995231628,"connectEnd":173.29999995231628,"connectStart":173.29999995231628,"domainLookupEnd":173.29999995231628,"domainLookupStart":173.29999995231628,"fetchStart":173.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":173.29999995231628,"responseEnd":366.2999999523163,"responseStart":366.2999999523163,"secureConnectionStart":173.29999995231628},{"duration":542.2999999523163,"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":198,"connectEnd":198,"connectStart":198,"domainLookupEnd":198,"domainLookupStart":198,"fetchStart":198,"redirectEnd":0,"redirectStart":0,"requestStart":198,"responseEnd":740.2999999523163,"responseStart":740.2999999523163,"secureConnectionStart":198},{"duration":518.7000000476837,"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":221.89999985694885,"connectEnd":221.89999985694885,"connectStart":221.89999985694885,"domainLookupEnd":221.89999985694885,"domainLookupStart":221.89999985694885,"fetchStart":221.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":221.89999985694885,"responseEnd":740.5999999046326,"responseStart":740.5999999046326,"secureConnectionStart":221.89999985694885},{"duration":208.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":531.3999998569489,"connectEnd":531.3999998569489,"connectStart":531.3999998569489,"domainLookupEnd":531.3999998569489,"domainLookupStart":531.3999998569489,"fetchStart":531.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":531.3999998569489,"responseEnd":739.5999999046326,"responseStart":739.5999999046326,"secureConnectionStart":531.3999998569489},{"duration":238.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":763.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":763.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1002.0999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":20,"responseStart":158,"responseEnd":223,"domLoading":161,"domInteractive":938,"domContentLoadedEventStart":938,"domContentLoadedEventEnd":984,"domComplete":1395,"loadEventStart":1395,"loadEventEnd":1395,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":905.3999998569489},{"name":"bigPipe.sidebar-id.end","time":906.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":906.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":909.5999999046326},{"name":"activityTabFullyLoaded","time":1006.2000000476837}],"measures":[],"correlationId":"66778f48ea9fcf","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":78,"dbReadsTimeInMs":15,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I reproduced this once with the
MDEV-17938test case on 10.3, using the following (among other build settings):I did not repeat without -O2.
Also that crash was due to renaming an internal table of a fulltext index before dropping the table, in error handling:
10.3 a72516348b2c5ebb2b6b79c013a79f90e697f2b7
#7 0x0000000001b0b884 in trx_undo_report_rename (trx=0xfe12b96f165, table=0x6170001ab808) at /mariadb/10.3/storage/innobase/trx/trx0rec.cc:1913
#8 0x00000000019a09b2 in row_rename_table_for_mysql (old_name=0x60400014fed0 "test/FTS_", '0' <repeats 13 times>, "a15_CONFIG", new_name=0x6170001c3208 "test/#sql-ib2584-3392764454", trx=0x7f095d4419a8, commit=false, use_fk=140) at /mariadb/10.3/storage/innobase/row/row0mysql.cc:4290
#9 0x000000000199b5d1 in row_drop_table_for_mysql (name=0x6170001ab818 "\320\376\024", trx=0x7f095d4419a8, sqlcom=SQLCOM_DROP_DB, create_failed=<optimized out>, nonatomic=<optimized out>) at /mariadb/10.3/storage/innobase/row/row0mysql.cc:3521
#10 0x0000000001e69758 in fts_drop_table (trx=0x7f095d4419a8, table_name=0x7f095026a240 "test/FTS_", '0' <repeats 13 times>, "a15_CONFIG") at /mariadb/10.3/storage/innobase/fts/fts0fts.cc:1469
#11 0x0000000001e4128c in fts_drop_common_tables (trx=0x7f095d4419a8, fts_table=<optimized out>) at /mariadb/10.3/storage/innobase/fts/fts0fts.cc:1609
#12 fts_drop_tables (trx=0x7f095d4419a8, table=0x617000487388) at /mariadb/10.3/storage/innobase/fts/fts0fts.cc:1721
#13 0x000000000199c9a6 in row_drop_ancillary_fts_tables (table=0x617000487388, trx=0x7f095d4419a8) at /mariadb/10.3/storage/innobase/row/row0mysql.cc:3220
#14 row_drop_table_for_mysql (name=0x7f095026b660 "test/#sql-9f62_191", trx=0x7f095d4419a8, sqlcom=SQLCOM_TRUNCATE, create_failed=<optimized out>, nonatomic=<optimized out>) at /mariadb/10.3/storage/innobase/row/row0mysql.cc:3713
#15 0x00000000016cd141 in ha_innobase::create (this=0x7f095026bb50, name=0x7f095026fc4d "./test/#sql-9f62_191", form=0x7f0900000096, create_info=0xfe12a04d76a, file_per_table=false, trx=0x7f0950266ab0) at /mariadb/10.3/storage/innobase/handler/ha_innodb.cc:12600
#16 0x000000000103f877 in handler::ha_create (this=0x61c00008e8a0, name=0x7f095026fc4d "./test/#sql-9f62_191", form=0x7f095026be60, info_arg=0x7f0950271680) at /mariadb/10.3/sql/handler.cc:4594
#17 0x0000000001042502 in ha_create_table (thd=0x62a0000ae208, path=0xfe12a04d7cd <error: Cannot access memory at address 0xfe12a04d7cd>, db=0x62b0000009c0 "test", table_name=0x7f095026f78a "#sql-9f62_191", create_info=0x7f0950271680, frm=0x7f095026fc4d) at /mariadb/10.3/sql/handler.cc:4968
#18 0x0000000000ba721a in mysql_alter_table (thd=0x62a0000ae208, new_db=0x13, new_name=0x6, create_info=0x7f0950271680, table_list=<optimized out>, alter_info=0x7f0950271860, order_num=<optimized out>, order=<optimized out>, ignore=<optimized out>) at /mariadb/10.3/sql/sql_table.cc:9753
#19 0x0000000000cebe53 in Sql_cmd_alter_table::execute (this=<optimized out>, thd=0x62a0000ae208) at /mariadb/10.3/sql/sql_alter.cc:491
#20 0x000000000096a666 in mysql_execute_command (thd=0x62a0000ae208) at /mariadb/10.3/sql/sql_parse.cc:6284