Note: The test case and the debug assertion are similar (but not identical) to MDEV-22222, however this one also fails on a non-debug build.
--source include/galera_cluster.inc
|
|
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
START TRANSACTION;
|
INSERT INTO t1 VALUES (1);
|
LOCK TABLES t1 READ;
|
|
# Cleanup
|
UNLOCK TABLES;
|
DROP TABLE t1;
|
10.4 non-debug ba679ae52
|
#3 <signal handler called>
|
#4 __GI___pthread_mutex_lock (mutex=mutex@entry=0x70) at ../nptl/pthread_mutex_lock.c:67
|
#5 0x00007f19ce605e7d in gu::Mutex::lock (this=0x70) at galerautils/src/gu_mutex.hpp:50
|
#6 galera::TrxHandleMaster::lock (this=0x0) at galera/src/trx_handle.hpp:826
|
#7 galera::TrxHandleLock::TrxHandleLock (trx=..., this=0x7f19c45dd2e0) at galera/src/trx_handle.hpp:1121
|
#8 galera_replay_trx (gh=<optimized out>, trx_handle=<optimized out>, recv_ctx=0x7f19c45dd6e0) at galera/src/wsrep_provider.cpp:310
|
#9 0x0000559822fa8af8 in wsrep::wsrep_provider_v26::replay (this=<optimized out>, ws_handle=..., reply_service=<optimized out>) at /data/src/10.4/wsrep-lib/src/wsrep_provider_v26.cpp:198
|
#10 0x00005598229eb032 in Wsrep_client_service::replay (this=<optimized out>) at /data/src/10.4/wsrep-lib/include/wsrep/transaction.hpp:219
|
#11 0x0000559822fa5c86 in wsrep::transaction::replay (this=0x7f195c006bc8, lock=...) at /data/src/10.4/wsrep-lib/src/transaction.cpp:1703
|
#12 0x0000559822fa6c93 in wsrep::transaction::after_statement (this=this@entry=0x7f195c006bc8) at /data/src/10.4/wsrep-lib/src/transaction.cpp:816
|
#13 0x0000559822f89331 in wsrep::client_state::after_statement (this=this@entry=0x7f195c006b60) at /data/src/10.4/wsrep-lib/src/client_state.cpp:248
|
#14 0x000055982289b969 in wsrep_after_statement (thd=0x7f195c000c08) at /data/src/10.4/sql/sql_class.h:4900
|
#15 wsrep_mysql_parse (thd=0x7f195c000c08, rawbuf=0x7f195c00ffb0 "LOCK TABLES t1 READ", length=19, parser_state=0x7f19c45de190, is_com_multi=<optimized out>, is_next_command=<optimized out>) at /data/src/10.4/sql/sql_parse.cc:7734
|
#16 0x000055982289e0c1 in dispatch_command (command=COM_QUERY, thd=0x7f195c000c08, packet=<optimized out>, packet_length=<optimized out>, is_com_multi=<optimized out>, is_next_command=<optimized out>) at /data/src/10.4/sql/sql_class.h:1168
|
#17 0x000055982289e9df in do_command (thd=0x7f195c000c08) at /data/src/10.4/sql/sql_parse.cc:1359
|
#18 0x00005598229728f4 in do_handle_one_connection (connect=connect@entry=0x559824b5d538) at /data/src/10.4/sql/sql_connect.cc:1412
|
#19 0x00005598229729e4 in handle_one_connection (arg=arg@entry=0x559824b5d538) at /data/src/10.4/sql/sql_connect.cc:1316
|
#20 0x0000559822ecc2bf in pfs_spawn_thread (arg=0x5598247b6328) at /data/src/10.4/storage/perfschema/pfs.cc:1869
|
#21 0x00007f19d3b1bfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
|
#22 0x00007f19d336a4cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
10.4 debug edc3899d
|
mysqld: /data/src/10.4/wsrep-lib/src/transaction.cpp:419: int wsrep::transaction::before_commit(): Assertion `state() == s_executing || state() == s_prepared || state() == s_committing || state() == s_must_abort || state() == s_replaying' failed.
|
200412 0:50:23 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007fcd089f9102 in __GI___assert_fail (assertion=0x55b99987b3e0 "state() == s_executing || state() == s_prepared || state() == s_committing || state() == s_must_abort || state() == s_replaying", file=0x55b99987a6c0 "/data/src/10.4/wsrep-lib/src/transaction.cpp", line=419, function=0x55b99987ed60 <wsrep::transaction::before_commit()::__PRETTY_FUNCTION__> "int wsrep::transaction::before_commit()") at assert.c:101
|
#8 0x000055b998cf54e3 in wsrep::transaction::before_commit (this=0x62b000110470) at /data/src/10.4/wsrep-lib/src/transaction.cpp:415
|
#9 0x000055b99757d42a in wsrep::client_state::before_commit (this=0x62b000110408) at /data/src/10.4/wsrep-lib/include/wsrep/client_state.hpp:472
|
#10 0x000055b99779c9c7 in wsrep_before_commit (thd=0x62b00010a270, all=false) at /data/src/10.4/sql/wsrep_trans_observer.h:271
|
#11 0x000055b9977a5651 in ha_commit_trans (thd=0x62b00010a270, all=false) at /data/src/10.4/sql/handler.cc:1557
|
#12 0x000055b9973c8482 in trans_commit_stmt (thd=0x62b00010a270) at /data/src/10.4/sql/transaction.cc:436
|
#13 0x000055b996fd8c6e in mysql_execute_command (thd=0x62b00010a270) at /data/src/10.4/sql/sql_parse.cc:6158
|
#14 0x000055b996fe446a in mysql_parse (thd=0x62b00010a270, rawbuf=0x62b000111290 "LOCK TABLES t1 READ", length=19, parser_state=0x7fcced10a5d0, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7900
|
#15 0x000055b996fe2eba in wsrep_mysql_parse (thd=0x62b00010a270, rawbuf=0x62b000111290 "LOCK TABLES t1 READ", length=19, parser_state=0x7fcced10a5d0, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7704
|
#16 0x000055b996fb90b0 in dispatch_command (command=COM_QUERY, thd=0x62b00010a270, packet=0x6290002fd271 "LOCK TABLES t1 READ", packet_length=19, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1827
|
#17 0x000055b996fb5a88 in do_command (thd=0x62b00010a270) at /data/src/10.4/sql/sql_parse.cc:1359
|
#18 0x000055b99738ddc4 in do_handle_one_connection (connect=0x61100006f4b0) at /data/src/10.4/sql/sql_connect.cc:1412
|
#19 0x000055b99738d666 in handle_one_connection (arg=0x61100006f4b0) at /data/src/10.4/sql/sql_connect.cc:1316
|
#20 0x000055b9989cb531 in pfs_spawn_thread (arg=0x61600007ecf0) at /data/src/10.4/storage/perfschema/pfs.cc:1869
|
#21 0x00007fcd09273fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
|
#22 0x00007fcd08ac24cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Reproducible on 10.4, 10.5.
Not reproducible on 10.3.
{"report":{"fcp":810.7000007629395,"ttfb":228.80000019073486,"pageVisibility":"visible","entityId":85363,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"84e3acc2-06f8-4505-a57e-f0e9e980c57f","navigationType":0,"readyForUser":880.8000001907349,"redirectCount":0,"resourceLoadedEnd":864.2000007629395,"resourceLoadedStart":237.60000038146973,"resourceTiming":[{"duration":114.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":237.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":237.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":352.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":114.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":237.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":237.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":352.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":154.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/c54b129276d75dc2a3460e1d78f37913-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":238,"connectEnd":238,"connectStart":238,"domainLookupEnd":238,"domainLookupStart":238,"fetchStart":238,"redirectEnd":0,"redirectStart":0,"requestStart":238,"responseEnd":392.5,"responseStart":392.5,"secureConnectionStart":238},{"duration":227.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/f867843cd2fdb209d4d1d4f760f86346-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":238.4000005722046,"connectEnd":238.4000005722046,"connectStart":238.4000005722046,"domainLookupEnd":238.4000005722046,"domainLookupStart":238.4000005722046,"fetchStart":238.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":238.4000005722046,"responseEnd":466.1000003814697,"responseStart":466.1000003814697,"secureConnectionStart":238.4000005722046},{"duration":231.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/ffdb17665775c5b4d6f097f3974ee359-CDN/lu2bsh/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":238.5,"connectEnd":238.5,"connectStart":238.5,"domainLookupEnd":238.5,"domainLookupStart":238.5,"fetchStart":238.5,"redirectEnd":0,"redirectStart":0,"requestStart":238.5,"responseEnd":470.1000003814697,"responseStart":470.1000003814697,"secureConnectionStart":238.5},{"duration":231.89999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":238.60000038146973,"connectEnd":238.60000038146973,"connectStart":238.60000038146973,"domainLookupEnd":238.60000038146973,"domainLookupStart":238.60000038146973,"fetchStart":238.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":238.60000038146973,"responseEnd":470.5,"responseStart":470.5,"secureConnectionStart":238.60000038146973},{"duration":232.60000038146973,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bsh/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":238.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":238.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":471.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":232.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":238.80000019073486,"connectEnd":238.80000019073486,"connectStart":238.80000019073486,"domainLookupEnd":238.80000019073486,"domainLookupStart":238.80000019073486,"fetchStart":238.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":238.80000019073486,"responseEnd":470.9000005722046,"responseStart":470.9000005722046,"secureConnectionStart":238.80000019073486},{"duration":232.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":238.9000005722046,"connectEnd":238.9000005722046,"connectStart":238.9000005722046,"domainLookupEnd":238.9000005722046,"domainLookupStart":238.9000005722046,"fetchStart":238.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":238.9000005722046,"responseEnd":471.4000005722046,"responseStart":471.4000005722046,"secureConnectionStart":238.9000005722046},{"duration":232.70000076293945,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bsh/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":239,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":239,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":471.70000076293945,"responseStart":0,"secureConnectionStart":0},{"duration":232.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/81b5d7c27af3ebc078cc4a36383678ba-CDN/lu2bsh/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":239.10000038146973,"connectEnd":239.10000038146973,"connectStart":239.10000038146973,"domainLookupEnd":239.10000038146973,"domainLookupStart":239.10000038146973,"fetchStart":239.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":239.10000038146973,"responseEnd":471.9000005722046,"responseStart":471.9000005722046,"secureConnectionStart":239.10000038146973},{"duration":601.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":253.4000005722046,"connectEnd":253.4000005722046,"connectStart":253.4000005722046,"domainLookupEnd":253.4000005722046,"domainLookupStart":253.4000005722046,"fetchStart":253.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":253.4000005722046,"responseEnd":854.7000007629395,"responseStart":854.7000007629395,"secureConnectionStart":253.4000005722046},{"duration":597.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":266.9000005722046,"connectEnd":266.9000005722046,"connectStart":266.9000005722046,"domainLookupEnd":266.9000005722046,"domainLookupStart":266.9000005722046,"fetchStart":266.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":266.9000005722046,"responseEnd":864.2000007629395,"responseStart":864.2000007629395,"secureConnectionStart":266.9000005722046},{"duration":251.0999994277954,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":611.4000005722046,"connectEnd":611.4000005722046,"connectStart":611.4000005722046,"domainLookupEnd":611.4000005722046,"domainLookupStart":611.4000005722046,"fetchStart":611.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":611.4000005722046,"responseEnd":862.5,"responseStart":862.5,"secureConnectionStart":611.4000005722046},{"duration":77.40000057220459,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":789.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":789.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":866.7000007629395,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":71,"responseStart":229,"responseEnd":267,"domLoading":232,"domInteractive":1005,"domContentLoadedEventStart":1005,"domContentLoadedEventEnd":1050,"domComplete":1402,"loadEventStart":1402,"loadEventEnd":1403,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":985.4000005722046},{"name":"bigPipe.sidebar-id.end","time":986.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":986.2000007629395},{"name":"bigPipe.activity-panel-pipe-id.end","time":987.3000001907349},{"name":"activityTabFullyLoaded","time":1066.8000001907349}],"measures":[],"correlationId":"3f38d7db402608","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":18,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}