Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5 , 10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL) , 10.10(EOL)
repeatable with MyIsam/Aria, not with InnoDB
create table t1 (id int , dt date )engine=myisam;
insert into t1 values (19, '2008-05-21' );
create table t2 (id int , dt date )engine=myisam;
insert into t2 values (45, '2006-01-12' ),(45, '2034-12-19' );
create algorithm=temptable view v2 as select * from t2;
update (t1 join (t1 as a1 join v2 on v2.id = a1.id) on (v2.dt <5 and v2.dt=a1.dt)) set t1.id =1;
drop view v2;
drop table t1,t2;
10.2 2d6719d7ee92843d5b0b9a
#3 <signal handler called>
#4 0x00007f5108dc7428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#5 0x00007f5108dc902a in __GI_abort () at abort.c:89
#6 0x00007f5108dbfbd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x555722064810 "fixed == 1", file=file@entry=0x555722064bd8 "/10.2/sql/item_cmpfunc.cc", line=line@entry=5076, function=function@entry=0x555722066de0 <Item_cond_and::val_int()::__PRETTY_FUNCTION__> "virtual longlong Item_cond_and::val_int()") at assert.c:92
#7 0x00007f5108dbfc82 in __GI___assert_fail (assertion=0x555722064810 "fixed == 1", file=0x555722064bd8 "/10.2/sql/item_cmpfunc.cc", line=5076, function=0x555722066de0 <Item_cond_and::val_int()::__PRETTY_FUNCTION__> "virtual longlong Item_cond_and::val_int()") at assert.c:101
#8 0x00005557217c50ed in Item_cond_and::val_int (this=0x7f50b8042440) at /10.2/sql/item_cmpfunc.cc:5076
#9 0x00005557215529d2 in make_join_select (join=0x7f50b8038378, select=0x7f50b8041940, cond=0x7f50b8039520) at /10.2/sql/sql_select.cc:9948
#10 0x000055572153ae95 in JOIN::optimize_inner (this=0x7f50b8038378) at /10.2/sql/sql_select.cc:1779
#11 0x00005557215385f1 in JOIN::optimize (this=0x7f50b8038378) at /10.2/sql/sql_select.cc:1113
#12 0x0000555721541ab6 in mysql_select (thd=0x7f50b8000b00, tables=0x7f50b8012c68, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=1342177408, result=0x7f50b80382b0, unit=0x7f50b8004700, select_lex=0x7f50b8004e40) at /10.2/sql/sql_select.cc:3804
#13 0x00005557215eb139 in mysql_multi_update (thd=0x7f50b8000b00, table_list=0x7f50b8012c68, fields=0x7f50b8004f68, values=0x7f50b8005440, conds=0x0, options=0, handle_duplicates=DUP_ERROR, ignore=false, unit=0x7f50b8004700, select_lex=0x7f50b8004e40, result=0x7f51004397a0) at /10.2/sql/sql_update.cc:1635
#14 0x00005557214f908c in mysql_execute_command (thd=0x7f50b8000b00) at /10.2/sql/sql_parse.cc:4082
#15 0x0000555721504bc9 in mysql_parse (thd=0x7f50b8000b00, rawbuf=0x7f50b8012468 "update (t1 join (t1 as a1 join v2 on v2.id = a1.id) on (v2.dt <5 and v2.dt=a1.dt)) set t1.id =1", length=95, parser_state=0x7f510043a080, is_com_multi=false, is_next_command=false) at /10.2/sql/sql_parse.cc:7759
#16 0x00005557214f2e8c in dispatch_command (command=COM_QUERY, thd=0x7f50b8000b00, packet=0x7f50b8096131 "update (t1 join (t1 as a1 join v2 on v2.id = a1.id) on (v2.dt <5 and v2.dt=a1.dt)) set t1.id =1", packet_length=95, is_com_multi=false, is_next_command=false) at /10.2/sql/sql_parse.cc:1831
#17 0x00005557214f17a0 in do_command (thd=0x7f50b8000b00) at /10.2/sql/sql_parse.cc:1385
#18 0x00005557216479ad in do_handle_one_connection (connect=0x5557259f6fd0) at /10.2/sql/sql_connect.cc:1336
#19 0x0000555721647718 in handle_one_connection (arg=0x5557259f6fd0) at /10.2/sql/sql_connect.cc:1241
#20 0x0000555721e74036 in pfs_spawn_thread (arg=0x555725a01dc0) at /10.2/storage/perfschema/pfs.cc:1862
#21 0x00007f5109a046ba in start_thread (arg=0x7f510043b700) at pthread_create.c:333
#22 0x00007f5108e9941d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
relates to
MDEV-18945
Assertion `fixed == 1' failed in Item_cond_and::val_int
Closed
{"report":{"fcp":846.0999999046326,"ttfb":142.29999995231628,"pageVisibility":"visible","entityId":79305,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"c7b1a26c-f100-4787-a3a4-07d8952937fe","navigationType":0,"readyForUser":921,"redirectCount":0,"resourceLoadedEnd":1127.0999999046326,"resourceLoadedStart":147.89999985694885,"resourceTiming":[{"duration":253,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":147.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":147.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":400.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":252.90000009536743,"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":148.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":148.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":401,"responseStart":0,"secureConnectionStart":0},{"duration":262.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":148.19999980926514,"connectEnd":148.19999980926514,"connectStart":148.19999980926514,"domainLookupEnd":148.19999980926514,"domainLookupStart":148.19999980926514,"fetchStart":148.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":148.19999980926514,"responseEnd":410.2999999523163,"responseStart":410.19999980926514,"secureConnectionStart":148.19999980926514},{"duration":292.09999990463257,"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":148.29999995231628,"connectEnd":148.29999995231628,"connectStart":148.29999995231628,"domainLookupEnd":148.29999995231628,"domainLookupStart":148.29999995231628,"fetchStart":148.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":148.29999995231628,"responseEnd":440.39999985694885,"responseStart":440.39999985694885,"secureConnectionStart":148.29999995231628},{"duration":295.7000000476837,"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":148.39999985694885,"connectEnd":148.39999985694885,"connectStart":148.39999985694885,"domainLookupEnd":148.39999985694885,"domainLookupStart":148.39999985694885,"fetchStart":148.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":148.39999985694885,"responseEnd":444.09999990463257,"responseStart":444.09999990463257,"secureConnectionStart":148.39999985694885},{"duration":296,"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":148.5,"connectEnd":148.5,"connectStart":148.5,"domainLookupEnd":148.5,"domainLookupStart":148.5,"fetchStart":148.5,"redirectEnd":0,"redirectStart":0,"requestStart":148.5,"responseEnd":444.5,"responseStart":444.5,"secureConnectionStart":148.5},{"duration":296.39999985694885,"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":148.5,"connectEnd":148.5,"connectStart":148.5,"domainLookupEnd":148.5,"domainLookupStart":148.5,"fetchStart":148.5,"redirectEnd":0,"redirectStart":0,"requestStart":148.5,"responseEnd":444.89999985694885,"responseStart":444.89999985694885,"secureConnectionStart":148.5},{"duration":296.7000000476837,"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":148.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":148.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":445.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":296.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":148.79999995231628,"connectEnd":148.79999995231628,"connectStart":148.79999995231628,"domainLookupEnd":148.79999995231628,"domainLookupStart":148.79999995231628,"fetchStart":148.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":148.79999995231628,"responseEnd":445.2999999523163,"responseStart":445.2999999523163,"secureConnectionStart":148.79999995231628},{"duration":296.7999999523163,"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":148.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":148.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":445.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":296.89999985694885,"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":149,"connectEnd":149,"connectStart":149,"domainLookupEnd":149,"domainLookupStart":149,"fetchStart":149,"redirectEnd":0,"redirectStart":0,"requestStart":149,"responseEnd":445.89999985694885,"responseStart":445.89999985694885,"secureConnectionStart":149},{"duration":976.7999999523163,"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":149.79999995231628,"connectEnd":149.79999995231628,"connectStart":149.79999995231628,"domainLookupEnd":149.79999995231628,"domainLookupStart":149.79999995231628,"fetchStart":149.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":149.79999995231628,"responseEnd":1126.5999999046326,"responseStart":1126.5999999046326,"secureConnectionStart":149.79999995231628},{"duration":977.2999999523163,"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":149.79999995231628,"connectEnd":149.79999995231628,"connectStart":149.79999995231628,"domainLookupEnd":149.79999995231628,"domainLookupStart":149.79999995231628,"fetchStart":149.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":149.79999995231628,"responseEnd":1127.0999999046326,"responseStart":1127.0999999046326,"secureConnectionStart":149.79999995231628},{"duration":450.10000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":643.6999998092651,"connectEnd":643.6999998092651,"connectStart":643.6999998092651,"domainLookupEnd":643.6999998092651,"domainLookupStart":643.6999998092651,"fetchStart":643.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":643.6999998092651,"responseEnd":1093.7999999523163,"responseStart":1093.7999999523163,"secureConnectionStart":643.6999998092651},{"duration":304,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":823.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":823.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1127.8999998569489,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":19,"responseStart":143,"responseEnd":145,"domLoading":146,"domInteractive":1148,"domContentLoadedEventStart":1148,"domContentLoadedEventEnd":1183,"domComplete":2052,"loadEventStart":2052,"loadEventEnd":2054,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1132.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1133.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1133.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1135.6999998092651},{"name":"activityTabFullyLoaded","time":1188.6999998092651}],"measures":[],"correlationId":"148dbae65abf43","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":67,"dbReadsTimeInMs":11,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}