Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
5.1.67 , 5.2.14 , 5.5.35 , 10.0.8 , 5.5(EOL) , 10.0(EOL) , 10.1(EOL) , 10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5
--source include/have_partition.inc
CREATE TABLE t1 (a INT ) PARTITION BY HASH(a) PARTITIONS 2;
CREATE TABLE t2 (b INT );
INSERT INTO t2 VALUES (1),(2);
UPDATE t1 SET a = 7 WHERE a = ( SELECT b FROM t2 ) ORDER BY a LIMIT 6;
On some reason, it does not fail on 5.3, but fails on 5.1, 5.2, 5.5 and 10.0 (and on all current branches of MySQL).
Stack trace from 5.5:
mysqld: 5.5/sql/sql_error.cc:362: void Diagnostics_area::set_ok_status(THD*, ulonglong, ulonglong, const char*): Assertion `! is_set()' failed.
140207 23:42:49 [ERROR] mysqld got signal 6 ;
#6 0x00007f84cb4bb621 in *__GI___assert_fail (assertion=0xd68c86 "! is_set()", file=<optimized out>, line=362, function=0xd69740 "void Diagnostics_area::set_ok_status(THD*, ulonglong, ulonglong, const char*)") at assert.c:81
#7 0x000000000060c8b5 in Diagnostics_area::set_ok_status (this=0x7f84c7ff26a0, thd=0x7f84c7fee060, affected_rows_arg=0, last_insert_id_arg=0, message_arg=0x0) at 5.5/sql/sql_error.cc:362
#8 0x00000000005c9d70 in my_ok (thd=0x7f84c7fee060, affected_rows=0, id=0, message=0x0) at 5.5/sql/sql_class.h:3168
#9 0x00000000006e1ce7 in mysql_update (thd=0x7f84c7fee060, table_list=0x7f84c615d1b0, fields=..., values=..., conds=0x7f84c615ed48, order_num=1, order=0x7f84c615efc0, limit=6, handle_duplicates=DUP_ERROR, ignore=false, found_return=0x7f84c6bb5298, updated_return=0x7f84c6bb5290) at 5.5/sql/sql_update.cc:401
#10 0x0000000000630ea1 in mysql_execute_command (thd=0x7f84c7fee060) at 5.5/sql/sql_parse.cc:2847
#11 0x0000000000638cf6 in mysql_parse (thd=0x7f84c7fee060, rawbuf=0x7f84c615d078 "UPDATE t1 SET a = 7 WHERE a = ( SELECT b FROM t2 ) ORDER BY a LIMIT 6", length=69, parser_state=0x7f84c6bb5630) at 5.5/sql/sql_parse.cc:5799
#12 0x000000000062cd17 in dispatch_command (command=COM_QUERY, thd=0x7f84c7fee060, packet=0x7f84c72ff061 "UPDATE t1 SET a = 7 WHERE a = ( SELECT b FROM t2 ) ORDER BY a LIMIT 6", packet_length=69) at 5.5/sql/sql_parse.cc:1078
#13 0x000000000062beba in do_command (thd=0x7f84c7fee060) at 5.5/sql/sql_parse.cc:793
#14 0x000000000072d982 in do_handle_one_connection (thd_arg=0x7f84c7fee060) at 5.5/sql/sql_connect.cc:1266
#15 0x000000000072d441 in handle_one_connection (arg=0x7f84c7fee060) at 5.5/sql/sql_connect.cc:1181
#16 0x000000000098592d in pfs_spawn_thread (arg=0x7f84c7ff59e0) at 5.5/storage/perfschema/pfs.cc:1015
#17 0x00007f84cca1bb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#18 0x00007f84cb56aa7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
revision-id: elenst@wheezy-64.home-20140205102537-7ern5gfca6a6ojg3
revno: 4055
branch-nick: 5.5
{"report":{"fcp":1060.5,"ttfb":393.5,"pageVisibility":"visible","entityId":30416,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"b754cccc-eb16-4e2a-a5f0-df041f074262","navigationType":0,"readyForUser":1160.8000001907349,"redirectCount":0,"resourceLoadedEnd":1174.4000005722046,"resourceLoadedStart":402.6000003814697,"resourceTiming":[{"duration":25.699999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":402.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":402.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":428.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":25.600000381469727,"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":403,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":403,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":428.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":78.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":403.20000076293945,"connectEnd":403.20000076293945,"connectStart":403.20000076293945,"domainLookupEnd":403.20000076293945,"domainLookupStart":403.20000076293945,"fetchStart":403.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":403.20000076293945,"responseEnd":481.70000076293945,"responseStart":481.70000076293945,"secureConnectionStart":403.20000076293945},{"duration":150.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":404.4000005722046,"connectEnd":404.4000005722046,"connectStart":404.4000005722046,"domainLookupEnd":404.4000005722046,"domainLookupStart":404.4000005722046,"fetchStart":404.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":404.4000005722046,"responseEnd":554.9000005722046,"responseStart":554.9000005722046,"secureConnectionStart":404.4000005722046},{"duration":155.89999961853027,"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":404.6000003814697,"connectEnd":404.6000003814697,"connectStart":404.6000003814697,"domainLookupEnd":404.6000003814697,"domainLookupStart":404.6000003814697,"fetchStart":404.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":404.6000003814697,"responseEnd":560.5,"responseStart":560.5,"secureConnectionStart":404.6000003814697},{"duration":156.4000005722046,"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":404.80000019073486,"connectEnd":404.80000019073486,"connectStart":404.80000019073486,"domainLookupEnd":404.80000019073486,"domainLookupStart":404.80000019073486,"fetchStart":404.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":404.80000019073486,"responseEnd":561.2000007629395,"responseStart":561.2000007629395,"secureConnectionStart":404.80000019073486},{"duration":156.70000076293945,"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":405,"connectEnd":405,"connectStart":405,"domainLookupEnd":405,"domainLookupStart":405,"fetchStart":405,"redirectEnd":0,"redirectStart":0,"requestStart":405,"responseEnd":561.7000007629395,"responseStart":561.7000007629395,"secureConnectionStart":405},{"duration":246.10000038146973,"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":405.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":405.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":651.2000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":156.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":405.30000019073486,"connectEnd":405.30000019073486,"connectStart":405.30000019073486,"domainLookupEnd":405.30000019073486,"domainLookupStart":405.30000019073486,"fetchStart":405.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":405.30000019073486,"responseEnd":562.1000003814697,"responseStart":562.1000003814697,"secureConnectionStart":405.30000019073486},{"duration":245.80000019073486,"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":405.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":405.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":651.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":157,"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":405.70000076293945,"connectEnd":405.70000076293945,"connectStart":405.70000076293945,"domainLookupEnd":405.70000076293945,"domainLookupStart":405.70000076293945,"fetchStart":405.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":405.70000076293945,"responseEnd":562.7000007629395,"responseStart":562.7000007629395,"secureConnectionStart":405.70000076293945},{"duration":254.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":407.20000076293945,"connectEnd":407.20000076293945,"connectStart":407.20000076293945,"domainLookupEnd":407.20000076293945,"domainLookupStart":407.20000076293945,"fetchStart":407.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":407.20000076293945,"responseEnd":661.7000007629395,"responseStart":661.7000007629395,"secureConnectionStart":407.20000076293945},{"duration":270.5,"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":407.30000019073486,"connectEnd":407.30000019073486,"connectStart":407.30000019073486,"domainLookupEnd":407.30000019073486,"domainLookupStart":407.30000019073486,"fetchStart":407.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":407.30000019073486,"responseEnd":677.8000001907349,"responseStart":677.8000001907349,"secureConnectionStart":407.30000019073486},{"duration":21.699999809265137,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":730.6000003814697,"connectEnd":730.6000003814697,"connectStart":730.6000003814697,"domainLookupEnd":730.6000003814697,"domainLookupStart":730.6000003814697,"fetchStart":730.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":730.6000003814697,"responseEnd":752.3000001907349,"responseStart":752.3000001907349,"secureConnectionStart":730.6000003814697},{"duration":418,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&slack-enabled=true&whisper-enabled=true","startTime":756.4000005722046,"connectEnd":756.4000005722046,"connectStart":756.4000005722046,"domainLookupEnd":756.4000005722046,"domainLookupStart":756.4000005722046,"fetchStart":756.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":756.4000005722046,"responseEnd":1174.4000005722046,"responseStart":1174.4000005722046,"secureConnectionStart":756.4000005722046},{"duration":203,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1049.2000007629395,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1049.2000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1252.2000007629395,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":219,"responseStart":393,"responseEnd":401,"domLoading":397,"domInteractive":1280,"domContentLoadedEventStart":1280,"domContentLoadedEventEnd":1336,"domComplete":1777,"loadEventStart":1777,"loadEventEnd":1777,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1254.2000007629395},{"name":"bigPipe.sidebar-id.end","time":1254.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.start","time":1255.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1257.7000007629395},{"name":"activityTabFullyLoaded","time":1344.2000007629395}],"measures":[],"correlationId":"cfc55062d3e37b","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":109,"dbReadsTimeInMs":17,"dbConnsTimeInMs":27,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}