./mtr --do-test=ctype --mysqld=--innodb_prefix_index_cluster_optimization=ON
|
...
|
2017-03-14 14:48:08 700001c51000 InnoDB: Assertion failure in thread 123145332002816 in file row0sel.cc line 2717
|
InnoDB: Failing assertion: len * templ->mbmaxlen >= templ->mysql_col_len || (field_no == templ->icp_rec_field_no && field->prefix_len > 0)
|
...
|
Failing test(s): main.ctype_utf8 main.ctype_utf8mb4 main.ctype_utf8mb4_innodb
|
This is a parallel bug to https://github.com/facebook/mysql-5.6/issues/568, but appears to be less serious, as Facebook patch silently returns wrong query results too, whereas MariaDB only crashes the debug build. I don't know if these testcases return correct results in the release build.
{"report":{"fcp":1630,"ttfb":316.2000002861023,"pageVisibility":"visible","entityId":60560,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"b2a34384-908d-48d3-afc3-b280e6255ddd","navigationType":0,"readyForUser":1727.6000003814697,"redirectCount":0,"resourceLoadedEnd":1166.4000000953674,"resourceLoadedStart":325.2000002861023,"resourceTiming":[{"duration":200.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":325.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":325.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":525.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":201.5,"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":325.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":325.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":527.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":512.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":326.1000003814697,"connectEnd":529.1000003814697,"connectStart":529.1000003814697,"domainLookupEnd":529.1000003814697,"domainLookupStart":529.1000003814697,"fetchStart":326.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":529.7000002861023,"responseEnd":838.4000000953674,"responseStart":542.4000000953674,"secureConnectionStart":529.1000003814697},{"duration":839.4000000953674,"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":327,"connectEnd":327,"connectStart":327,"domainLookupEnd":327,"domainLookupStart":327,"fetchStart":327,"redirectEnd":0,"redirectStart":0,"requestStart":531.6000003814697,"responseEnd":1166.4000000953674,"responseStart":547,"secureConnectionStart":327},{"duration":237.40000009536743,"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":327.2000002861023,"connectEnd":327.2000002861023,"connectStart":327.2000002861023,"domainLookupEnd":327.2000002861023,"domainLookupStart":327.2000002861023,"fetchStart":327.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":545.1000003814697,"responseEnd":564.6000003814697,"responseStart":562,"secureConnectionStart":327.2000002861023},{"duration":237.40000009536743,"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":327.40000009536743,"connectEnd":327.40000009536743,"connectStart":327.40000009536743,"domainLookupEnd":327.40000009536743,"domainLookupStart":327.40000009536743,"fetchStart":327.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":545.5,"responseEnd":564.8000001907349,"responseStart":563.6000003814697,"secureConnectionStart":327.40000009536743},{"duration":254.09999990463257,"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":327.6000003814697,"connectEnd":327.6000003814697,"connectStart":327.6000003814697,"domainLookupEnd":327.6000003814697,"domainLookupStart":327.6000003814697,"fetchStart":327.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":560.2000002861023,"responseEnd":581.7000002861023,"responseStart":580,"secureConnectionStart":327.6000003814697},{"duration":221,"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":327.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":327.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":548.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":327.90000009536743,"connectEnd":327.90000009536743,"connectStart":327.90000009536743,"domainLookupEnd":327.90000009536743,"domainLookupStart":327.90000009536743,"fetchStart":327.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":561.7000002861023,"responseEnd":584.9000000953674,"responseStart":581,"secureConnectionStart":327.90000009536743},{"duration":231.59999990463257,"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":328.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":328.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":559.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":258.90000009536743,"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":328.30000019073486,"connectEnd":328.30000019073486,"connectStart":328.30000019073486,"domainLookupEnd":328.30000019073486,"domainLookupStart":328.30000019073486,"fetchStart":328.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":561.9000000953674,"responseEnd":587.2000002861023,"responseStart":585.3000001907349,"secureConnectionStart":328.30000019073486},{"duration":827.5999999046326,"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":330.40000009536743,"connectEnd":330.40000009536743,"connectStart":330.40000009536743,"domainLookupEnd":330.40000009536743,"domainLookupStart":330.40000009536743,"fetchStart":330.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":847.3000001907349,"responseEnd":1158,"responseStart":1148.7000002861023,"secureConnectionStart":330.40000009536743},{"duration":809.6999998092651,"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":349.30000019073486,"connectEnd":349.30000019073486,"connectStart":349.30000019073486,"domainLookupEnd":349.30000019073486,"domainLookupStart":349.30000019073486,"fetchStart":349.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":852.2000002861023,"responseEnd":1159,"responseStart":1149.2000002861023,"secureConnectionStart":349.30000019073486},{"duration":594.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1007.4000000953674,"connectEnd":1007.4000000953674,"connectStart":1007.4000000953674,"domainLookupEnd":1007.4000000953674,"domainLookupStart":1007.4000000953674,"fetchStart":1007.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1565.4000000953674,"responseEnd":1601.9000000953674,"responseStart":1600.9000000953674,"secureConnectionStart":1007.4000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":129,"responseStart":316,"responseEnd":348,"domLoading":320,"domInteractive":1826,"domContentLoadedEventStart":1826,"domContentLoadedEventEnd":1934,"domComplete":3060,"loadEventStart":3060,"loadEventEnd":3060,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1777.2000002861023},{"name":"bigPipe.sidebar-id.end","time":1778},{"name":"bigPipe.activity-panel-pipe-id.start","time":1778.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":1782.8000001907349},{"name":"activityTabFullyLoaded","time":1968}],"measures":[],"correlationId":"e0792a954dca2b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":113,"dbReadsTimeInMs":16,"dbConnsTimeInMs":33,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
10.1 3bb32e8682f849413ce994277e9029ba5732baae
2017-04-17 17:06:00 7f5c22fdbb00 InnoDB: Assertion failure in thread 140033700772608 in file row0sel.cc line 2709
InnoDB: Failing assertion: len * templ->mbmaxlen >= templ->mysql_col_len || (field_no == templ->icp_rec_field_no && field->prefix_len > 0)
InnoDB: We intentionally generate a memory trap.
#5 0x00007f5c1f8d4448 in __GI_abort () at abort.c:89
#6 0x00007f5c19030393 in row_sel_field_store_in_mysql_format_func (dest=0x7f5c0a0a1e89 "a", '\217' <repeats 29 times>, "\245\377", '\245' <repeats 31 times>, "\330\036\n\n\\\177", templ=0x7f5c0a28a378, index=0x7f5c0a1269f8, field_no=0, data=0x7f5c16b2407f "a", len=1) at /data/src/10.1/storage/innobase/row/row0sel.cc:2707
#7 0x00007f5c190309ce in row_sel_store_mysql_field_func (mysql_rec=0x7f5c0a0a1e88 "\377a", '\217' <repeats 29 times>, "\245\377", '\245' <repeats 31 times>, "\330\036\n\n\\\177", prebuilt=0x7f5c0a084678, rec=0x7f5c16b2407f "a", index=0x7f5c0a1269f8, offsets=0x7f5c22fd85c0, field_no=0, templ=0x7f5c0a28a378) at /data/src/10.1/storage/innobase/row/row0sel.cc:2882
#8 0x00007f5c19030b7b in row_sel_store_mysql_rec (mysql_rec=0x7f5c0a0a1e88 "\377a", '\217' <repeats 29 times>, "\245\377", '\245' <repeats 31 times>, "\330\036\n\n\\\177", prebuilt=0x7f5c0a084678, rec=0x7f5c16b2407f "a", rec_clust=0, index=0x7f5c0a1269f8, offsets=0x7f5c22fd85c0) at /data/src/10.1/storage/innobase/row/row0sel.cc:2946
#9 0x00007f5c19034b61 in row_search_for_mysql (buf=0x7f5c0a0a1e88 "\377a", '\217' <repeats 29 times>, "\245\377", '\245' <repeats 31 times>, "\330\036\n\n\\\177", mode=2, prebuilt=0x7f5c0a084678, match_mode=1, direction=0) at /data/src/10.1/storage/innobase/row/row0sel.cc:5012
#10 0x00007f5c18efe7c0 in ha_innodb::index_read (this=0x7f5c0a0b3888, buf=0x7f5c0a0a1e88 "\377a", '\217' <repeats 29 times>, "\245\377", '\245' <repeats 31 times>, "\330\036\n\n\\\177", key_ptr=0x7f5c0a0fc310 "", key_len=4, find_flag=HA_READ_KEY_EXACT) at /data/src/10.1/storage/innobase/handler/ha_innodb.cc:9310
#11 0x00007f5c18f14b44 in handler::index_read_map (this=0x7f5c0a0b3888, buf=0x7f5c0a0a1e88 "\377a", '\217' <repeats 29 times>, "\245\377", '\245' <repeats 31 times>, "\330\036\n\n\\\177", key=0x7f5c0a0fc310 "", keypart_map=1, find_flag=HA_READ_KEY_EXACT) at /data/src/10.1/sql/handler.h:3052
#12 0x00007f5c2231b2b0 in handler::index_read_idx_map (this=0x7f5c0a0b3888, buf=0x7f5c0a0a1e88 "\377a", '\217' <repeats 29 times>, "\245\377", '\245' <repeats 31 times>, "\330\036\n\n\\\177", index=0, key=0x7f5c0a0fc310 "", keypart_map=1, find_flag=HA_READ_KEY_EXACT) at /data/src/10.1/sql/handler.cc:5443
#13 0x00007f5c22314dfb in handler::ha_index_read_idx_map (this=0x7f5c0a0b3888, buf=0x7f5c0a0a1e88 "\377a", '\217' <repeats 29 times>, "\245\377", '\245' <repeats 31 times>, "\330\036\n\n\\\177", index=0, key=0x7f5c0a0fc310 "", keypart_map=1, find_flag=HA_READ_KEY_EXACT) at /data/src/10.1/sql/handler.cc:2646
#14 0x00007f5c22140faa in join_read_const (tab=0x7f5c0a0fb2b8) at /data/src/10.1/sql/sql_select.cc:18893
#15 0x00007f5c22140aa9 in join_read_const_table (thd=0x7f5c163a6070, tab=0x7f5c0a0fb2b8, pos=0x7f5c0a0fb808) at /data/src/10.1/sql/sql_select.cc:18768
#16 0x00007f5c2211c515 in make_join_statistics (join=0x7f5c0a0fac68, tables_list=..., keyuse_array=0x7f5c0a0fafa0) at /data/src/10.1/sql/sql_select.cc:3936
#17 0x00007f5c2211345b in JOIN::optimize_inner (this=0x7f5c0a0fac68) at /data/src/10.1/sql/sql_select.cc:1366
#18 0x00007f5c22112346 in JOIN::optimize (this=0x7f5c0a0fac68) at /data/src/10.1/sql/sql_select.cc:1045
#19 0x00007f5c2211a9aa in mysql_select (thd=0x7f5c163a6070, rref_pointer_array=0x7f5c163aa430, tables=0x7f5c0a0fa298, wild_num=0, fields=..., conds=0x7f5c0a0faa28, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f5c0a0fac48, unit=0x7f5c163a9ab8, select_lex=0x7f5c163aa1b8) at /data/src/10.1/sql/sql_select.cc:3431
#20 0x00007f5c22110496 in handle_select (thd=0x7f5c163a6070, lex=0x7f5c163a99f0, result=0x7f5c0a0fac48, setup_tables_done_option=0) at /data/src/10.1/sql/sql_select.cc:384
#21 0x00007f5c220e03fb in execute_sqlcom_select (thd=0x7f5c163a6070, all_tables=0x7f5c0a0fa298) at /data/src/10.1/sql/sql_parse.cc:5920
#22 0x00007f5c220d68f7 in mysql_execute_command (thd=0x7f5c163a6070) at /data/src/10.1/sql/sql_parse.cc:2979
#23 0x00007f5c220e3b19 in mysql_parse (thd=0x7f5c163a6070, rawbuf=0x7f5c0a0fa088 "select c as c_a from t1 where c='a'", length=35, parser_state=0x7f5c22fda5e0) at /data/src/10.1/sql/sql_parse.cc:7343
#24 0x00007f5c220d2b06 in dispatch_command (command=COM_QUERY, thd=0x7f5c163a6070, packet=0x7f5c1829b071 "select c as c_a from t1 where c='a'", packet_length=35) at /data/src/10.1/sql/sql_parse.cc:1490
#25 0x00007f5c220d1865 in do_command (thd=0x7f5c163a6070) at /data/src/10.1/sql/sql_parse.cc:1109
#26 0x00007f5c222086aa in do_handle_one_connection (thd_arg=0x7f5c163a6070) at /data/src/10.1/sql/sql_connect.cc:1349
#27 0x00007f5c2220840e in handle_one_connection (arg=0x7f5c163a6070) at /data/src/10.1/sql/sql_connect.cc:1261
#28 0x00007f5c225be10c in pfs_spawn_thread (arg=0x7f5c182b8970) at /data/src/10.1/storage/perfschema/pfs.cc:1860
#29 0x00007f5c217ce064 in start_thread (arg=0x7f5c22fdbb00) at pthread_create.c:309
#30 0x00007f5c1f98662d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
On a release build, the tests return wrong results, e.g.
main.ctype_utf8 'innodb_plugin' [ fail ]
Test ended at 2017-04-17 17:02:57
CURRENT_TEST: main.ctype_utf8
--- /data/bld/10.1-rel/mysql-test/r/ctype_utf8.result 2017-03-11 16:20:47.000000000 +0200
+++ /data/bld/10.1-rel/mysql-test/r/ctype_utf8.reject 2017-04-17 17:02:57.068614168 +0300
@@ -448,7 +448,6 @@
aaaaaaaaaa
select c cb20 from t1 where c=repeat('b',20);
cb20
-bbbbbbbbbbbbbbbbbbbb
drop table t1;
create table t1 (c char(3) character set utf8, unique (c(2)));
insert into t1 values ('1'),('2'),('3'),('4'),('x'),('y'),('z');
@@ -774,7 +773,6 @@
INSERT INTO t1 VALUES ('str2');
select * from t1 where str='str';
str
-str
drop table t1;
create table t1 (
str varchar(255) character set utf8 not null,
@@ -804,7 +802,6 @@
INSERT INTO t1 VALUES ('str2');
select * from t1 where str='str';
str
-str
drop table t1;
CREATE TABLE t1 (a varchar(32) BINARY) CHARACTER SET utf8;
INSERT INTO t1 VALUES ('test');
@@ -887,11 +884,9 @@
insert into t1 values(1,'foo'),(2,'foobar');
select * from t1 where b like 'foob%';
a b
-2 foobar
alter table t1 engine=innodb;
select * from t1 where b like 'foob%';
a b
-2 foobar
drop table t1;
create table t1 (
a enum('петя','вася','анюта') character set utf8 not null default 'анюта',
@@ -2067,7 +2062,6 @@
WHERE t1.colA < 3;
colA colB colA colB
1 foo 1 foo
-2 foo bar 2 foo bar
DROP TABLE t1, t2;
SELECT 'н1234567890' UNION SELECT _binary '1';
н1234567890
mysqltest: Result length mismatch
We also have another bug report about wrong results with this option,
MDEV-12486.