CREATE TABLE t1 (a INT) ENGINE=MyISAM;
|
INSERT INTO t1 VALUES (1),(0);
|
|
CREATE TABLE t2 (
|
b INT,
|
b1 INT GENERATED ALWAYS AS (b/2) STORED,
|
b2 INT GENERATED ALWAYS AS (b*2) VIRTUAL,
|
b3 INT GENERATED ALWAYS AS (b MOD 128) STORED,
|
KEY (b1),
|
KEY (b3),
|
KEY (b1,b3,b2),
|
KEY (b2,b3)
|
) ENGINE=MyISAM;
|
INSERT INTO t2 (b) VALUES (6),(6),(8),(0),(4);
|
|
CREATE TABLE t3 (c INT) ENGINE=MyISAM;
|
INSERT INTO t3 VALUES (1),(2);
|
|
CREATE ALGORITHM = MERGE VIEW v AS SELECT t2.b1, t2.b2 FROM t1 STRAIGHT_JOIN t2 ON t1.a = t2.b3;
|
|
SELECT * FROM v STRAIGHT_JOIN t3 ON v.b2 = t3.c WHERE v.b1 <= 0;
|
|
# Cleanup
|
DROP VIEW v;
|
DROP TABLE t1, t2, t3;
|
10.4 81f6a3b0
|
mysqld: /data/src/10.4/sql/field.cc:4257: virtual longlong Field_long::val_int(): Assertion `marked_for_read()' failed.
|
190429 20:31:16 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007ffa21e0aee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x0000556612ba0fc4 in Field_long::val_int (this=0x7ffa001532f8) at /data/src/10.4/sql/field.cc:4257
|
#9 0x0000556612bf28a2 in Item_field::val_int (this=0x7ffa001557b8) at /data/src/10.4/sql/item.cc:3153
|
#10 0x0000556612c56f92 in Item_func_mul::int_op (this=0x7ffa00155630) at /data/src/10.4/sql/item_func.cc:1316
|
#11 0x0000556612ab510b in Item_func_hybrid_field_type::val_int_from_int_op (this=0x7ffa00155630) at /data/src/10.4/sql/item_func.h:701
|
#12 0x0000556612aa122c in Type_handler_int_result::Item_func_hybrid_field_type_val_int (this=0x556613f2f2f8 <type_handler_longlong>, item=0x7ffa00155630) at /data/src/10.4/sql/sql_type.cc:4679
|
#13 0x000055661287dfee in Item_func_hybrid_field_type::val_int (this=0x7ffa00155630) at /data/src/10.4/sql/item_func.h:757
|
#14 0x0000556612bfc09e in Item::save_int_in_field (this=0x7ffa00155630, field=0x7ffa001534b8, no_conversions=false) at /data/src/10.4/sql/item.cc:6482
|
#15 0x0000556612a9ebc4 in Type_handler_int_result::Item_save_in_field (this=0x556613f2f2f8 <type_handler_longlong>, item=0x7ffa00155630, field=0x7ffa001534b8, no_conversions=false) at /data/src/10.4/sql/sql_type.cc:3587
|
#16 0x0000556612bfc149 in Item::save_in_field (this=0x7ffa00155630, field=0x7ffa001534b8, no_conversions=false) at /data/src/10.4/sql/item.cc:6492
|
#17 0x00005566129c59c4 in TABLE::update_virtual_fields (this=0x7ffa00152430, h=0x7ffa001536f8, update_mode=VCOL_UPDATE_FOR_READ) at /data/src/10.4/sql/table.cc:8198
|
#18 0x0000556612bd6300 in handler::ha_rnd_next (this=0x7ffa001536f8, buf=0x7ffa001532a0 "\341\006") at /data/src/10.4/sql/handler.cc:2823
|
#19 0x0000556612d69b63 in rr_sequential (info=0x7ffa0004a140) at /data/src/10.4/sql/records.cc:481
|
#20 0x00005566127eed1b in READ_RECORD::read_record (this=0x7ffa0004a140) at /data/src/10.4/sql/records.h:73
|
#21 0x000055661291544f in join_init_read_record (tab=0x7ffa0004a078) at /data/src/10.4/sql/sql_select.cc:20985
|
#22 0x0000556612a580cc in JOIN_TAB_SCAN::open (this=0x7ffa0004bba8) at /data/src/10.4/sql/sql_join_cache.cc:3348
|
#23 0x0000556612a5651c in JOIN_CACHE::join_matching_records (this=0x7ffa0004d428, skip_last=false) at /data/src/10.4/sql/sql_join_cache.cc:2251
|
#24 0x0000556612a5607e in JOIN_CACHE::join_records (this=0x7ffa0004d428, skip_last=false) at /data/src/10.4/sql/sql_join_cache.cc:2088
|
#25 0x0000556612912d1c in sub_select_cache (join=0x7ffa00045690, join_tab=0x7ffa0004a078, end_of_records=true) at /data/src/10.4/sql/sql_select.cc:19822
|
#26 0x0000556612912f29 in sub_select (join=0x7ffa00045690, join_tab=0x7ffa00049cb0, end_of_records=true) at /data/src/10.4/sql/sql_select.cc:19993
|
#27 0x00005566129126f1 in do_select (join=0x7ffa00045690, procedure=0x0) at /data/src/10.4/sql/sql_select.cc:19584
|
#28 0x00005566128e9277 in JOIN::exec_inner (this=0x7ffa00045690) at /data/src/10.4/sql/sql_select.cc:4389
|
#29 0x00005566128e841e in JOIN::exec (this=0x7ffa00045690) at /data/src/10.4/sql/sql_select.cc:4171
|
#30 0x00005566128e9ad0 in mysql_select (thd=0x7ffa00000b00, tables=0x7ffa00015c78, wild_num=1, fields=..., conds=0x7ffa00017808, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7ffa00045668, unit=0x7ffa00004a28, select_lex=0x7ffa000156b8) at /data/src/10.4/sql/sql_select.cc:4603
|
#31 0x00005566128da040 in handle_select (thd=0x7ffa00000b00, lex=0x7ffa00004960, result=0x7ffa00045668, setup_tables_done_option=0) at /data/src/10.4/sql/sql_select.cc:424
|
#32 0x00005566128a38d9 in execute_sqlcom_select (thd=0x7ffa00000b00, all_tables=0x7ffa00015c78) at /data/src/10.4/sql/sql_parse.cc:6597
|
#33 0x0000556612898eaf in mysql_execute_command (thd=0x7ffa00000b00) at /data/src/10.4/sql/sql_parse.cc:3886
|
#34 0x00005566128a765f in mysql_parse (thd=0x7ffa00000b00, rawbuf=0x7ffa000155d8 "SELECT * FROM v STRAIGHT_JOIN t3 ON v.b2 = t3.c WHERE v.b1 <= 0", length=63, parser_state=0x7ffa0ffb4180, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8149
|
#35 0x00005566128930b6 in dispatch_command (command=COM_QUERY, thd=0x7ffa00000b00, packet=0x7ffa001398f1 "", packet_length=63, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1828
|
#36 0x000055661289189c in do_command (thd=0x7ffa00000b00) at /data/src/10.4/sql/sql_parse.cc:1361
|
#37 0x0000556612a09cad in do_handle_one_connection (connect=0x5566151d5290) at /data/src/10.4/sql/sql_connect.cc:1398
|
#38 0x0000556612a09a1e in handle_one_connection (arg=0x5566151d5290) at /data/src/10.4/sql/sql_connect.cc:1301
|
#39 0x0000556612e2ed9d in pfs_spawn_thread (arg=0x5566152726d0) at /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#40 0x00007ffa23eff494 in start_thread (arg=0x7ffa0ffb5700) at pthread_create.c:333
|
#41 0x00007ffa21ec793f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
No obvious failure on a non-debug build.
Not reproducible on 10.3.
{"report":{"fcp":818.2000000476837,"ttfb":144.90000009536743,"pageVisibility":"visible","entityId":75714,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"996e5ebf-037b-46d1-90a0-619afb977e7c","navigationType":0,"readyForUser":892.4000000953674,"redirectCount":0,"resourceLoadedEnd":691.2999999523163,"resourceLoadedStart":150.5,"resourceTiming":[{"duration":231.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":150.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":150.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":382.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":231.5,"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":150.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":150.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":382.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":240.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":150.90000009536743,"connectEnd":150.90000009536743,"connectStart":150.90000009536743,"domainLookupEnd":150.90000009536743,"domainLookupStart":150.90000009536743,"fetchStart":150.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":150.90000009536743,"responseEnd":391.2000000476837,"responseStart":391.2000000476837,"secureConnectionStart":150.90000009536743},{"duration":263.90000009536743,"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":151,"connectEnd":151,"connectStart":151,"domainLookupEnd":151,"domainLookupStart":151,"fetchStart":151,"redirectEnd":0,"redirectStart":0,"requestStart":151,"responseEnd":414.90000009536743,"responseStart":414.90000009536743,"secureConnectionStart":151},{"duration":267.10000014305115,"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":151.09999990463257,"connectEnd":151.09999990463257,"connectStart":151.09999990463257,"domainLookupEnd":151.09999990463257,"domainLookupStart":151.09999990463257,"fetchStart":151.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":151.09999990463257,"responseEnd":418.2000000476837,"responseStart":418.2000000476837,"secureConnectionStart":151.09999990463257},{"duration":267.5,"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":151.20000004768372,"connectEnd":151.20000004768372,"connectStart":151.20000004768372,"domainLookupEnd":151.20000004768372,"domainLookupStart":151.20000004768372,"fetchStart":151.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":151.20000004768372,"responseEnd":418.7000000476837,"responseStart":418.7000000476837,"secureConnectionStart":151.20000004768372},{"duration":267.90000009536743,"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":151.29999995231628,"connectEnd":151.29999995231628,"connectStart":151.29999995231628,"domainLookupEnd":151.29999995231628,"domainLookupStart":151.29999995231628,"fetchStart":151.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":151.29999995231628,"responseEnd":419.2000000476837,"responseStart":419.2000000476837,"secureConnectionStart":151.29999995231628},{"duration":268.19999980926514,"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":151.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":151.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":419.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":268.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":151.5,"connectEnd":151.5,"connectStart":151.5,"domainLookupEnd":151.5,"domainLookupStart":151.5,"fetchStart":151.5,"redirectEnd":0,"redirectStart":0,"requestStart":151.5,"responseEnd":419.59999990463257,"responseStart":419.59999990463257,"secureConnectionStart":151.5},{"duration":269.09999990463257,"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":151.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":151.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":420.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":268.40000009536743,"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":151.79999995231628,"connectEnd":151.79999995231628,"connectStart":151.79999995231628,"domainLookupEnd":151.79999995231628,"domainLookupStart":151.79999995231628,"fetchStart":151.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":151.79999995231628,"responseEnd":420.2000000476837,"responseStart":420.2000000476837,"secureConnectionStart":151.79999995231628},{"duration":538.3000001907349,"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":152.59999990463257,"connectEnd":152.59999990463257,"connectStart":152.59999990463257,"domainLookupEnd":152.59999990463257,"domainLookupStart":152.59999990463257,"fetchStart":152.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":152.59999990463257,"responseEnd":690.9000000953674,"responseStart":690.9000000953674,"secureConnectionStart":152.59999990463257},{"duration":538.5999999046326,"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":152.70000004768372,"connectEnd":152.70000004768372,"connectStart":152.70000004768372,"domainLookupEnd":152.70000004768372,"domainLookupStart":152.70000004768372,"fetchStart":152.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":152.70000004768372,"responseEnd":691.2999999523163,"responseStart":691.2999999523163,"secureConnectionStart":152.70000004768372}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":3,"responseStart":145,"responseEnd":148,"domLoading":148,"domInteractive":957,"domContentLoadedEventStart":957,"domContentLoadedEventEnd":1000,"domComplete":1726,"loadEventStart":1726,"loadEventEnd":1728,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":936.9000000953674},{"name":"bigPipe.sidebar-id.end","time":937.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":937.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":940.4000000953674},{"name":"activityTabFullyLoaded","time":1007.2999999523163}],"measures":[],"correlationId":"b15d609dc2f59a","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":81,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}