-
Bug
-
-
Major
-
Resolution:
Duplicate
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL)
-
-
-
SELECT NULLIF( 'foo', FROM_UNIXTIME( '2012-12-12 12:12:12', TRIM( 0 ) ) );
|
10.1 431da59f
|
==23977==ERROR: AddressSanitizer: heap-use-after-free on address 0x60d000032920 at pc 0x55619e1d755c bp 0x7fa61270d6a0 sp 0x7fa61270d698
|
READ of size 1 at 0x60d000032920 thread T6
|
#0 0x55619e1d755b in make_date_time /data/src/10.1/sql/item_timefunc.cc:475
|
#1 0x55619e1d755b in Item_func_date_format::val_str(String*) /data/src/10.1/sql/item_timefunc.cc:1986
|
#2 0x55619e04d7b6 in Arg_comparator::compare_string() /data/src/10.1/sql/item_cmpfunc.cc:850
|
#3 0x55619e0564e2 in Arg_comparator::compare() /data/src/10.1/sql/item_cmpfunc.h:87
|
#4 0x55619e0564e2 in Item_func_nullif::compare() /data/src/10.1/sql/item_cmpfunc.cc:2904
|
#5 0x55619e0568a4 in Item_func_nullif::str_op(String*) /data/src/10.1/sql/item_cmpfunc.cc:2952
|
#6 0x55619e0de517 in Item_func_hybrid_field_type::str_op_with_null_check(String*) /data/src/10.1/sql/item_func.h:453
|
#7 0x55619e0de517 in Item_func_hybrid_field_type::val_str(String*) /data/src/10.1/sql/item_func.cc:878
|
#8 0x55619dfd1228 in Item::send(Protocol*, String*) /data/src/10.1/sql/item.cc:6392
|
#9 0x55619d8deb14 in Protocol::send_result_set_row(List<Item>*) /data/src/10.1/sql/protocol.cc:914
|
#10 0x55619d9e8ac9 in select_send::send_data(List<Item>&) /data/src/10.1/sql/sql_class.cc:2748
|
#11 0x55619db974b9 in JOIN::exec_inner() /data/src/10.1/sql/sql_select.cc:2641
|
#12 0x55619dba080c in JOIN::exec() /data/src/10.1/sql/sql_select.cc:2562
|
#13 0x55619db9505f in mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /data/src/10.1/sql/sql_select.cc:3499
|
#14 0x55619db9584d in handle_select(THD*, LEX*, select_result*, unsigned long) /data/src/10.1/sql/sql_select.cc:388
|
#15 0x55619da64a2f in execute_sqlcom_select /data/src/10.1/sql/sql_parse.cc:5950
|
#16 0x55619da7ec3f in mysql_execute_command(THD*) /data/src/10.1/sql/sql_parse.cc:2995
|
#17 0x55619da96e50 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /data/src/10.1/sql/sql_parse.cc:7468
|
#18 0x55619da9dc34 in dispatch_command(enum_server_command, THD*, char*, unsigned int) /data/src/10.1/sql/sql_parse.cc:1496
|
#19 0x55619daa43c0 in do_command(THD*) /data/src/10.1/sql/sql_parse.cc:1124
|
#20 0x55619dd4c895 in do_handle_one_connection(THD*) /data/src/10.1/sql/sql_connect.cc:1330
|
#21 0x55619dd4cda6 in handle_one_connection /data/src/10.1/sql/sql_connect.cc:1242
|
#22 0x55619e61bca2 in pfs_spawn_thread /data/src/10.1/storage/perfschema/pfs.cc:1861
|
#23 0x7fa61ee6b493 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7493)
|
#24 0x7fa61d22493e in __clone (/lib/x86_64-linux-gnu/libc.so.6+0xe893e)
|
|
0x60d000032920 is located 112 bytes inside of 140-byte region [0x60d0000328b0,0x60d00003293c)
|
freed by thread T6 here:
|
#0 0x7fa61f0d5527 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x54527)
|
#1 0x55619ede7b2d in free_memory /data/src/10.1/mysys/safemalloc.c:276
|
|
previously allocated by thread T6 here:
|
#0 0x7fa61f0d573f in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x5473f)
|
#1 0x55619ede7bfe in sf_malloc /data/src/10.1/mysys/safemalloc.c:115
|
#2 0x55619eee065a (/data/bld/10.1-asan/bin/mysqld+0x1d9e65a)
|
|
Thread T6 created by T0 here:
|
#0 0x7fa61f0a4bba in pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x23bba)
|
#1 0x55619e6274f9 in spawn_thread_v1 /data/src/10.1/storage/perfschema/pfs.cc:1911
|
|
SUMMARY: AddressSanitizer: heap-use-after-free /data/src/10.1/sql/item_timefunc.cc:475 make_date_time
|
Shadow bytes around the buggy address:
|
0x0c1a7fffe4d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c1a7fffe4e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c1a7fffe4f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c1a7fffe500: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c1a7fffe510: fa fa fa fa fa fa fd fd fd fd fd fd fd fd fd fd
|
=>0x0c1a7fffe520: fd fd fd fd[fd]fd fd fd fa fa fa fa fa fa fa fa
|
0x0c1a7fffe530: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c1a7fffe540: fd fd fa fa fa fa fa fa fa fa fd fd fd fd fd fd
|
0x0c1a7fffe550: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa
|
0x0c1a7fffe560: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd
|
0x0c1a7fffe570: fd fd fd fd fd fd fa fa fa fa fa fa fa fa fd fd
|
Shadow byte legend (one shadow byte represents 8 application bytes):
|
Addressable: 00
|
Partially addressable: 01 02 03 04 05 06 07
|
Heap left redzone: fa
|
Heap right redzone: fb
|
Freed heap region: fd
|
Stack left redzone: f1
|
Stack mid redzone: f2
|
Stack right redzone: f3
|
Stack partial redzone: f4
|
Stack after return: f5
|
Stack use after scope: f8
|
Global redzone: f9
|
Global init order: f6
|
Poisoned by user: f7
|
Contiguous container OOB:fc
|
ASan internal: fe
|
==23977==ABORTING
|
Transition |
Time In Source Status |
Execution Times |
Open |
|
Closed |
|
21d 10h 41m
|
1
|
{"report":{"fcp":973.5,"ttfb":274.5,"pageVisibility":"visible","entityId":72733,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"b542d5a0-833e-46d2-90aa-31f79a5d11ff","navigationType":0,"readyForUser":1107.6000003814697,"redirectCount":0,"resourceLoadedEnd":1343,"resourceLoadedStart":301.4000005722046,"resourceTiming":[{"duration":177.39999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":301.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":301.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":478.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":177.39999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":301.70000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":301.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":479.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":188.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":301.9000005722046,"connectEnd":301.9000005722046,"connectStart":301.9000005722046,"domainLookupEnd":301.9000005722046,"domainLookupStart":301.9000005722046,"fetchStart":301.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":301.9000005722046,"responseEnd":490.4000005722046,"responseStart":490.4000005722046,"secureConnectionStart":301.9000005722046},{"duration":221.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":302.1000003814697,"connectEnd":302.1000003814697,"connectStart":302.1000003814697,"domainLookupEnd":302.1000003814697,"domainLookupStart":302.1000003814697,"fetchStart":302.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":302.1000003814697,"responseEnd":523.6000003814697,"responseStart":523.6000003814697,"secureConnectionStart":302.1000003814697},{"duration":226.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":302.30000019073486,"connectEnd":302.30000019073486,"connectStart":302.30000019073486,"domainLookupEnd":302.30000019073486,"domainLookupStart":302.30000019073486,"fetchStart":302.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":302.30000019073486,"responseEnd":528.8000001907349,"responseStart":528.8000001907349,"secureConnectionStart":302.30000019073486},{"duration":226.80000019073486,"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":302.6000003814697,"connectEnd":302.6000003814697,"connectStart":302.6000003814697,"domainLookupEnd":302.6000003814697,"domainLookupStart":302.6000003814697,"fetchStart":302.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":302.6000003814697,"responseEnd":529.4000005722046,"responseStart":529.4000005722046,"secureConnectionStart":302.6000003814697},{"duration":229.30000019073486,"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":302.80000019073486,"connectEnd":302.80000019073486,"connectStart":302.80000019073486,"domainLookupEnd":302.80000019073486,"domainLookupStart":302.80000019073486,"fetchStart":302.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":302.80000019073486,"responseEnd":532.1000003814697,"responseStart":532.1000003814697,"secureConnectionStart":302.80000019073486},{"duration":376.3999996185303,"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":302.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":302.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":679.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":230,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":303.1000003814697,"connectEnd":303.1000003814697,"connectStart":303.1000003814697,"domainLookupEnd":303.1000003814697,"domainLookupStart":303.1000003814697,"fetchStart":303.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":303.1000003814697,"responseEnd":533.1000003814697,"responseStart":533.1000003814697,"secureConnectionStart":303.1000003814697},{"duration":376.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":303.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":303.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":679.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":230.39999961853027,"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":303.4000005722046,"connectEnd":303.4000005722046,"connectStart":303.4000005722046,"domainLookupEnd":303.4000005722046,"domainLookupStart":303.4000005722046,"fetchStart":303.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":303.4000005722046,"responseEnd":533.8000001907349,"responseStart":533.8000001907349,"secureConnectionStart":303.4000005722046},{"duration":611.6000003814697,"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":304.6000003814697,"connectEnd":304.6000003814697,"connectStart":304.6000003814697,"domainLookupEnd":304.6000003814697,"domainLookupStart":304.6000003814697,"fetchStart":304.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":304.6000003814697,"responseEnd":916.2000007629395,"responseStart":916.2000007629395,"secureConnectionStart":304.6000003814697},{"duration":1038.2999992370605,"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":304.70000076293945,"connectEnd":304.70000076293945,"connectStart":304.70000076293945,"domainLookupEnd":304.70000076293945,"domainLookupStart":304.70000076293945,"fetchStart":304.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":304.70000076293945,"responseEnd":1343,"responseStart":1343,"secureConnectionStart":304.70000076293945},{"duration":559.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":748.8000001907349,"connectEnd":748.8000001907349,"connectStart":748.8000001907349,"domainLookupEnd":748.8000001907349,"domainLookupStart":748.8000001907349,"fetchStart":748.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":748.8000001907349,"responseEnd":1308.3000001907349,"responseStart":1308.3000001907349,"secureConnectionStart":748.8000001907349},{"duration":397.80000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":965.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":965.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1363.7000007629395,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":103,"responseStart":275,"responseEnd":285,"domLoading":299,"domInteractive":1382,"domContentLoadedEventStart":1382,"domContentLoadedEventEnd":1426,"domComplete":2201,"loadEventStart":2201,"loadEventEnd":2202,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1368.1000003814697},{"name":"bigPipe.sidebar-id.end","time":1369},{"name":"bigPipe.activity-panel-pipe-id.start","time":1369.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1370},{"name":"activityTabFullyLoaded","time":1438.7000007629395}],"measures":[],"correlationId":"fc7136b8c7c47c","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":19,"dbConnsTimeInMs":27,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}