--source include/have_file_key_management_plugin.inc
|
|
SET GLOBAL aria_encrypt_tables = 1;
|
|
CREATE TABLE t1 (i INT, KEY(i)) ENGINE=Aria;
|
INSERT INTO t1 VALUES (1);
|
DROP TABLE t1;
|
mysqld: 10.1/storage/maria/ma_crypt.c:432: ma_encrypt: Assertion `rc == 0' failed.
|
150420 0:15:01 [ERROR] mysqld got signal 6 ;
|
Stack trace from 10.1 commit 22a7b4de
|
#6 0x00007f4081916311 in *__GI___assert_fail (assertion=0x7f4084daf87c "rc == 0", file=<optimized out>, line=432, function=0x7f4084daf8d3 "ma_encrypt") at assert.c:81
|
#7 0x00007f408497a017 in ma_encrypt (crypt_data=0x7f40789a82b0, src=0x7f407b004085 "\001", dst=0x7f4078aab085 "\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245\245"..., size=10, pageno=1, lsn=4294976107, key_version=0x7f4083ca8a94) at 10.1/storage/maria/ma_crypt.c:432
|
#8 0x00007f4084979e3d in ma_crypt_index_pre_write_hook (args=0x7f4083ca8b40) at 10.1/storage/maria/ma_crypt.c:384
|
#9 0x00007f408496186f in pagecache_fwrite (pagecache=0x7f4085d9f200, filedesc=0x7f407cea9488, buffer=0x7f407b004070 "\001", pageno=1, type=PAGECACHE_LSN_PAGE, flags=36) at 10.1/storage/maria/ma_pagecache.c:664
|
#10 0x00007f408496b119 in flush_cached_blocks (pagecache=0x7f4085d9f200, file=0x7f40789586e8, cache=0x7f4083ca8d60, end=0x7f4083ca8d68, type=FLUSH_RELEASE, first_errno=0x7f4083ca8cc4) at 10.1/storage/maria/ma_pagecache.c:4399
|
#11 0x00007f408496ba67 in flush_pagecache_blocks_int (pagecache=0x7f4085d9f200, file=0x7f40789586e8, type=FLUSH_RELEASE, filter=0, filter_arg=0x0) at 10.1/storage/maria/ma_pagecache.c:4688
|
#12 0x00007f408496be66 in flush_pagecache_blocks_with_filter (pagecache=0x7f4085d9f200, file=0x7f40789586e8, type=FLUSH_RELEASE, filter=0, filter_arg=0x0) at 10.1/storage/maria/ma_pagecache.c:4804
|
#13 0x00007f40849cc354 in maria_close (info=0x7f4078974070) at 10.1/storage/maria/ma_close.c:47
|
#14 0x00007f408493f070 in ha_maria::close (this=0x7f40788b6888) at 10.1/storage/maria/ha_maria.cc:1263
|
#15 0x00007f4084475d48 in handler::ha_close (this=0x7f40788b6888) at 10.1/sql/handler.cc:2575
|
#16 0x00007f408432dc64 in closefrm (table=0x7f4078888c70, free_share=true) at 10.1/sql/table.cc:3009
|
#17 0x00007f40841d772c in intern_close_table (table=0x7f4078888c70) at 10.1/sql/sql_base.cc:359
|
#18 0x00007f40843fc810 in tdc_remove_table (thd=0x7f407aa5b070, remove_type=TDC_RT_REMOVE_ALL, db=0x7f4078806730 "test", table_name=0x7f4078806118 "t1", kill_delayed_threads=false) at 10.1/sql/table_cache.cc:917
|
#19 0x00007f40842f363b in mysql_rm_table_no_locks (thd=0x7f407aa5b070, tables=0x7f4078806150, if_exists=false, drop_temporary=false, drop_view=false, dont_log_query=false, dont_free_locks=false) at 10.1/sql/sql_table.cc:2462
|
#20 0x00007f40842f292d in mysql_rm_table (thd=0x7f407aa5b070, tables=0x7f4078806150, if_exists=0 '\000', drop_temporary=0 '\000') at 10.1/sql/sql_table.cc:2085
|
#21 0x00007f408424693f in mysql_execute_command (thd=0x7f407aa5b070) at 10.1/sql/sql_parse.cc:4147
|
#22 0x00007f408425002e in mysql_parse (thd=0x7f407aa5b070, rawbuf=0x7f4078806088 "DROP TABLE t1", length=13, parser_state=0x7f4083cae1b0) at 10.1/sql/sql_parse.cc:7165
|
#23 0x00007f408423f03e in dispatch_command (command=COM_QUERY, thd=0x7f407aa5b070, packet=0x7f407eff3071 "DROP TABLE t1", packet_length=13) at 10.1/sql/sql_parse.cc:1462
|
#24 0x00007f408423de0e in do_command (thd=0x7f407aa5b070) at 10.1/sql/sql_parse.cc:1090
|
#25 0x00007f408436f0a7 in do_handle_one_connection (thd_arg=0x7f407aa5b070) at 10.1/sql/sql_connect.cc:1347
|
#26 0x00007f408436edec in handle_one_connection (arg=0x7f407aa5b070) at 10.1/sql/sql_connect.cc:1258
|
#27 0x00007f4084923f46 in pfs_spawn_thread (arg=0x7f4081023870) at 10.1/storage/perfschema/pfs.cc:1860
|
#28 0x00007f4083931b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
|
#29 0x00007f40819c695d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
On a release build, a warning is produced:
MariaDB [test]> DROP TABLE t1;
|
Query OK, 0 rows affected, 1 warning (0.01 sec)
|
|
MariaDB [test]> show warnings;
|
+-------+------+------------------------------------------------+
|
| Level | Code | Message |
|
+-------+------+------------------------------------------------+
|
| Error | 168 | failed to encrypt! rc: -1, dstlen: 0 size: 10
|
|
|
+-------+------+------------------------------------------------+
|
1 row in set (0.00 sec)
|
{"report":{"fcp":1161.5,"ttfb":552.8999999761581,"pageVisibility":"visible","entityId":50985,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"5fee630d-5bd5-446d-aecd-8e290841d95b","navigationType":0,"readyForUser":1231,"redirectCount":0,"resourceLoadedEnd":992.5,"resourceLoadedStart":560.5,"resourceTiming":[{"duration":112.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":560.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":560.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":672.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":112.30000007152557,"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":560.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":560.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":673,"responseStart":0,"secureConnectionStart":0},{"duration":163.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":560.8999999761581,"connectEnd":560.8999999761581,"connectStart":560.8999999761581,"domainLookupEnd":560.8999999761581,"domainLookupStart":560.8999999761581,"fetchStart":560.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":678.3999999761581,"responseEnd":724.7999999523163,"responseStart":696.2999999523163,"secureConnectionStart":560.8999999761581},{"duration":133,"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":561,"connectEnd":561,"connectStart":561,"domainLookupEnd":561,"domainLookupStart":561,"fetchStart":561,"redirectEnd":0,"redirectStart":0,"requestStart":678.7999999523163,"responseEnd":694,"responseStart":693.1000000238419,"secureConnectionStart":561},{"duration":171.10000002384186,"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":561,"connectEnd":561,"connectStart":561,"domainLookupEnd":561,"domainLookupStart":561,"fetchStart":561,"redirectEnd":0,"redirectStart":0,"requestStart":678.7999999523163,"responseEnd":732.1000000238419,"responseStart":697.1000000238419,"secureConnectionStart":561},{"duration":137.30000007152557,"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":561.1999999284744,"connectEnd":561.1999999284744,"connectStart":561.1999999284744,"domainLookupEnd":561.1999999284744,"domainLookupStart":561.1999999284744,"fetchStart":561.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":678.8999999761581,"responseEnd":698.5,"responseStart":697.7999999523163,"secureConnectionStart":561.1999999284744},{"duration":140,"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":561.1999999284744,"connectEnd":561.1999999284744,"connectStart":561.1999999284744,"domainLookupEnd":561.1999999284744,"domainLookupStart":561.1999999284744,"fetchStart":561.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":678.8999999761581,"responseEnd":701.1999999284744,"responseStart":700.6000000238419,"secureConnectionStart":561.1999999284744},{"duration":116.89999997615814,"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":561.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":561.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":678.1999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":139.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":561.3999999761581,"connectEnd":561.3999999761581,"connectStart":561.3999999761581,"domainLookupEnd":561.3999999761581,"domainLookupStart":561.3999999761581,"fetchStart":561.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":679.2999999523163,"responseEnd":700.6000000238419,"responseStart":699.8999999761581,"secureConnectionStart":561.3999999761581},{"duration":117,"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":561.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":561.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":678.5,"responseStart":0,"secureConnectionStart":0},{"duration":138.29999995231628,"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":561.6000000238419,"connectEnd":561.6000000238419,"connectStart":561.6000000238419,"domainLookupEnd":561.6000000238419,"domainLookupStart":561.6000000238419,"fetchStart":561.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":679.7999999523163,"responseEnd":699.8999999761581,"responseStart":698.5,"secureConnectionStart":561.6000000238419},{"duration":382.60000002384186,"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":570.2999999523163,"connectEnd":570.2999999523163,"connectStart":570.2999999523163,"domainLookupEnd":570.2999999523163,"domainLookupStart":570.2999999523163,"fetchStart":570.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":803.2999999523163,"responseEnd":952.8999999761581,"responseStart":949,"secureConnectionStart":570.2999999523163},{"duration":422.10000002384186,"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":570.3999999761581,"connectEnd":570.3999999761581,"connectStart":570.3999999761581,"domainLookupEnd":570.3999999761581,"domainLookupStart":570.3999999761581,"fetchStart":570.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":981,"responseEnd":992.5,"responseStart":991.3999999761581,"secureConnectionStart":570.3999999761581},{"duration":219.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":918.3999999761581,"connectEnd":918.3999999761581,"connectStart":918.3999999761581,"domainLookupEnd":918.3999999761581,"domainLookupStart":918.3999999761581,"fetchStart":918.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":1103,"responseEnd":1137.6999999284744,"responseStart":1136.5,"secureConnectionStart":918.3999999761581},{"duration":118.10000002384186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1140,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1140,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1258.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":139.19999992847443,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1162.1000000238419,"connectEnd":1162.1000000238419,"connectStart":1162.1000000238419,"domainLookupEnd":1162.1000000238419,"domainLookupStart":1162.1000000238419,"fetchStart":1162.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":1268.7999999523163,"responseEnd":1301.2999999523163,"responseStart":1300.2999999523163,"secureConnectionStart":1162.1000000238419}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":419,"responseStart":553,"responseEnd":570,"domLoading":556,"domInteractive":1284,"domContentLoadedEventStart":1284,"domContentLoadedEventEnd":1317,"domComplete":1748,"loadEventStart":1748,"loadEventEnd":1748,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1268.5},{"name":"bigPipe.sidebar-id.end","time":1269.1999999284744},{"name":"bigPipe.activity-panel-pipe-id.start","time":1269.3999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":1270.1999999284744},{"name":"activityTabFullyLoaded","time":1333.1999999284744}],"measures":[],"correlationId":"855ed0ced9c25c","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":67,"dbReadsTimeInMs":9,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
This is related to encrypting of the last partial block. In this case the whole string to encrypt is less than one block.