Initially reported as https://github.com/Tokutek/mariadb/issues/49
CREATE TABLE t1 ( d DATE , t TIME );
INSERT INTO t1 VALUES ( '2008-12-05' , '22:34:09' ),( '2005-03-27' , '14:26:02' );
SELECT EXTRACT( DAY_MINUTE FROM GREATEST( t, d ) ) FROM t1;
mysqld: time.cc:1074: void time_to_daytime_interval(MYSQL_TIME*): Assertion `ltime->year == 0' failed.
140227 1:18:13 [ERROR] mysqld got signal 6 ;
#6 0x00007ffc22efe621 in *__GI___assert_fail (assertion=0xd627b1 "ltime->year == 0", file=<optimized out>, line=1074, function=0xd62e60 "void time_to_daytime_interval(MYSQL_TIME*)") at assert.c:81
#7 0x00000000007ec869 in time_to_daytime_interval (ltime=0x7ffc1a419ea0) at time.cc:1074
#8 0x000000000061ab25 in Item_extract::val_int (this=0x26f9d08) at item_timefunc.cc:2035
#9 0x00000000005af02e in Item::send (this=0x26f9d08, protocol=0x2675f90, buffer=0x7ffc1a419ff0) at item.cc:6099
#10 0x000000000067dc57 in select_send::send_data (this=0x26fa340, items=...) at sql_class.cc:2013
#11 0x0000000000752329 in end_send (join=0x26fa360, join_tab=0x26fb600, end_of_records=false) at sql_select.cc:17323
#12 0x000000000075023d in evaluate_join_record (join=0x26fa360, join_tab=0x26fb2e0, error=0) at sql_select.cc:16463
#13 0x000000000074fa24 in sub_select (join=0x26fa360, join_tab=0x26fb2e0, end_of_records=false) at sql_select.cc:16265
#14 0x000000000074f125 in do_select (join=0x26fa360, fields=0x2678730, table=0x0, procedure=0x0) at sql_select.cc:15918
#15 0x000000000072e4f5 in JOIN::exec (this=0x26fa360) at sql_select.cc:2786
#16 0x000000000072ed8f in mysql_select (thd=0x2675b88, rref_pointer_array=0x2678878, tables=0x26f9e98, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x26fa340, unit=0x2678118, select_lex=0x2678620) at sql_select.cc:3007
#17 0x00000000007257f5 in handle_select (thd=0x2675b88, lex=0x2678078, result=0x26fa340, setup_tables_done_option=0) at sql_select.cc:288
#18 0x00000000006b452c in execute_sqlcom_select (thd=0x2675b88, all_tables=0x26f9e98) at sql_parse.cc:5172
#19 0x00000000006ab6c8 in mysql_execute_command (thd=0x2675b88) at sql_parse.cc:2305
#20 0x00000000006b6e93 in mysql_parse (thd=0x2675b88, rawbuf=0x26f98c0 "SELECT EXTRACT( DAY_MINUTE FROM GREATEST( t, d ) ) FROM t1", length=58, found_semicolon=0x7ffc1a41bcb8) at sql_parse.cc:6173
#21 0x00000000006a8ea8 in dispatch_command (command=COM_QUERY, thd=0x2675b88, packet=0x26f0459 "", packet_length=59) at sql_parse.cc:1243
#22 0x00000000006a8194 in do_command (thd=0x2675b88) at sql_parse.cc:923
#23 0x00000000006a5025 in handle_one_connection (arg=0x2675b88) at sql_connect.cc:1231
#24 0x00007ffc23c0ab50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#25 0x00007ffc22fada7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
Stack trace from:
revision-id: igor@askmonty.org-20140221052733-ypg4dpfcmy5l0b3q
revno: 3765
branch-nick: 5.3
relates to
MDEV-6592
Assertion `ltime->day == 0' failed with TIMESTAMP, MAKETIME
Closed
links to
Elena Stepanova
made changes -
2014-02-26 23:31
Field
Original Value
New Value
Remote Link
This issue links to "#49 RQG test temporal_functions.yy crashes on sql_time.cc:1114 at time_to_daytime_interval ... (Web Link)"
[ 15201
]
Sergei Golubchik
made changes -
2014-03-04 16:17
Priority
Major
[ 3
]
Minor
[ 4
]
Sergei Golubchik
made changes -
2014-03-09 22:02
Fix Version/s
10.0.10
[ 14500
]
Fix Version/s
10.0.9
[ 14400
]
Sergei Golubchik
made changes -
2014-03-31 14:23
Fix Version/s
10.0.11
[ 15200
]
Fix Version/s
10.0.10
[ 14500
]
Sergei Golubchik
made changes -
2014-04-15 23:52
Fix Version/s
5.5.38
[ 15400
]
Fix Version/s
5.5.37
[ 15000
]
Alexander Barkov
made changes -
2014-04-24 09:40
Priority
Minor
[ 4
]
Major
[ 3
]
Sergei Golubchik
made changes -
2014-05-10 23:12
Fix Version/s
10.0.12
[ 15201
]
Fix Version/s
10.0.11
[ 15200
]
Sergei Golubchik
made changes -
2014-06-06 10:26
Fix Version/s
5.5.39
[ 15800
]
Fix Version/s
5.5.38
[ 15400
]
Sergei Golubchik
made changes -
2014-06-13 15:06
Workflow
defaullt
[ 35202
]
MariaDB v2
[ 44501
]
Sergei Golubchik
made changes -
2014-06-16 13:27
Fix Version/s
10.0.13
[ 16000
]
Fix Version/s
10.0.12
[ 15201
]
Alexander Barkov
made changes -
2014-07-23 14:16
Resolution
Fixed
[ 1
]
Status
Open
[ 1
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2014-07-24 10:05
Fix Version/s
10.0.13
[ 16300
]
Fix Version/s
5.5
[ 15800
]
Fix Version/s
10.0
[ 16000
]
Sergei Golubchik
made changes -
2021-12-06 21:39
Workflow
MariaDB v3
[ 62615
]
MariaDB v4
[ 147559
]
{"report":{"fcp":1855.3999998569489,"ttfb":793.0999999046326,"pageVisibility":"visible","entityId":31402,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"98709130-b024-4e63-84db-587dd4797e01","navigationType":0,"readyForUser":1937.6999998092651,"redirectCount":0,"resourceLoadedEnd":2549.199999809265,"resourceLoadedStart":798.8999998569489,"resourceTiming":[{"duration":536.7999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":798.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":798.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1335.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":537,"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":799.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":799.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1336.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":592.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":799.3999998569489,"connectEnd":799.3999998569489,"connectStart":799.3999998569489,"domainLookupEnd":799.3999998569489,"domainLookupStart":799.3999998569489,"fetchStart":799.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":799.3999998569489,"responseEnd":1392.2999999523163,"responseStart":1392.2999999523163,"secureConnectionStart":799.3999998569489},{"duration":650.9000000953674,"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":799.5999999046326,"connectEnd":799.5999999046326,"connectStart":799.5999999046326,"domainLookupEnd":799.5999999046326,"domainLookupStart":799.5999999046326,"fetchStart":799.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":799.5999999046326,"responseEnd":1450.5,"responseStart":1450.5,"secureConnectionStart":799.5999999046326},{"duration":654.9000000953674,"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":799.6999998092651,"connectEnd":799.6999998092651,"connectStart":799.6999998092651,"domainLookupEnd":799.6999998092651,"domainLookupStart":799.6999998092651,"fetchStart":799.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":799.6999998092651,"responseEnd":1454.5999999046326,"responseStart":1454.5999999046326,"secureConnectionStart":799.6999998092651},{"duration":655,"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":800.0999999046326,"connectEnd":800.0999999046326,"connectStart":800.0999999046326,"domainLookupEnd":800.0999999046326,"domainLookupStart":800.0999999046326,"fetchStart":800.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":800.0999999046326,"responseEnd":1455.0999999046326,"responseStart":1455.0999999046326,"secureConnectionStart":800.0999999046326},{"duration":655.2000000476837,"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":800.2999999523163,"connectEnd":800.2999999523163,"connectStart":800.2999999523163,"domainLookupEnd":800.2999999523163,"domainLookupStart":800.2999999523163,"fetchStart":800.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":800.2999999523163,"responseEnd":1455.5,"responseStart":1455.5,"secureConnectionStart":800.2999999523163},{"duration":736.0999999046326,"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":800.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":800.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1536.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":655.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":800.6999998092651,"connectEnd":800.6999998092651,"connectStart":800.6999998092651,"domainLookupEnd":800.6999998092651,"domainLookupStart":800.6999998092651,"fetchStart":800.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":800.6999998092651,"responseEnd":1456.0999999046326,"responseStart":1456.0999999046326,"secureConnectionStart":800.6999998092651},{"duration":735.6999998092651,"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":801,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":801,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1536.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":655.4000000953674,"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":801.1999998092651,"connectEnd":801.1999998092651,"connectStart":801.1999998092651,"domainLookupEnd":801.1999998092651,"domainLookupStart":801.1999998092651,"fetchStart":801.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":801.1999998092651,"responseEnd":1456.5999999046326,"responseStart":1456.5999999046326,"secureConnectionStart":801.1999998092651},{"duration":1446,"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":808,"connectEnd":808,"connectStart":808,"domainLookupEnd":808,"domainLookupStart":808,"fetchStart":808,"redirectEnd":0,"redirectStart":0,"requestStart":808,"responseEnd":2254,"responseStart":2254,"secureConnectionStart":808},{"duration":1741.1999998092651,"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":808,"connectEnd":808,"connectStart":808,"domainLookupEnd":808,"domainLookupStart":808,"fetchStart":808,"redirectEnd":0,"redirectStart":0,"requestStart":808,"responseEnd":2549.199999809265,"responseStart":2549.199999809265,"secureConnectionStart":808},{"duration":721.0999999046326,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1548.5,"connectEnd":1548.5,"connectStart":1548.5,"domainLookupEnd":1548.5,"domainLookupStart":1548.5,"fetchStart":1548.5,"redirectEnd":0,"redirectStart":0,"requestStart":1548.5,"responseEnd":2269.5999999046326,"responseStart":2269.5999999046326,"secureConnectionStart":1548.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":558,"responseStart":793,"responseEnd":805,"domLoading":797,"domInteractive":2610,"domContentLoadedEventStart":2610,"domContentLoadedEventEnd":2662,"domComplete":3569,"loadEventStart":3569,"loadEventEnd":3570,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2551},{"name":"bigPipe.sidebar-id.end","time":2551.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":2552},{"name":"bigPipe.activity-panel-pipe-id.end","time":2556.7999999523163},{"name":"activityTabFullyLoaded","time":2682.0999999046326}],"measures":[],"correlationId":"aaa4532a945668","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":171,"dbReadsTimeInMs":42,"dbConnsTimeInMs":54,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The problem appeared on the 5.3 tree with the following revision:
revno: 3729
revision-id: bar@mnogosearch.org-20131202110934-nrq1aq7mc8g97v4h
message:
MDEV-4857 Wrong result of HOUR('1 00:00:00')