https://api.travis-ci.org/v3/job/360919346/log.txt
10.3 19bb7fdcd6e68aca6e41a2e30ffb3c2ad1d14cb6
|
mysqld: /home/travis/src/storage/innobase/buf/buf0buf.cc:4269: buf_block_t* buf_page_get_gen(const page_id_t&, const page_size_t&, ulint, buf_block_t*, ulint, const char*, unsigned int, mtr_t*, dberr_t*): Assertion `found' failed.
|
180401 23:17:11 [ERROR] mysqld got signal 6 ;
|
|
Query (0x7fd7d801fcd8): REPLACE INTO transforms.insert_select_24744 SELECT * FROM (INFORMATION_SCHEMA.`INNODB_TABLESPACES_ENCRYPTION` AS table1 INNER JOIN mysql.`general_log` AS table2 ON ( table2.`user_host` = table1.`ENCRYPTION_SCHEME` ) ) WHERE table1.`ENCRYPTION_SCHEME` = table2.`user_host` LIMIT 5 /* QNO 2811 CON_ID 18 */ /* QNO 2834 CON_ID 18 */
|
Connection ID (thread ID): 18
|
Status: NOT_KILLED
|
#7 0x00007fd823382ca2 in __GI___assert_fail (assertion=0x559920bddd5f "found", file=0x559920bdc030 "/home/travis/src/storage/innobase/buf/buf0buf.cc", line=4269, function=0x559920be1820 <buf_page_get_gen(page_id_t const&, page_size_t const&, unsigned long, buf_block_t*, unsigned long, char const*, unsigned int, mtr_t*, dberr_t*)::__PRETTY_FUNCTION__> "buf_block_t* buf_page_get_gen(const page_id_t&, const page_size_t&, ulint, buf_block_t*, ulint, const char*, unsigned int, mtr_t*, dberr_t*)") at assert.c:101
|
#8 0x0000559920587497 in buf_page_get_gen (page_id=..., page_size=..., rw_latch=1, guess=0x0, mode=10, file=0x559920c15878 "/home/travis/src/storage/innobase/fil/fil0crypt.cc", line=963, mtr=0x7fd80d909a90, err=0x0) at /home/travis/src/storage/innobase/buf/buf0buf.cc:4269
|
#9 0x0000559920625e6f in fil_crypt_read_crypt_data (space=0x7fd7b8451ba0) at /home/travis/src/storage/innobase/fil/fil0crypt.cc:962
|
#10 0x00005599206293cf in fil_space_crypt_get_status (space=0x7fd7b8451ba0, status=0x7fd80d90a040) at /home/travis/src/storage/innobase/fil/fil0crypt.cc:2432
|
#11 0x000055992034ddb6 in i_s_dict_fill_tablespaces_encryption (thd=0x7fd7d800b360, space=0x7fd7b8451ba0, table_to_fill=0x7fd7d8168a58) at /home/travis/src/storage/innobase/handler/i_s.cc:8566
|
#12 0x000055992034e2f4 in i_s_tablespaces_encryption_fill_table (thd=0x7fd7d800b360, tables=0x7fd7d8020f58) at /home/travis/src/storage/innobase/handler/i_s.cc:8640
|
#13 0x000055991fea1fb3 in get_schema_tables_result (join=0x7fd7d80239d8, executed_place=PROCESSED_BY_JOIN_EXEC) at /home/travis/src/sql/sql_show.cc:8872
|
#14 0x000055991fe3bae8 in JOIN::exec_inner (this=0x7fd7d80239d8) at /home/travis/src/sql/sql_select.cc:3952
|
#15 0x000055991fe3b18e in JOIN::exec (this=0x7fd7d80239d8) at /home/travis/src/sql/sql_select.cc:3783
|
#16 0x000055991fe3c402 in mysql_select (thd=0x7fd7d800b360, tables=0x7fd7d8020f58, wild_num=1, fields=..., conds=0x7fd7d8022ab8, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=553782610688, result=0x7fd7d8023930, unit=0x7fd7d800f1a8, select_lex=0x7fd7d800f920) at /home/travis/src/sql/sql_select.cc:4188
|
#17 0x000055991fe2e69b in handle_select (thd=0x7fd7d800b360, lex=0x7fd7d800f0e0, result=0x7fd7d8023930, setup_tables_done_option=1073741824) at /home/travis/src/sql/sql_select.cc:382
|
#18 0x000055991fdf3197 in mysql_execute_command (thd=0x7fd7d800b360) at /home/travis/src/sql/sql_parse.cc:4833
|
#19 0x000055991fdfd1dc in mysql_parse (thd=0x7fd7d800b360, rawbuf=0x7fd7d801fcd8 "REPLACE INTO transforms.insert_select_24744 SELECT * FROM (INFORMATION_SCHEMA.`INNODB_TABLESPACES_ENCRYPTION` AS table1 INNER JOIN mysql.`general_log` AS table2 ON ( table2.`user_host` = table1.`ENCR"..., length=331, parser_state=0x7fd80d90b5e0, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:8013
|
#20 0x000055991fdea8d2 in dispatch_command (command=COM_QUERY, thd=0x7fd7d800b360, packet=0x7fd7d8017791 "REPLACE INTO transforms.insert_select_24744 SELECT * FROM (INFORMATION_SCHEMA.`INNODB_TABLESPACES_ENCRYPTION` AS table1 INNER JOIN mysql.`general_log` AS table2 ON ( table2.`user_host` = table1.`ENCR"..., packet_length=332, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:1842
|
#21 0x000055991fde931e in do_command (thd=0x7fd7d800b360) at /home/travis/src/sql/sql_parse.cc:1387
|
#22 0x000055991ff4e9e1 in do_handle_one_connection (connect=0x5599235f94c0) at /home/travis/src/sql/sql_connect.cc:1402
|
#23 0x000055991ff4e76e in handle_one_connection (arg=0x5599235f94c0) at /home/travis/src/sql/sql_connect.cc:1308
|
#24 0x00007fd823f44184 in start_thread (arg=0x7fd80d90c700) at pthread_create.c:312
|
#25 0x00007fd82345103d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
|
experimental 4feb78e17fbecf7fc7f2847b49b8c66b54879629
|
perl /home/travis/rqg/runall-new.pl --duration=350 --threads=6 --seed=1522624566 --reporters=Backtrace,ErrorLog,Deadlock --validators=TransformerNoComparator --transformers=ConvertSubqueriesToViews,ConvertTablesToDerived,Count,DisableOptimizations,Distinct,EnableOptimizations,ExecuteAsCTE,ExecuteAsDeleteReturning,ExecuteAsDerived,ExecuteAsExcept,ExecuteAsExecuteImmediate,ExecuteAsInsertSelect,ExecuteAsIntersect,ExecuteAsSelectItem,ExecuteAsUnion,ExecuteAsUpdateDelete,ExecuteAsView,ExecuteAsWhereSubquery,Having,InlineSubqueries,LimitRowsExamined,OrderBy,StraightJoin,ExecuteAsPreparedTwice,ExecuteAsTrigger,ExecuteAsSPTwice,ExecuteAsFunctionTwice --redefine=conf/mariadb/general-workarounds.yy --mysqld=--log_output=FILE --mysqld=--log_bin_trust_function_creators=1 --mysqld=--log-bin --mysqld=--max-statement-time=30 --mysqld=--loose-debug_assert_on_not_freed_memory=0 --views --redefine=conf/mariadb/versioning.yy --basedir=/home/travis/server --grammar=conf/runtime/information_schema.yy --vardir=/home/travis/logs/vardir1_1
|
Not reproducible so far.
{"report":{"fcp":916.3999996185303,"ttfb":351.8999996185303,"pageVisibility":"visible","entityId":66628,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9e876389-8074-46d4-8b43-63ed6eec0487","navigationType":0,"readyForUser":1043.2999997138977,"redirectCount":0,"resourceLoadedEnd":1056.0999999046326,"resourceLoadedStart":358.19999980926514,"resourceTiming":[{"duration":7.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":358.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":358.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":365.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":7.5,"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":358.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":358.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":365.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":61.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":358.59999990463257,"connectEnd":358.59999990463257,"connectStart":358.59999990463257,"domainLookupEnd":358.59999990463257,"domainLookupStart":358.59999990463257,"fetchStart":358.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":358.59999990463257,"responseEnd":420.2999997138977,"responseStart":420.2999997138977,"secureConnectionStart":358.59999990463257},{"duration":196.30000019073486,"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":358.7999997138977,"connectEnd":358.7999997138977,"connectStart":358.7999997138977,"domainLookupEnd":358.7999997138977,"domainLookupStart":358.7999997138977,"fetchStart":358.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":358.7999997138977,"responseEnd":555.0999999046326,"responseStart":555.0999999046326,"secureConnectionStart":358.7999997138977},{"duration":199.7999997138977,"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":359.09999990463257,"connectEnd":359.09999990463257,"connectStart":359.09999990463257,"domainLookupEnd":359.09999990463257,"domainLookupStart":359.09999990463257,"fetchStart":359.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":359.09999990463257,"responseEnd":558.8999996185303,"responseStart":558.8999996185303,"secureConnectionStart":359.09999990463257},{"duration":200.2000002861023,"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":359.2999997138977,"connectEnd":359.2999997138977,"connectStart":359.2999997138977,"domainLookupEnd":359.2999997138977,"domainLookupStart":359.2999997138977,"fetchStart":359.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":359.2999997138977,"responseEnd":559.5,"responseStart":559.5,"secureConnectionStart":359.2999997138977},{"duration":200.59999990463257,"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":359.5,"connectEnd":359.5,"connectStart":359.5,"domainLookupEnd":359.5,"domainLookupStart":359.5,"fetchStart":359.5,"redirectEnd":0,"redirectStart":0,"requestStart":359.5,"responseEnd":560.0999999046326,"responseStart":560.0999999046326,"secureConnectionStart":359.5},{"duration":206.90000009536743,"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":359.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":359.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":566.5,"responseStart":0,"secureConnectionStart":0},{"duration":201,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":359.7999997138977,"connectEnd":359.7999997138977,"connectStart":359.7999997138977,"domainLookupEnd":359.7999997138977,"domainLookupStart":359.7999997138977,"fetchStart":359.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":359.7999997138977,"responseEnd":560.7999997138977,"responseStart":560.7999997138977,"secureConnectionStart":359.7999997138977},{"duration":206.69999980926514,"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":360,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":360,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":566.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":201.40000009536743,"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":360.09999990463257,"connectEnd":360.09999990463257,"connectStart":360.09999990463257,"domainLookupEnd":360.09999990463257,"domainLookupStart":360.09999990463257,"fetchStart":360.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":360.09999990463257,"responseEnd":561.5,"responseStart":561.5,"secureConnectionStart":360.09999990463257},{"duration":576.2000002861023,"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":366.3999996185303,"connectEnd":366.3999996185303,"connectStart":366.3999996185303,"domainLookupEnd":366.3999996185303,"domainLookupStart":366.3999996185303,"fetchStart":366.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":366.3999996185303,"responseEnd":942.5999999046326,"responseStart":942.5999999046326,"secureConnectionStart":366.3999996185303},{"duration":570.7999997138977,"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":372.59999990463257,"connectEnd":372.59999990463257,"connectStart":372.59999990463257,"domainLookupEnd":372.59999990463257,"domainLookupStart":372.59999990463257,"fetchStart":372.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":372.59999990463257,"responseEnd":943.3999996185303,"responseStart":943.3999996185303,"secureConnectionStart":372.59999990463257},{"duration":252.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":579.1999998092651,"connectEnd":579.1999998092651,"connectStart":579.1999998092651,"domainLookupEnd":579.1999998092651,"domainLookupStart":579.1999998092651,"fetchStart":579.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":579.1999998092651,"responseEnd":831.8999996185303,"responseStart":831.8999996185303,"secureConnectionStart":579.1999998092651},{"duration":117.10000038146973,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":845.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":845.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":962.5,"responseStart":0,"secureConnectionStart":0},{"duration":187.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":846.3999996185303,"connectEnd":846.3999996185303,"connectStart":846.3999996185303,"domainLookupEnd":846.3999996185303,"domainLookupStart":846.3999996185303,"fetchStart":846.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":846.3999996185303,"responseEnd":1034.0999999046326,"responseStart":1034.0999999046326,"secureConnectionStart":846.3999996185303},{"duration":182.69999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":904.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":904.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1087.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":209.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":846.7999997138977,"connectEnd":846.7999997138977,"connectStart":846.7999997138977,"domainLookupEnd":846.7999997138977,"domainLookupStart":846.7999997138977,"fetchStart":846.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":846.7999997138977,"responseEnd":1056.0999999046326,"responseStart":1056.0999999046326,"secureConnectionStart":846.7999997138977}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":166,"responseStart":352,"responseEnd":373,"domLoading":356,"domInteractive":1140,"domContentLoadedEventStart":1140,"domContentLoadedEventEnd":1211,"domComplete":1823,"loadEventStart":1823,"loadEventEnd":1823,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1093.6999998092651},{"name":"bigPipe.sidebar-id.end","time":1094.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1094.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1098.7999997138977},{"name":"activityTabFullyLoaded","time":1228.6999998092651}],"measures":[],"correlationId":"f32fb274b55228","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":118,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
MDEV-11984simplified the access to tablespace metadata in i_s_tablespaces_encryption_fill_table(), possibly affecting reproducibility. This should be possible in 10.2 as well, by appropriately timedwhile some DDL operation is in progress (even on non-encrypted tables). In this case, a good candidate is ALTER TABLE on a partitioned table:
I do not understand why fil_space_crypt_get_status() needs to invoke buf_page_get_gen() at all. Shouldn’t this information be updated directly in crypt_data when the first page is read or updated in the first place?
In threads
, we can see that the tablespace full well exists. The debug assertion fails here:
= fil_space_get_page_size(page_id.space(), &found);
ut_ad(found);
ut_ad(page_size.equals_to(space_page_size));
The call fil_space_get_page_size() can result in !found even if the tablespace exists, because it is invoking fil_space_get_space() which contains some non-trivial logic. I believe that the code can and should be made more robust:
diff --git a/storage/innobase/fil/fil0crypt.cc b/storage/innobase/fil/fil0crypt.cc
index b4fead7335a..592acce53c9 100644
--- a/storage/innobase/fil/fil0crypt.cc
+++ b/storage/innobase/fil/fil0crypt.cc
@@ -956,6 +956,11 @@ fil_crypt_read_crypt_data(fil_space_t* space)
return;
}
+ if (!fil_space_get_size(space->id)) {
+ /* The file cannot be accessed. */
+ return;
+ }
+
const page_size_t page_size(space->flags);
mtr_t mtr;
A more proper fix would be to remove this whole function, to make the crypt_data a more integral part of fil_space_t, and to ensure that crypt_data is always updated in sync with any access to the file (be it the very first time the first page is read, or any update of the encryption status).