-
Bug
-
-
Major
-
Resolution:
Unresolved
-
10.5, 10.6, 10.11, 11.4, 11.7(EOL)
-
-
-
--source include/have_binlog_format_row.inc
|
|
SET @temporal56= @@mysql56_temporal_format;
|
SET GLOBAL mysql56_temporal_format= OFF;
|
|
CREATE TABLE t (a MEDIUMTEXT, b INT NOT NULL, c TIME(3), d BIGINT NOT NULL, e VARCHAR(256) NOT NULL, f DECIMAL NOT NULL);
|
INSERT INTO t VALUES (REPEAT('a',500),1,'00:00:00',0,'',0);
|
|
FLUSH BINARY LOGS;
|
--let $datadir= `select @@datadir`
|
--exec $MYSQL_BINLOG $datadir/master-bin.000001 > $MYSQL_TMP_DIR/binlog.out
|
|
# Cleanup
|
DROP TABLE t;
|
SET GLOBAL mysql56_temporal_format= @temporal56;
|
--remove_file $MYSQL_TMP_DIR/binlog.out
|
10.5 7f55c610608d45a0958f502a8b428c6d37f86692
|
==1391753==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6160000017a8 at pc 0x556623727491 bp 0x7ffc85ac4850 sp 0x7ffc85ac4848
|
READ of size 1 at 0x6160000017a8 thread T0
|
#0 0x556623727490 in table_def::calc_field_size(unsigned int, unsigned char*) const /data/bld/main-asan/sql/rpl_utility.cc:155
|
#1 0x556623714e5c in Rows_log_event::calc_row_event_length(table_def*, st_bitmap*, unsigned char const*, Rows_log_event::Field_info*) /data/bld/main-asan/sql/log_event_client.cc:1420
|
#2 0x5566237151e0 in Rows_log_event::count_row_events(st_print_event_info*) /data/bld/main-asan/sql/log_event_client.cc:1488
|
#3 0x556623716985 in Log_event::print_base64(st_io_cache*, st_print_event_info*, bool) /data/bld/main-asan/sql/log_event_client.cc:1852
|
#4 0x55662371e757 in Rows_log_event::print_helper(_IO_FILE*, st_print_event_info*, char const*) /data/bld/main-asan/sql/log_event_client.cc:2946
|
#5 0x556623723db3 in Write_rows_log_event::print(_IO_FILE*, st_print_event_info*) /data/bld/main-asan/sql/log_event_client.cc:3575
|
#6 0x5566236cbb7d in print_base64 /data/bld/main-asan/client/mysqlbinlog.cc:703
|
#7 0x5566236cbe91 in print_row_event /data/bld/main-asan/client/mysqlbinlog.cc:791
|
#8 0x5566236cda1d in process_event(st_print_event_info*, Log_event*, unsigned long long, char const*) /data/bld/main-asan/client/mysqlbinlog.cc:1336
|
#9 0x5566236d4630 in dump_local_log_entries /data/bld/main-asan/client/mysqlbinlog.cc:3207
|
#10 0x5566236d0e37 in dump_log_entries /data/bld/main-asan/client/mysqlbinlog.cc:2428
|
#11 0x5566236d4f48 in main /data/bld/main-asan/client/mysqlbinlog.cc:3378
|
#12 0x7fc6a50461c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
|
#13 0x7fc6a5046284 in __libc_start_main_impl ../csu/libc-start.c:360
|
#14 0x5566236c93a0 in _start (/mnt8t/bld/main-asan/client/mariadb-binlog+0xd33a0)
|
|
0x6160000017a8 is located 0 bytes to the right of 552-byte region [0x616000001580,0x6160000017a8)
|
allocated by thread T0 here:
|
#0 0x7fc6a5cb89cf in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
|
#1 0x556623850202 in my_malloc /data/bld/main-asan/mysys/my_malloc.c:93
|
#2 0x556623708dec in Rows_log_event::Rows_log_event(unsigned char const*, unsigned int, Format_description_log_event const*) /data/bld/main-asan/sql/log_event.cc:3212
|
#3 0x55662370d53f in Write_rows_log_event::Write_rows_log_event(unsigned char const*, unsigned int, Format_description_log_event const*) /data/bld/main-asan/sql/log_event.cc:3780
|
#4 0x5566237167a5 in Log_event::print_base64(st_io_cache*, st_print_event_info*, bool) /data/bld/main-asan/sql/log_event_client.cc:1775
|
#5 0x55662371e757 in Rows_log_event::print_helper(_IO_FILE*, st_print_event_info*, char const*) /data/bld/main-asan/sql/log_event_client.cc:2946
|
#6 0x556623723db3 in Write_rows_log_event::print(_IO_FILE*, st_print_event_info*) /data/bld/main-asan/sql/log_event_client.cc:3575
|
#7 0x5566236cbb7d in print_base64 /data/bld/main-asan/client/mysqlbinlog.cc:703
|
#8 0x5566236cbe91 in print_row_event /data/bld/main-asan/client/mysqlbinlog.cc:791
|
#9 0x5566236cda1d in process_event(st_print_event_info*, Log_event*, unsigned long long, char const*) /data/bld/main-asan/client/mysqlbinlog.cc:1336
|
#10 0x5566236d4630 in dump_local_log_entries /data/bld/main-asan/client/mysqlbinlog.cc:3207
|
#11 0x5566236d0e37 in dump_log_entries /data/bld/main-asan/client/mysqlbinlog.cc:2428
|
#12 0x5566236d4f48 in main /data/bld/main-asan/client/mysqlbinlog.cc:3378
|
#13 0x7fc6a50461c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
|
|
SUMMARY: AddressSanitizer: heap-buffer-overflow /data/bld/main-asan/sql/rpl_utility.cc:155 in table_def::calc_field_size(unsigned int, unsigned char*) const
|
Shadow bytes around the buggy address:
|
0x0c2c7fff82a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c2c7fff82b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0c2c7fff82c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0c2c7fff82d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
0x0c2c7fff82e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
=>0x0c2c7fff82f0: 00 00 00 00 00[fa]fa fa fa fa fa fa fa fa fa fa
|
0x0c2c7fff8300: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c2c7fff8310: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c2c7fff8320: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c2c7fff8330: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
0x0c2c7fff8340: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
|
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
|
Freed heap region: fd
|
Stack left redzone: f1
|
Stack mid redzone: f2
|
Stack right redzone: f3
|
Stack after return: f5
|
Stack use after scope: f8
|
Global redzone: f9
|
Global init order: f6
|
Poisoned by user: f7
|
Container overflow: fc
|
Array cookie: ac
|
Intra object redzone: bb
|
ASan internal: fe
|
Left alloca redzone: ca
|
Right alloca redzone: cb
|
==1391753==ABORTING
|
There are no comments yet on this issue.
{"report":{"fcp":1389.1000003814697,"ttfb":627.8000001907349,"pageVisibility":"visible","entityId":129100,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"26b67e40-581e-43f9-9ede-fa6e80aa8b37","navigationType":0,"readyForUser":1485.3000001907349,"redirectCount":0,"resourceLoadedEnd":1305.9000000953674,"resourceLoadedStart":633.4000000953674,"resourceTiming":[{"duration":245.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":633.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":633.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":879.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":245.89999961853027,"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":633.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":633.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":879.5,"responseStart":0,"secureConnectionStart":0},{"duration":254.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":633.8000001907349,"connectEnd":633.8000001907349,"connectStart":633.8000001907349,"domainLookupEnd":633.8000001907349,"domainLookupStart":633.8000001907349,"fetchStart":633.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":633.8000001907349,"responseEnd":888.5,"responseStart":888.5,"secureConnectionStart":633.8000001907349},{"duration":307.7000002861023,"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":634,"connectEnd":634,"connectStart":634,"domainLookupEnd":634,"domainLookupStart":634,"fetchStart":634,"redirectEnd":0,"redirectStart":0,"requestStart":634,"responseEnd":941.7000002861023,"responseStart":941.7000002861023,"secureConnectionStart":634},{"duration":311.59999990463257,"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":634.2000002861023,"connectEnd":634.2000002861023,"connectStart":634.2000002861023,"domainLookupEnd":634.2000002861023,"domainLookupStart":634.2000002861023,"fetchStart":634.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":634.2000002861023,"responseEnd":945.8000001907349,"responseStart":945.8000001907349,"secureConnectionStart":634.2000002861023},{"duration":311.90000009536743,"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":634.3000001907349,"connectEnd":634.3000001907349,"connectStart":634.3000001907349,"domainLookupEnd":634.3000001907349,"domainLookupStart":634.3000001907349,"fetchStart":634.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":634.3000001907349,"responseEnd":946.2000002861023,"responseStart":946.2000002861023,"secureConnectionStart":634.3000001907349},{"duration":312,"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":634.6000003814697,"connectEnd":634.6000003814697,"connectStart":634.6000003814697,"domainLookupEnd":634.6000003814697,"domainLookupStart":634.6000003814697,"fetchStart":634.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":634.6000003814697,"responseEnd":946.6000003814697,"responseStart":946.6000003814697,"secureConnectionStart":634.6000003814697},{"duration":396.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":634.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":634.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1031.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":312.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":634.9000000953674,"connectEnd":634.9000000953674,"connectStart":634.9000000953674,"domainLookupEnd":634.9000000953674,"domainLookupStart":634.9000000953674,"fetchStart":634.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":634.9000000953674,"responseEnd":947.1000003814697,"responseStart":947.1000003814697,"secureConnectionStart":634.9000000953674},{"duration":396.2999997138977,"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":635.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":635.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1031.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":312.40000009536743,"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":635.3000001907349,"connectEnd":635.3000001907349,"connectStart":635.3000001907349,"domainLookupEnd":635.3000001907349,"domainLookupStart":635.3000001907349,"fetchStart":635.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":635.3000001907349,"responseEnd":947.7000002861023,"responseStart":947.7000002861023,"secureConnectionStart":635.3000001907349},{"duration":458.09999990463257,"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":640.7000002861023,"connectEnd":640.7000002861023,"connectStart":640.7000002861023,"domainLookupEnd":640.7000002861023,"domainLookupStart":640.7000002861023,"fetchStart":640.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":640.7000002861023,"responseEnd":1098.8000001907349,"responseStart":1098.8000001907349,"secureConnectionStart":640.7000002861023},{"duration":458.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":640.7000002861023,"connectEnd":640.7000002861023,"connectStart":640.7000002861023,"domainLookupEnd":640.7000002861023,"domainLookupStart":640.7000002861023,"fetchStart":640.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":640.7000002861023,"responseEnd":1099.2000002861023,"responseStart":1099.2000002861023,"secureConnectionStart":640.7000002861023},{"duration":37.700000286102295,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1060.5,"connectEnd":1060.5,"connectStart":1060.5,"domainLookupEnd":1060.5,"domainLookupStart":1060.5,"fetchStart":1060.5,"redirectEnd":0,"redirectStart":0,"requestStart":1060.5,"responseEnd":1098.2000002861023,"responseStart":1098.1000003814697,"secureConnectionStart":1060.5},{"duration":203.09999990463257,"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":1102.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1102.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1305.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":450,"responseStart":627,"responseEnd":635,"domLoading":631,"domInteractive":1552,"domContentLoadedEventStart":1552,"domContentLoadedEventEnd":1606,"domComplete":1823,"loadEventStart":1823,"loadEventEnd":1824,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1536.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1537.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.start","time":1537.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1537.8000001907349},{"name":"activityTabFullyLoaded","time":1613.5}],"measures":[],"correlationId":"1138597acaf969","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":86,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}