10.4 30da40bb8
|
mysqld: /data/src/10.4/storage/innobase/include/sync0policy.h:62: MutexDebug<Mutex>::Context::Context(latch_id_t) [with Mutex = TTASEventMutex<GenericPolicy>]: Assertion `id != LATCH_ID_NONE' failed.
|
190109 14:21:52 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f4a57fb6ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x000055e6d4a192e9 in MutexDebug<TTASEventMutex<GenericPolicy> >::Context::Context (this=0x7ffce2e1e520, id=LATCH_ID_NONE) at /data/src/10.4/storage/innobase/include/sync0policy.h:62
|
#9 0x000055e6d4a17b0a in MutexDebug<TTASEventMutex<GenericPolicy> >::enter (this=0x55e6d643a1d0 <fil_crypt_threads_mutex+16>, mutex=0x55e6d643a1c0 <fil_crypt_threads_mutex>, name=0x55e6d52a7ec0 "/data/src/10.4/storage/innobase/fil/fil0crypt.cc", line=2370) at /data/src/10.4/storage/innobase/include/sync0policy.ic:66
|
#10 0x000055e6d4a168fa in GenericPolicy<TTASEventMutex<GenericPolicy> >::enter (this=0x55e6d643a1d0 <fil_crypt_threads_mutex+16>, mutex=..., filename=0x55e6d52a7ec0 "/data/src/10.4/storage/innobase/fil/fil0crypt.cc", line=2370) at /data/src/10.4/storage/innobase/include/sync0policy.h:345
|
#11 0x000055e6d4a14cf7 in PolicyMutex<TTASEventMutex<GenericPolicy> >::enter (this=0x55e6d643a1c0 <fil_crypt_threads_mutex>, n_spins=30, n_delay=4, name=0x55e6d52a7ec0 "/data/src/10.4/storage/innobase/fil/fil0crypt.cc", line=2370) at /data/src/10.4/storage/innobase/include/ib0mutex.h:594
|
#12 0x000055e6d4d28e32 in fil_space_crypt_close_tablespace (space=0x55e6d8a1c340) at /data/src/10.4/storage/innobase/fil/fil0crypt.cc:2370
|
#13 0x000055e6d4d17df4 in fil_check_pending_operations (id=639, operation=FIL_OPERATION_DELETE, space=0x7ffce2e1e860, path=0x7ffce2e1e858) at /data/src/10.4/storage/innobase/fil/fil0fil.cc:2392
|
#14 0x000055e6d4d18377 in fil_delete_tablespace (id=639, drop_ahi=false) at /data/src/10.4/storage/innobase/fil/fil0fil.cc:2551
|
#15 0x000055e6d4b601b4 in row_drop_table_for_mysql (name=0x55e6d8a1e9a8 "test/#sql-1910_e#P#ver_p1", trx=0x7f4a549b7118, sqlcom=SQLCOM_DROP_TABLE, create_failed=false, nonatomic=true) at /data/src/10.4/storage/innobase/row/row0mysql.cc:3768
|
#16 0x000055e6d4b5dc25 in row_mysql_drop_garbage_tables () at /data/src/10.4/storage/innobase/row/row0mysql.cc:2771
|
#17 0x000055e6d4aaf788 in recv_recovery_rollback_active () at /data/src/10.4/storage/innobase/log/log0recv.cc:3563
|
#18 0x000055e6d4bc5c54 in srv_start (create_new_db=false) at /data/src/10.4/storage/innobase/srv/srv0start.cc:2145
|
#19 0x000055e6d49edf5f in innodb_init (p=0x55e6d7e99550) at /data/src/10.4/storage/innobase/handler/ha_innodb.cc:4252
|
#20 0x000055e6d46c1f8d in ha_initialize_handlerton (plugin=0x55e6d7dcb608) at /data/src/10.4/sql/handler.cc:523
|
#21 0x000055e6d43c8deb in plugin_initialize (tmp_root=0x7ffce2e26360, plugin=0x55e6d7dcb608, argc=0x55e6d5baaf30 <remaining_argc>, argv=0x55e6d7d753d8, options_only=false) at /data/src/10.4/sql/sql_plugin.cc:1437
|
#22 0x000055e6d43c9a80 in plugin_init (argc=0x55e6d5baaf30 <remaining_argc>, argv=0x55e6d7d753d8, flags=0) at /data/src/10.4/sql/sql_plugin.cc:1720
|
#23 0x000055e6d4287959 in init_server_components () at /data/src/10.4/sql/mysqld.cc:5333
|
#24 0x000055e6d4288abe in mysqld_main (argc=19, argv=0x55e6d7d753d8) at /data/src/10.4/sql/mysqld.cc:5860
|
#25 0x000055e6d427cf20 in main (argc=19, argv=0x7ffce2e26b98) at /data/src/10.4/sql/main.cc:25
|
The backup dir (stored after prepare but before any server startup was attempted) is attached. To reproduce the failure, restore it to the datadir and start the server with
--innodb-encrypt-tables --innodb-encrypt-log --innodb-encryption-threads=4 --aria-encrypt-tables=1 --encrypt-tmp-disk-tables=1 --file-key-management --plugin-load-add=file_key_management --file-key-management-filename=`pwd`/mysql-test/std_data/keys.txt
|
(modify file-key-management-filename value as needed).
Notes on the origin of the report. Please be aware it's not easily reproducible the same way, the test is concurrent by nature, and apparently there is a race condition involved.
The problem initially happened by running the concurrent test with MariaBackupFull scenario:
github.com/MariaDB/randgen elenst-dev 5342873c97, github.com/elenst/mariadb-toolbox master 6ded4b71568
|
perl ./runall-new.pl --basedir=/home/travis/server/10.4 --vardir=/home/travis/logs/vardir --duration=350 --threads=4 --seed=1547032787 --reporters=Backtrace,ErrorLog,Deadlock --skip-gendata --gendata-advanced --views --grammar=conf/mariadb/generic-dml.yy --redefine=conf/mariadb/bulk_insert.yy --mysqld=--log_output=FILE --mysqld=--max-statement-time=20 --mysqld=--lock-wait-timeout=10 --mysqld=--loose-innodb-lock-wait-timeout=5 --mysqld=--loose-debug_assert_on_not_freed_memory=0 --filter=/home/travis/mariadb-toolbox/travis/10.4-combo-filter.ff --mysqld=--innodb-encrypt-tables --mysqld=--innodb-encrypt-log --mysqld=--innodb-encryption-threads=4 --mysqld=--aria-encrypt-tables=1 --mysqld=--encrypt-tmp-disk-tables=1 --mysqld=--file-key-management --mysqld=--file-key-management-filename=/home/travis/mariadb-toolbox/data/keys.txt --mysqld=--plugin-load-add=file_key_management --engine=Aria --scenario=MariaBackupFull --redefine=conf/mariadb/alter_table.yy --redefine=conf/mariadb/modules/admin.yy --redefine=conf/mariadb/versioning.yy --redefine=conf/mariadb/sequences.yy
|
The test performs the following steps:
I have no information yet whether the problem happens on earlier versions.
{"report":{"fcp":1149.0999999046326,"ttfb":308.69999980926514,"pageVisibility":"visible","entityId":71770,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"2de81c78-d2e0-4a90-9898-c9a39ae96582","navigationType":0,"readyForUser":1260.9000000953674,"redirectCount":0,"resourceLoadedEnd":1390.6999998092651,"resourceLoadedStart":315.40000009536743,"resourceTiming":[{"duration":328.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":315.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":315.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":644.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":330.90000009536743,"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":315.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":315.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":646.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":339.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":315.7999997138977,"connectEnd":315.7999997138977,"connectStart":315.7999997138977,"domainLookupEnd":315.7999997138977,"domainLookupStart":315.7999997138977,"fetchStart":315.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":315.7999997138977,"responseEnd":655.5,"responseStart":655.5,"secureConnectionStart":315.7999997138977},{"duration":405.59999990463257,"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":315.90000009536743,"connectEnd":315.90000009536743,"connectStart":315.90000009536743,"domainLookupEnd":315.90000009536743,"domainLookupStart":315.90000009536743,"fetchStart":315.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":315.90000009536743,"responseEnd":721.5,"responseStart":721.5,"secureConnectionStart":315.90000009536743},{"duration":409.59999990463257,"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":316.09999990463257,"connectEnd":316.09999990463257,"connectStart":316.09999990463257,"domainLookupEnd":316.09999990463257,"domainLookupStart":316.09999990463257,"fetchStart":316.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":316.09999990463257,"responseEnd":725.6999998092651,"responseStart":725.6999998092651,"secureConnectionStart":316.09999990463257},{"duration":410.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":316.2999997138977,"connectEnd":316.2999997138977,"connectStart":316.2999997138977,"domainLookupEnd":316.2999997138977,"domainLookupStart":316.2999997138977,"fetchStart":316.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":316.2999997138977,"responseEnd":726.5,"responseStart":726.5,"secureConnectionStart":316.2999997138977},{"duration":410.40000009536743,"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":316.5,"connectEnd":316.5,"connectStart":316.5,"domainLookupEnd":316.5,"domainLookupStart":316.5,"fetchStart":316.5,"redirectEnd":0,"redirectStart":0,"requestStart":316.5,"responseEnd":726.9000000953674,"responseStart":726.9000000953674,"secureConnectionStart":316.5},{"duration":488,"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":316.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":804.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":410.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":316.69999980926514,"connectEnd":316.69999980926514,"connectStart":316.69999980926514,"domainLookupEnd":316.69999980926514,"domainLookupStart":316.69999980926514,"fetchStart":316.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":316.69999980926514,"responseEnd":727.5,"responseStart":727.5,"secureConnectionStart":316.69999980926514},{"duration":487.8999996185303,"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":316.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":804.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":411,"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":317.09999990463257,"connectEnd":317.09999990463257,"connectStart":317.09999990463257,"domainLookupEnd":317.09999990463257,"domainLookupStart":317.09999990463257,"fetchStart":317.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":317.09999990463257,"responseEnd":728.0999999046326,"responseStart":728.0999999046326,"secureConnectionStart":317.09999990463257},{"duration":986.0999999046326,"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":318.19999980926514,"connectEnd":318.19999980926514,"connectStart":318.19999980926514,"domainLookupEnd":318.19999980926514,"domainLookupStart":318.19999980926514,"fetchStart":318.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":318.19999980926514,"responseEnd":1304.2999997138977,"responseStart":1304.2999997138977,"secureConnectionStart":318.19999980926514},{"duration":983.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":323.40000009536743,"connectEnd":323.40000009536743,"connectStart":323.40000009536743,"domainLookupEnd":323.40000009536743,"domainLookupStart":323.40000009536743,"fetchStart":323.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":323.40000009536743,"responseEnd":1307.1999998092651,"responseStart":1307.1999998092651,"secureConnectionStart":323.40000009536743},{"duration":163.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":821.5999999046326,"connectEnd":821.5999999046326,"connectStart":821.5999999046326,"domainLookupEnd":821.5999999046326,"domainLookupStart":821.5999999046326,"fetchStart":821.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":821.5999999046326,"responseEnd":984.6999998092651,"responseStart":984.6999998092651,"secureConnectionStart":821.5999999046326},{"duration":308.5,"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":1082.1999998092651,"connectEnd":1082.1999998092651,"connectStart":1082.1999998092651,"domainLookupEnd":1082.1999998092651,"domainLookupStart":1082.1999998092651,"fetchStart":1082.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1082.1999998092651,"responseEnd":1390.6999998092651,"responseStart":1390.6999998092651,"secureConnectionStart":1082.1999998092651},{"duration":268.6000003814697,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1142.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1142.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1410.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":119,"responseStart":309,"responseEnd":319,"domLoading":313,"domInteractive":1413,"domContentLoadedEventStart":1413,"domContentLoadedEventEnd":1475,"domComplete":1962,"loadEventStart":1962,"loadEventEnd":1962,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1366.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1367.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1367.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1371.2999997138977},{"name":"activityTabFullyLoaded","time":1492.5999999046326}],"measures":[],"correlationId":"d06d354a3b75ae","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":123,"dbReadsTimeInMs":15,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I'm not sure if it's enough information to analyze the problem. Please return the report to me if it's not.