10.3 e8b6c150
|
mysqld: /data/src/10.3/sql/transaction.cc:512: bool trans_commit_stmt(THD*): Assertion `! thd->in_sub_stmt' failed.
|
190214 20:36:32 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f625c45aee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x000056471166dd7b in trans_commit_stmt (thd=0x7f6208000b00) at /data/src/10.3/sql/transaction.cc:512
|
#9 0x00005647116fdd38 in SEQUENCE::read_initial_values (this=0x7f62080b9a08, table=0x7f62080bc380) at /data/src/10.3/sql/sql_sequence.cc:493
|
#10 0x0000564711f68aba in ha_sequence::open (this=0x7f62080bdbd8, name=0x7f620806c3b0 "./test/s1", mode=2, flags=18) at /data/src/10.3/sql/ha_sequence.cc:114
|
#11 0x00005647117f6989 in handler::ha_open (this=0x7f62080bdbd8, table_arg=0x7f62080bc380, name=0x7f620806c3b0 "./test/s1", mode=2, test_if_locked=18, mem_root=0x0, partitions_to_open=0x0) at /data/src/10.3/sql/handler.cc:2733
|
#12 0x000056471160c128 in open_table_from_share (thd=0x7f6208000b00, share=0x7f620806be68, alias=0x7f62080ab890, db_stat=33, prgflag=8, ha_open_flags=18, outparam=0x7f62080bc380, is_create_table=false, partitions_to_open=0x0) at /data/src/10.3/sql/table.cc:3495
|
#13 0x0000564711467157 in open_table (thd=0x7f6208000b00, table_list=0x7f62080ab848, ot_ctx=0x7f625579b480) at /data/src/10.3/sql/sql_base.cc:1975
|
#14 0x000056471146a1a4 in open_and_process_table (thd=0x7f6208000b00, lex=0x7f625579b760, tables=0x7f62080ab848, counter=0x7f625579b54c, flags=1346, prelocking_strategy=0x7f625579b550, has_prelocking_list=false, ot_ctx=0x7f625579b480) at /data/src/10.3/sql/sql_base.cc:3596
|
#15 0x000056471146b3a0 in open_tables (thd=0x7f6208000b00, options=..., start=0x7f625579b530, counter=0x7f625579b54c, flags=1346, prelocking_strategy=0x7f625579b550) at /data/src/10.3/sql/sql_base.cc:4121
|
#16 0x00005647114634e2 in open_tables (thd=0x7f6208000b00, tables=0x7f625579b530, counter=0x7f625579b54c, flags=1346, prelocking_strategy=0x7f625579b550) at /data/src/10.3/sql/sql_base.h:250
|
#17 0x000056471146d342 in open_normal_and_derived_tables (thd=0x7f6208000b00, tables=0x7f62080ab848, flags=1346, dt_phases=35) at /data/src/10.3/sql/sql_base.cc:5059
|
#18 0x000056471146d51b in open_tables_only_view_structure (thd=0x7f6208000b00, table_list=0x7f62080ab848, can_deadlock=true) at /data/src/10.3/sql/sql_base.cc:5116
|
#19 0x0000564711598e0f in fill_schema_table_by_open (thd=0x7f6208000b00, mem_root=0x7f625579cfd0, is_show_fields_or_keys=false, table=0x7f620804dd68, schema_table=0x564712a69b80 <schema_tables+1216>, orig_db_name=0x7f6208064938, orig_table_name=0x7f6208064998, open_tables_state_backup=0x7f625579d020, can_deadlock=true) at /data/src/10.3/sql/sql_show.cc:4566
|
#20 0x000056471159a73f in get_all_tables (thd=0x7f6208000b00, tables=0x7f620803acc8, cond=0x0) at /data/src/10.3/sql/sql_show.cc:5204
|
#21 0x00005647115ab7a8 in get_schema_tables_result (join=0x7f62080626c8, executed_place=PROCESSED_BY_JOIN_EXEC) at /data/src/10.3/sql/sql_show.cc:8802
|
#22 0x0000564711544668 in JOIN::exec_inner (this=0x7f62080626c8) at /data/src/10.3/sql/sql_select.cc:4003
|
#23 0x0000564711543cee in JOIN::exec (this=0x7f62080626c8) at /data/src/10.3/sql/sql_select.cc:3834
|
#24 0x0000564711544f8e in mysql_select (thd=0x7f6208000b00, tables=0x7f620803acc8, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=4026534656, result=0x7f620804db30, unit=0x7f620803bab0, select_lex=0x7f620803c220) at /data/src/10.3/sql/sql_select.cc:4239
|
#25 0x0000564711536eb4 in handle_select (thd=0x7f6208000b00, lex=0x7f620803b9e8, result=0x7f620804db30, setup_tables_done_option=1073741824) at /data/src/10.3/sql/sql_select.cc:385
|
#26 0x00005647114fb2a8 in mysql_execute_command (thd=0x7f6208000b00) at /data/src/10.3/sql/sql_parse.cc:4837
|
#27 0x000056471142356e in sp_instr_stmt::exec_core (this=0x7f620803b320, thd=0x7f6208000b00, nextp=0x7f625579eb64) at /data/src/10.3/sql/sp_head.cc:3594
|
#28 0x00005647114229cb in sp_lex_keeper::reset_lex_and_exec_core (this=0x7f620803b368, thd=0x7f6208000b00, nextp=0x7f625579eb64, open_tables=false, instr=0x7f620803b320) at /data/src/10.3/sql/sp_head.cc:3322
|
#29 0x0000564711423150 in sp_instr_stmt::execute (this=0x7f620803b320, thd=0x7f6208000b00, nextp=0x7f625579eb64) at /data/src/10.3/sql/sp_head.cc:3500
|
#30 0x000056471141cecb in sp_head::execute (this=0x7f6208039648, thd=0x7f6208000b00, merge_da_on_success=false) at /data/src/10.3/sql/sp_head.cc:1354
|
#31 0x000056471141e04d in sp_head::execute_trigger (this=0x7f6208039648, thd=0x7f6208000b00, db_name=0x7f6208075108, table_name=0x7f6208075118, grant_info=0x7f6208039290) at /data/src/10.3/sql/sp_head.cc:1763
|
#32 0x00005647115e43cc in Table_triggers_list::process_triggers (this=0x7f620800e338, thd=0x7f6208000b00, event=TRG_EVENT_INSERT, time_type=TRG_ACTION_BEFORE, old_row_is_record1=true) at /data/src/10.3/sql/sql_trigger.cc:2212
|
#33 0x00005647114763d0 in fill_record_n_invoke_before_triggers (thd=0x7f6208000b00, table=0x7f62080a6f30, ptr=0x7f6208006a30, values=..., ignore_errors=false, event=TRG_EVENT_INSERT) at /data/src/10.3/sql/sql_base.cc:8623
|
#34 0x00005647114b8dcc in mysql_insert (thd=0x7f6208000b00, table_list=0x7f6208014dc8, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at /data/src/10.3/sql/sql_insert.cc:1006
|
#35 0x00005647114fab3a in mysql_execute_command (thd=0x7f6208000b00) at /data/src/10.3/sql/sql_parse.cc:4730
|
#36 0x00005647115058a5 in mysql_parse (thd=0x7f6208000b00, rawbuf=0x7f6208014ce8 "INSERT INTO t1 VALUES (1)", length=25, parser_state=0x7f62557a05f0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8095
|
#37 0x00005647114f2a59 in dispatch_command (command=COM_QUERY, thd=0x7f6208000b00, packet=0x7f6208168451 "INSERT INTO t1 VALUES (1)", packet_length=25, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1854
|
#38 0x00005647114f1431 in do_command (thd=0x7f6208000b00) at /data/src/10.3/sql/sql_parse.cc:1396
|
#39 0x000056471165974f in do_handle_one_connection (connect=0x564713b3b7b0) at /data/src/10.3/sql/sql_connect.cc:1403
|
#40 0x00005647116594d3 in handle_one_connection (arg=0x564713b3b7b0) at /data/src/10.3/sql/sql_connect.cc:1309
|
#41 0x0000564711af52e1 in pfs_spawn_thread (arg=0x564713b7d150) at /data/src/10.3/storage/perfschema/pfs.cc:1862
|
#42 0x00007f625e131494 in start_thread (arg=0x7f62557a1700) at pthread_create.c:333
|
#43 0x00007f625c51793f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Test case based on alice's reproducer from the comment
--source include/have_innodb.inc
|
|
CREATE SEQUENCE s1 ENGINE=InnoDB;
|
ALTER TABLE s1 FORCE;
|
CREATE TABLE t1 (a INT) ENGINE=MyISAM;
|
CREATE TABLE t2 (b VARCHAR(64)) ENGINE=MyISAM;
|
CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 SELECT TABLE_NAME FROM INFORMATION_SCHEMA.PARTITIONS;
|
INSERT INTO t1 VALUES (1);
|
|
# Cleanup
|
DROP TABLE t1, t2, s1;
|
Reproducible with at least MyISAM and Aria for base tables, and with InnoDB for the sequence; but not vice versa.
No visible effect on a non-debug build.
{"report":{"fcp":823.9000000953674,"ttfb":205.90000009536743,"pageVisibility":"visible","entityId":67007,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"1d3f77b8-8df4-4d92-aa61-ee26d09fbbd3","navigationType":0,"readyForUser":911.5,"redirectCount":0,"resourceLoadedEnd":568.9000000953674,"resourceLoadedStart":272.10000014305115,"resourceTiming":[{"duration":8.699999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":272.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":272.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":280.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":8.599999904632568,"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":272.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":272.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":281,"responseStart":0,"secureConnectionStart":0},{"duration":149.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":272.60000014305115,"connectEnd":272.60000014305115,"connectStart":272.60000014305115,"domainLookupEnd":272.60000014305115,"domainLookupStart":272.60000014305115,"fetchStart":272.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":285.2000000476837,"responseEnd":422.5,"responseStart":303.90000009536743,"secureConnectionStart":272.60000014305115},{"duration":11,"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":273.10000014305115,"connectEnd":273.10000014305115,"connectStart":273.10000014305115,"domainLookupEnd":273.10000014305115,"domainLookupStart":273.10000014305115,"fetchStart":273.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":273.10000014305115,"responseEnd":284.10000014305115,"responseStart":284,"secureConnectionStart":273.10000014305115},{"duration":295.7999999523163,"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":273.10000014305115,"connectEnd":273.10000014305115,"connectStart":273.10000014305115,"domainLookupEnd":273.10000014305115,"domainLookupStart":273.10000014305115,"fetchStart":273.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":286.5,"responseEnd":568.9000000953674,"responseStart":306.5,"secureConnectionStart":273.10000014305115},{"duration":11.900000095367432,"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":273.2999999523163,"connectEnd":273.2999999523163,"connectStart":273.2999999523163,"domainLookupEnd":273.2999999523163,"domainLookupStart":273.2999999523163,"fetchStart":273.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":273.2999999523163,"responseEnd":285.2000000476837,"responseStart":285.2000000476837,"secureConnectionStart":273.2999999523163},{"duration":12.599999904632568,"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":273.40000009536743,"connectEnd":273.40000009536743,"connectStart":273.40000009536743,"domainLookupEnd":273.40000009536743,"domainLookupStart":273.40000009536743,"fetchStart":273.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":273.40000009536743,"responseEnd":286,"responseStart":286,"secureConnectionStart":273.40000009536743},{"duration":13.400000095367432,"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":273.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":273.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":286.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":13.899999856948853,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":273.60000014305115,"connectEnd":273.60000014305115,"connectStart":273.60000014305115,"domainLookupEnd":273.60000014305115,"domainLookupStart":273.60000014305115,"fetchStart":273.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":273.60000014305115,"responseEnd":287.5,"responseStart":287.5,"secureConnectionStart":273.60000014305115},{"duration":14.400000095367432,"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":273.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":273.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":288.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":15.5,"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":273.7999999523163,"connectEnd":273.7999999523163,"connectStart":273.7999999523163,"domainLookupEnd":273.7999999523163,"domainLookupStart":273.7999999523163,"fetchStart":273.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":273.7999999523163,"responseEnd":289.2999999523163,"responseStart":289.2999999523163,"secureConnectionStart":273.7999999523163},{"duration":214.10000014305115,"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":298.7999999523163,"connectEnd":298.7999999523163,"connectStart":298.7999999523163,"domainLookupEnd":298.7999999523163,"domainLookupStart":298.7999999523163,"fetchStart":298.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":311.2999999523163,"responseEnd":512.9000000953674,"responseStart":509.10000014305115,"secureConnectionStart":298.7999999523163},{"duration":214.29999995231628,"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":298.90000009536743,"connectEnd":298.90000009536743,"connectStart":298.90000009536743,"domainLookupEnd":298.90000009536743,"domainLookupStart":298.90000009536743,"fetchStart":298.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":314.2000000476837,"responseEnd":513.2000000476837,"responseStart":509.7000000476837,"secureConnectionStart":298.90000009536743},{"duration":112,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":563.2999999523163,"connectEnd":563.2999999523163,"connectStart":563.2999999523163,"domainLookupEnd":563.2999999523163,"domainLookupStart":563.2999999523163,"fetchStart":563.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":644.6000001430511,"responseEnd":675.2999999523163,"responseStart":674.4000000953674,"secureConnectionStart":563.2999999523163},{"duration":154.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":782.2000000476837,"connectEnd":782.2000000476837,"connectStart":782.2000000476837,"domainLookupEnd":782.2000000476837,"domainLookupStart":782.2000000476837,"fetchStart":782.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":903.5,"responseEnd":936.7000000476837,"responseStart":934.4000000953674,"secureConnectionStart":782.2000000476837},{"duration":85.70000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":817.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":817.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":903.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":23,"responseStart":206,"responseEnd":298,"domLoading":210,"domInteractive":1011,"domContentLoadedEventStart":1011,"domContentLoadedEventEnd":1057,"domComplete":1780,"loadEventStart":1780,"loadEventEnd":1782,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":989.9000000953674},{"name":"bigPipe.sidebar-id.end","time":990.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":990.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":993.2000000476837},{"name":"activityTabFullyLoaded","time":1068}],"measures":[],"correlationId":"445bce993d7ac5","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":108,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}