this RQG command causes the assert to fire:
./runall.pl --grammar=conf/temporal/temporal_functions.yy --duration=300 --queries=10000000 --threads=1 --basedir=/home/prohaska/mariadb-5.5.34-install/ --vardir=/home/prohaska/vardir_mariadb5534_temporal_functions_innodb_2 --mysqld=--default-storage-engine=innodb --mysqld=--general_log
|
{"report":{"fcp":1081,"ttfb":317.09999990463257,"pageVisibility":"visible","entityId":28406,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f7b05a7b-2535-4f75-bdad-54f41d3542d7","navigationType":0,"readyForUser":1163.8000001907349,"redirectCount":0,"resourceLoadedEnd":1207.5,"resourceLoadedStart":345.09999990463257,"resourceTiming":[{"duration":165.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":345.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":345.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":510.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":165.2999997138977,"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":345.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":345.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":510.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":174.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":345.59999990463257,"connectEnd":345.59999990463257,"connectStart":345.59999990463257,"domainLookupEnd":345.59999990463257,"domainLookupStart":345.59999990463257,"fetchStart":345.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":345.59999990463257,"responseEnd":520.4000000953674,"responseStart":520.4000000953674,"secureConnectionStart":345.59999990463257},{"duration":298.90000009536743,"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":345.69999980926514,"connectEnd":345.69999980926514,"connectStart":345.69999980926514,"domainLookupEnd":345.69999980926514,"domainLookupStart":345.69999980926514,"fetchStart":345.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":345.69999980926514,"responseEnd":644.5999999046326,"responseStart":644.5999999046326,"secureConnectionStart":345.69999980926514},{"duration":302.5,"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":346,"connectEnd":346,"connectStart":346,"domainLookupEnd":346,"domainLookupStart":346,"fetchStart":346,"redirectEnd":0,"redirectStart":0,"requestStart":346,"responseEnd":648.5,"responseStart":648.5,"secureConnectionStart":346},{"duration":303.2000002861023,"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":346.09999990463257,"connectEnd":346.09999990463257,"connectStart":346.09999990463257,"domainLookupEnd":346.09999990463257,"domainLookupStart":346.09999990463257,"fetchStart":346.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":346.09999990463257,"responseEnd":649.3000001907349,"responseStart":649.3000001907349,"secureConnectionStart":346.09999990463257},{"duration":304.2000002861023,"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":346.19999980926514,"connectEnd":346.19999980926514,"connectStart":346.19999980926514,"domainLookupEnd":346.19999980926514,"domainLookupStart":346.19999980926514,"fetchStart":346.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":346.19999980926514,"responseEnd":650.4000000953674,"responseStart":650.4000000953674,"secureConnectionStart":346.19999980926514},{"duration":326.59999990463257,"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":346.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":346.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":673.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":308,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":346.59999990463257,"connectEnd":346.59999990463257,"connectStart":346.59999990463257,"domainLookupEnd":346.59999990463257,"domainLookupStart":346.59999990463257,"fetchStart":346.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":346.59999990463257,"responseEnd":654.5999999046326,"responseStart":654.5999999046326,"secureConnectionStart":346.59999990463257},{"duration":326.5,"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":346.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":346.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":673.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":308.59999990463257,"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":346.90000009536743,"connectEnd":346.90000009536743,"connectStart":346.90000009536743,"domainLookupEnd":346.90000009536743,"domainLookupStart":346.90000009536743,"fetchStart":346.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":346.90000009536743,"responseEnd":655.5,"responseStart":655.5,"secureConnectionStart":346.90000009536743},{"duration":490.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":347.69999980926514,"connectEnd":347.69999980926514,"connectStart":347.69999980926514,"domainLookupEnd":347.69999980926514,"domainLookupStart":347.69999980926514,"fetchStart":347.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":347.69999980926514,"responseEnd":838.1999998092651,"responseStart":838.1999998092651,"secureConnectionStart":347.69999980926514},{"duration":707.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":347.80000019073486,"connectEnd":347.80000019073486,"connectStart":347.80000019073486,"domainLookupEnd":347.80000019073486,"domainLookupStart":347.80000019073486,"fetchStart":347.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":347.80000019073486,"responseEnd":1055.3000001907349,"responseStart":1055.3000001907349,"secureConnectionStart":347.80000019073486},{"duration":153.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":685.5999999046326,"connectEnd":685.5999999046326,"connectStart":685.5999999046326,"domainLookupEnd":685.5999999046326,"domainLookupStart":685.5999999046326,"fetchStart":685.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":685.5999999046326,"responseEnd":838.6999998092651,"responseStart":838.6999998092651,"secureConnectionStart":685.5999999046326},{"duration":107.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":966,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":966,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1073.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":240.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":967.1999998092651,"connectEnd":967.1999998092651,"connectStart":967.1999998092651,"domainLookupEnd":967.1999998092651,"domainLookupStart":967.1999998092651,"fetchStart":967.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":967.1999998092651,"responseEnd":1207.5,"responseStart":1207.5,"secureConnectionStart":967.1999998092651},{"duration":257.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":967.5999999046326,"connectEnd":967.5999999046326,"connectStart":967.5999999046326,"domainLookupEnd":967.5999999046326,"domainLookupStart":967.5999999046326,"fetchStart":967.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":967.5999999046326,"responseEnd":1225.1999998092651,"responseStart":1225.1999998092651,"secureConnectionStart":967.5999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":162,"responseStart":317,"responseEnd":324,"domLoading":343,"domInteractive":1225,"domContentLoadedEventStart":1225,"domContentLoadedEventEnd":1281,"domComplete":2029,"loadEventStart":2029,"loadEventEnd":2030,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1197.6999998092651},{"name":"bigPipe.sidebar-id.end","time":1198.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1198.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1200.5},{"name":"activityTabFullyLoaded","time":1298.1999998092651}],"measures":[],"correlationId":"c49f1d4508fb99","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The problem appeared in 5.3 tree with the following revision:
------------------------------------------------------------
revno: 3674
revision-id: bar@mariadb.org-20130812124759-8cy7ot1s3ysgned2
parent: sanja@montyprogram.com-20130801084611-udozq8c9kxgy94bq
committer: Alexander Barkov <bar@mariadb.org>
branch nick: 5.3.b4652
timestamp: Mon 2013-08-12 16:47:59 +0400
message:
MDEV-4652Wrong result for CONCAT(GREATEST(TIME('00:00:01'),TIME('00:00:00'))###########################
CREATE TABLE t1 (t TIME);
INSERT INTO t1 VALUES ('03:22:30'),('18:30:05');
SELECT CONVERT_TZ( GREATEST( t, CURRENT_DATE() ), 'Europe/Moscow', 'Japan' ) FROM t1;
################################
mysqld: tztime.cc:792: my_time_t sec_since_epoch(int, int, int, int, int, int): Assertion `mon > 0 && mon < 13' failed.
131221 3:17:21 [ERROR] mysqld got signal 6 ;
#6 0x00007f5df8abd621 in *_GI__assert_fail (assertion=0xd99279 "mon > 0 && mon < 13", file=<optimized out>, line=792, function=0xd9a4e0 "my_time_t sec_since_epoch(int, int, int, int, int, int)") at assert.c:81
#7 0x00000000008c8f20 in sec_since_epoch (year=2013, mon=0, mday=0, hour=9720, min=0, sec=0) at tztime.cc:792
#8 0x00000000008c91a5 in TIME_to_gmt_sec (t=0x7f5deffd8f20, sp=0x34174f8, error_code=0x7f5deffd8ec4) at tztime.cc:935
#9 0x00000000008c9575 in Time_zone_db::TIME_to_gmt_sec (this=0x3418d48, t=0x7f5deffd8f20, error_code=0x7f5deffd8ec4) at tztime.cc:1254
#10 0x000000000061a866 in Item_func_convert_tz::get_date (this=0x346fff0, ltime=0x7f5deffd8f20, fuzzy_date=0) at item_timefunc.cc:1842
#11 0x00000000005af8b3 in Item::send (this=0x346fff0, protocol=0x33ebfd0, buffer=0x7f5deffd8ff0) at item.cc:6113
#12 0x000000000067e53b in select_send::send_data (this=0x3470698, items=...) at sql_class.cc:2012
#13 0x0000000000752c01 in end_send (join=0x34706b8, join_tab=0x349c0a0, end_of_records=false) at sql_select.cc:17329
#14 0x0000000000750b15 in evaluate_join_record (join=0x34706b8, join_tab=0x349bd80, error=0) at sql_select.cc:16469
#15 0x00000000007502fc in sub_select (join=0x34706b8, join_tab=0x349bd80, end_of_records=false) at sql_select.cc:16271
#16 0x000000000074f9fd in do_select (join=0x34706b8, fields=0x33ee770, table=0x0, procedure=0x0) at sql_select.cc:15924
#17 0x000000000072ee0b in JOIN::exec (this=0x34706b8) at sql_select.cc:2788
#18 0x000000000072f6a5 in mysql_select (thd=0x33ebbc8, rref_pointer_array=0x33ee8b8, tables=0x34701f0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x3470698, unit=0x33ee158, select_lex=0x33ee660) at sql_select.cc:3009
#19 0x0000000000726105 in handle_select (thd=0x33ebbc8, lex=0x33ee0b8, result=0x3470698, setup_tables_done_option=0) at sql_select.cc:288
#20 0x00000000006b4dec in execute_sqlcom_select (thd=0x33ebbc8, all_tables=0x34701f0) at sql_parse.cc:5172
#21 0x00000000006abf88 in mysql_execute_command (thd=0x33ebbc8) at sql_parse.cc:2305
#22 0x00000000006b7753 in mysql_parse (thd=0x33ebbc8, rawbuf=0x346f900 "SELECT CONVERT_TZ( GREATEST( t, CURRENT_DATE() ), 'Europe/Moscow', 'Japan' ) FROM t1", length=84, found_semicolon=0x7f5deffdacb8) at sql_parse.cc:6173
#23 0x00000000006a9768 in dispatch_command (command=COM_QUERY, thd=0x33ebbc8, packet=0x3466499 "", packet_length=84) at sql_parse.cc:1243
#24 0x00000000006a8a54 in do_command (thd=0x33ebbc8) at sql_parse.cc:923
#25 0x00000000006a58dd in handle_one_connection (arg=0x33ebbc8) at sql_connect.cc:1231
#26 0x00007f5df97c9b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#27 0x00007f5df8b6ca7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112