CREATE TABLE t1 (a INT);
|
INSERT INTO t1 VALUES (1),(2);
|
|
SELECT VAR_POP('foo') FROM t1 GROUP BY VALUES(a), ExtractValue('bar','qux') ORDER BY VERSION();
|
If the server is built as usual, with Aria temporary tables, the test case above causes an assertion failure:
mysqld: ma_blockrec.c:2772: write_block_record: Assertion `length <= column->length' failed.
|
131217 21:21:02 [ERROR] mysqld got signal 6 ;
|
#6 0x00007fc352d06621 in *__GI___assert_fail (assertion=0xdd9212 "length <= column->length", file=<optimized out>, line=2772, function=0xdda7a0 "write_block_record") at assert.c:81
|
#7 0x0000000000a599f1 in write_block_record (info=0x20513b8, old_record=0x0, record=0x2049b50 "\376", row=0x2051410, bitmap_blocks=0x2051410, head_block_is_read=0 '\000', row_pos=0x7fc34a222140, undo_lsn=1, old_record_checksum=0) at ma_blockrec.c:2772
|
#8 0x0000000000a5ba8d in allocate_and_write_block_record (info=0x20513b8, record=0x2049b50 "\376", row=0x2051410, undo_lsn=1) at ma_blockrec.c:3534
|
#9 0x0000000000a5bba1 in _ma_write_init_block_record (info=0x20513b8, record=0x2049b50 "\376") at ma_blockrec.c:3574
|
#10 0x0000000000a45731 in maria_write (info=0x20513b8, record=0x2049b50 "\376") at ma_write.c:157
|
#11 0x00000000009a82e7 in ha_maria::write_row (this=0x2049450, buf=0x2049b50 "\376") at ha_maria.cc:1171
|
#12 0x00000000005d0a6d in handler::ha_write_tmp_row (this=0x2049450, buf=0x2049b50 "\376") at sql_class.h:3823
|
#13 0x0000000000753d2e in end_update (join=0x201a798, join_tab=0x20464c8, end_of_records=false) at sql_select.cc:17641
|
#14 0x0000000000750add in evaluate_join_record (join=0x201a798, join_tab=0x20461a8, error=0) at sql_select.cc:16469
|
#15 0x00000000007502c4 in sub_select (join=0x201a798, join_tab=0x20461a8, end_of_records=false) at sql_select.cc:16271
|
#16 0x000000000074f9c5 in do_select (join=0x201a798, fields=0x0, table=0x2047d90, procedure=0x0) at sql_select.cc:15924
|
#17 0x000000000072d122 in JOIN::exec (this=0x201a798) at sql_select.cc:2335
|
#18 0x000000000072f66d in mysql_select (thd=0x1f95bc8, rref_pointer_array=0x1f988b8, tables=0x2019ca0, wild_num=0, fields=..., conds=0x0, og_num=3, order=0x201a6a0, group=0x201a2c0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x201a778, unit=0x1f98158, select_lex=0x1f98660) at sql_select.cc:3009
|
#19 0x00000000007260cd in handle_select (thd=0x1f95bc8, lex=0x1f980b8, result=0x201a778, setup_tables_done_option=0) at sql_select.cc:288
|
#20 0x00000000006b4db4 in execute_sqlcom_select (thd=0x1f95bc8, all_tables=0x2019ca0) at sql_parse.cc:5172
|
#21 0x00000000006abf50 in mysql_execute_command (thd=0x1f95bc8) at sql_parse.cc:2305
|
#22 0x00000000006b771b in mysql_parse (thd=0x1f95bc8, rawbuf=0x2019900 "SELECT VAR_POP('foo') FROM t1 GROUP BY VALUES(a), ExtractValue('bar','qux') ORDER BY VERSION()", length=94, found_semicolon=0x7fc34a223cb8) at sql_parse.cc:6173
|
#23 0x00000000006a9730 in dispatch_command (command=COM_QUERY, thd=0x1f95bc8, packet=0x2010499 "SELECT VAR_POP('foo') FROM t1 GROUP BY VALUES(a), ExtractValue('bar','qux') ORDER BY VERSION()", packet_length=94) at sql_parse.cc:1243
|
#24 0x00000000006a8a1c in do_command (thd=0x1f95bc8) at sql_parse.cc:923
|
#25 0x00000000006a58a5 in handle_one_connection (arg=0x1f95bc8) at sql_connect.cc:1231
|
#26 0x00007fc353a12b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
|
#27 0x00007fc352db5a7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
Stack trace from
revision-id: igor@askmonty.org-20131212215533-9n040xfc9onhho5o
|
revno: 3736
|
branch-nick: 5.3
|
If the server is built without Aria temporary tables, there is no assertion failure, but the result is still strange:
query 'SELECT VAR_POP('foo') FROM t1 GROUP BY VALUES(a), ExtractValue('bar','qux') ORDER BY VERSION()' failed: 1062: Duplicate entry 'NULL' for key 'group_key'
|
{"report":{"fcp":1660.1000001430511,"ttfb":214,"pageVisibility":"visible","entityId":28410,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"855abf55-58f8-4ca5-b070-55a8b2fe62aa","navigationType":0,"readyForUser":1728.8000001907349,"redirectCount":0,"resourceLoadedEnd":1209.6000001430511,"resourceLoadedStart":229.70000004768372,"resourceTiming":[{"duration":61.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":229.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":291.5,"responseStart":0,"secureConnectionStart":0},{"duration":114,"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":230.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":230.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":344.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":686.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":230.30000019073486,"connectEnd":230.30000019073486,"connectStart":230.30000019073486,"domainLookupEnd":230.30000019073486,"domainLookupStart":230.30000019073486,"fetchStart":230.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":398.7000000476837,"responseEnd":916.9000000953674,"responseStart":479.2000000476837,"secureConnectionStart":230.30000019073486},{"duration":978.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":231.10000014305115,"connectEnd":231.10000014305115,"connectStart":231.10000014305115,"domainLookupEnd":231.10000014305115,"domainLookupStart":231.10000014305115,"fetchStart":231.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":398.80000019073486,"responseEnd":1209.6000001430511,"responseStart":438.5,"secureConnectionStart":231.10000014305115},{"duration":283.69999980926514,"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":231.30000019073486,"connectEnd":231.30000019073486,"connectStart":231.30000019073486,"domainLookupEnd":231.30000019073486,"domainLookupStart":231.30000019073486,"fetchStart":231.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":399,"responseEnd":515,"responseStart":495.80000019073486,"secureConnectionStart":231.30000019073486},{"duration":221.20000004768372,"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":233.70000004768372,"connectEnd":233.70000004768372,"connectStart":233.70000004768372,"domainLookupEnd":233.70000004768372,"domainLookupStart":233.70000004768372,"fetchStart":233.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":399.10000014305115,"responseEnd":454.90000009536743,"responseStart":441.40000009536743,"secureConnectionStart":233.70000004768372},{"duration":261.2999999523163,"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":234.10000014305115,"connectEnd":234.10000014305115,"connectStart":234.10000014305115,"domainLookupEnd":234.10000014305115,"domainLookupStart":234.10000014305115,"fetchStart":234.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":399.2000000476837,"responseEnd":495.40000009536743,"responseStart":481.7000000476837,"secureConnectionStart":234.10000014305115},{"duration":121.69999980926514,"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":234.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":234.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":356,"responseStart":0,"secureConnectionStart":0},{"duration":279.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":234.5,"connectEnd":234.5,"connectStart":234.5,"domainLookupEnd":234.5,"domainLookupStart":234.5,"fetchStart":234.5,"redirectEnd":0,"redirectStart":0,"requestStart":399.2000000476837,"responseEnd":513.8000001907349,"responseStart":485.5,"secureConnectionStart":234.5},{"duration":118.30000019073486,"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":239,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":239,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":357.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":276.7000000476837,"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":239.20000004768372,"connectEnd":239.20000004768372,"connectStart":239.20000004768372,"domainLookupEnd":239.20000004768372,"domainLookupStart":239.20000004768372,"fetchStart":239.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":399.40000009536743,"responseEnd":515.9000000953674,"responseStart":499.40000009536743,"secureConnectionStart":239.20000004768372},{"duration":934.5,"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":245.70000004768372,"connectEnd":245.70000004768372,"connectStart":245.70000004768372,"domainLookupEnd":245.70000004768372,"domainLookupStart":245.70000004768372,"fetchStart":245.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":495,"responseEnd":1180.2000000476837,"responseStart":1171.4000000953674,"secureConnectionStart":245.70000004768372},{"duration":949.7999999523163,"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":245.80000019073486,"connectEnd":245.80000019073486,"connectStart":245.80000019073486,"domainLookupEnd":245.80000019073486,"domainLookupStart":245.80000019073486,"fetchStart":245.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":521,"responseEnd":1195.6000001430511,"responseStart":1179.2000000476837,"secureConnectionStart":245.80000019073486},{"duration":185.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1090.9000000953674,"connectEnd":1090.9000000953674,"connectStart":1090.9000000953674,"domainLookupEnd":1090.9000000953674,"domainLookupStart":1090.9000000953674,"fetchStart":1090.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1242.3000001907349,"responseEnd":1276.6000001430511,"responseStart":1275.2000000476837,"secureConnectionStart":1090.9000000953674},{"duration":153.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1557.9000000953674,"connectEnd":1557.9000000953674,"connectStart":1557.9000000953674,"domainLookupEnd":1557.9000000953674,"domainLookupStart":1557.9000000953674,"fetchStart":1557.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1680.2000000476837,"responseEnd":1711.4000000953674,"responseStart":1710.9000000953674,"secureConnectionStart":1557.9000000953674},{"duration":184,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1645.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1645.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1829.2000000476837,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":39,"responseStart":215,"responseEnd":245,"domLoading":222,"domInteractive":1838,"domContentLoadedEventStart":1838,"domContentLoadedEventEnd":1886,"domComplete":2131,"loadEventStart":2131,"loadEventEnd":2131,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1816},{"name":"bigPipe.sidebar-id.end","time":1817},{"name":"bigPipe.activity-panel-pipe-id.start","time":1817.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1818.1000001430511},{"name":"activityTabFullyLoaded","time":1911}],"measures":[],"correlationId":"1d34b26dedaa69","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":95,"dbReadsTimeInMs":10,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/4043