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":1191.8000001907349,"ttfb":283.09999990463257,"pageVisibility":"visible","entityId":71770,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"5626b8b0-3cae-4082-a407-42f5e4b67dda","navigationType":0,"readyForUser":1312.9000000953674,"redirectCount":0,"resourceLoadedEnd":2018.9000000953674,"resourceLoadedStart":289.30000019073486,"resourceTiming":[{"duration":118.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":289.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":289.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":407.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":126.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":289.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":289.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":416.5,"responseStart":0,"secureConnectionStart":0},{"duration":208.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":289.80000019073486,"connectEnd":289.80000019073486,"connectStart":289.80000019073486,"domainLookupEnd":289.80000019073486,"domainLookupStart":289.80000019073486,"fetchStart":289.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":289.80000019073486,"responseEnd":498.40000009536743,"responseStart":498.40000009536743,"secureConnectionStart":289.80000019073486},{"duration":357.5,"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":289.90000009536743,"connectEnd":289.90000009536743,"connectStart":289.90000009536743,"domainLookupEnd":289.90000009536743,"domainLookupStart":289.90000009536743,"fetchStart":289.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":289.90000009536743,"responseEnd":647.4000000953674,"responseStart":647.4000000953674,"secureConnectionStart":289.90000009536743},{"duration":361.30000019073486,"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":290.09999990463257,"connectEnd":290.09999990463257,"connectStart":290.09999990463257,"domainLookupEnd":290.09999990463257,"domainLookupStart":290.09999990463257,"fetchStart":290.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":290.09999990463257,"responseEnd":651.4000000953674,"responseStart":651.4000000953674,"secureConnectionStart":290.09999990463257},{"duration":361.59999990463257,"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":290.30000019073486,"connectEnd":290.30000019073486,"connectStart":290.30000019073486,"domainLookupEnd":290.30000019073486,"domainLookupStart":290.30000019073486,"fetchStart":290.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":290.30000019073486,"responseEnd":651.9000000953674,"responseStart":651.9000000953674,"secureConnectionStart":290.30000019073486},{"duration":361.90000009536743,"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":290.40000009536743,"connectEnd":290.40000009536743,"connectStart":290.40000009536743,"domainLookupEnd":290.40000009536743,"domainLookupStart":290.40000009536743,"fetchStart":290.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":290.40000009536743,"responseEnd":652.3000001907349,"responseStart":652.3000001907349,"secureConnectionStart":290.40000009536743},{"duration":363.40000009536743,"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":290.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":290.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":654,"responseStart":0,"secureConnectionStart":0},{"duration":362,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":290.80000019073486,"connectEnd":290.80000019073486,"connectStart":290.80000019073486,"domainLookupEnd":290.80000019073486,"domainLookupStart":290.80000019073486,"fetchStart":290.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":290.80000019073486,"responseEnd":652.8000001907349,"responseStart":652.8000001907349,"secureConnectionStart":290.80000019073486},{"duration":363.19999980926514,"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":290.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":290.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":654.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":362.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":291,"connectEnd":291,"connectStart":291,"domainLookupEnd":291,"domainLookupStart":291,"fetchStart":291,"redirectEnd":0,"redirectStart":0,"requestStart":291,"responseEnd":653.4000000953674,"responseStart":653.4000000953674,"secureConnectionStart":291},{"duration":1716.4000000953674,"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":292,"connectEnd":292,"connectStart":292,"domainLookupEnd":292,"domainLookupStart":292,"fetchStart":292,"redirectEnd":0,"redirectStart":0,"requestStart":292,"responseEnd":2008.4000000953674,"responseStart":2008.4000000953674,"secureConnectionStart":292},{"duration":1718.7000002861023,"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":292.09999990463257,"connectEnd":292.09999990463257,"connectStart":292.09999990463257,"domainLookupEnd":292.09999990463257,"domainLookupStart":292.09999990463257,"fetchStart":292.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":292.09999990463257,"responseEnd":2010.8000001907349,"responseStart":2010.8000001907349,"secureConnectionStart":292.09999990463257},{"duration":472.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":696.8000001907349,"connectEnd":696.8000001907349,"connectStart":696.8000001907349,"domainLookupEnd":696.8000001907349,"domainLookupStart":696.8000001907349,"fetchStart":696.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":696.8000001907349,"responseEnd":1169.7000002861023,"responseStart":1169.7000002861023,"secureConnectionStart":696.8000001907349},{"duration":887.3000001907349,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1130.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1130.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2018.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":635.5999999046326,"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":1383.3000001907349,"connectEnd":1383.3000001907349,"connectStart":1383.3000001907349,"domainLookupEnd":1383.3000001907349,"domainLookupStart":1383.3000001907349,"fetchStart":1383.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1383.3000001907349,"responseEnd":2018.9000000953674,"responseStart":2018.8000001907349,"secureConnectionStart":1383.3000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":101,"responseStart":283,"responseEnd":285,"domLoading":286,"domInteractive":2056,"domContentLoadedEventStart":2056,"domContentLoadedEventEnd":2130,"domComplete":2635,"loadEventStart":2635,"loadEventEnd":2636,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2019.2000002861023},{"name":"bigPipe.sidebar-id.end","time":2021.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":2022},{"name":"bigPipe.activity-panel-pipe-id.end","time":2025.0999999046326},{"name":"activityTabFullyLoaded","time":2156.9000000953674}],"measures":[],"correlationId":"9f8d550842e27a","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":116,"dbReadsTimeInMs":16,"dbConnsTimeInMs":25,"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.