Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.5
--source include/have_innodb.inc
CREATE TABLE t1 (
pk timestamp ,
a timestamp NULL DEFAULT '0000-00-00 00:00:00' ,
PRIMARY KEY (pk),
KEY (a)
) ENGINE=InnoDB;
INSERT INTO t1 VALUES ( '2020-02-17 11:15:11.0272' , NULL );
INSERT INTO t1 VALUES ( '2020-02-17 11:15:13.0272' , NULL );
INSERT INTO t1 VALUES ( '2020-02-17 11:15:17.0272' , NULL );
INSERT INTO t1 VALUES ( '2020-02-17 11:15:20.0272' , NULL );
INSERT INTO t1 (pk) VALUES ( '0000-00-00 00:00:00.0000' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:03.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:06.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:08.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:16.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:01.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:15.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:00.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:12.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:14.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:18.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:09.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:10.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:19.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:07.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:04.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:05.0272' );
INSERT INTO t1 (pk) VALUES ( '2020-02-17 11:15:02.0272' );
ALTER TABLE t1 ADD b VARCHAR (38044);
# Cleanup
DROP TABLE t1;
10.5 41fe972d
==4847==ERROR: AddressSanitizer: use-after-poison on address 0x6190000f6b8e at pc 0x562c1c2535a9 bp 0x7fc9ce86f5c0 sp 0x7fc9ce86f5b8
READ of size 1 at 0x6190000f6b8e thread T13
#0 0x562c1c2535a8 in void PageBulk::insertPage<(PageBulk::format)1>(unsigned char*, unsigned short*) /data/src/10.5/storage/innobase/btr/btr0bulk.cc:273
#1 0x562c1c25046b in PageBulk::insert(unsigned char const*, unsigned short*) /data/src/10.5/storage/innobase/btr/btr0bulk.cc:329
#2 0x562c1c24e477 in BtrBulk::insert(dtuple_t*, unsigned long) /data/src/10.5/storage/innobase/btr/btr0bulk.cc:1099
#3 0x562c1c01bf23 in BtrBulk::insert(dtuple_t*) /data/src/10.5/storage/innobase/include/btr0bulk.h:301
#4 0x562c1c07616b in row_merge_insert_index_tuples /data/src/10.5/storage/innobase/row/row0merge.cc:3631
#5 0x562c1c070882 in row_merge_read_clustered_index /data/src/10.5/storage/innobase/row/row0merge.cc:2615
#6 0x562c1c07b695 in row_merge_build_indexes(trx_t*, dict_table_t*, dict_table_t*, bool, dict_index_t**, unsigned long const*, unsigned long, TABLE*, dtuple_t const*, unsigned long const*, unsigned long, ib_sequence_t&, bool, ut_stage_alter_t*, dict_add_v_col_t const*, TABLE*, bool) /data/src/10.5/storage/innobase/row/row0merge.cc:4661
#7 0x562c1be4206d in ha_innobase::inplace_alter_table(TABLE*, Alter_inplace_info*) /data/src/10.5/storage/innobase/handler/handler0alter.cc:8285
#8 0x562c1af45711 in handler::ha_inplace_alter_table(TABLE*, Alter_inplace_info*) /data/src/10.5/sql/handler.h:4365
#9 0x562c1af2c71a in mysql_inplace_alter_table /data/src/10.5/sql/sql_table.cc:7743
#10 0x562c1af3b43f in mysql_alter_table(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool) /data/src/10.5/sql/sql_table.cc:10149
#11 0x562c1b0a78a0 in Sql_cmd_alter_table::execute(THD*) /data/src/10.5/sql/sql_alter.cc:523
#12 0x562c1acfc6ed in mysql_execute_command(THD*) /data/src/10.5/sql/sql_parse.cc:5878
#13 0x562c1ad0866d in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.5/sql/sql_parse.cc:7918
#14 0x562c1ace2825 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.5/sql/sql_parse.cc:1845
#15 0x562c1acdf7de in do_command(THD*) /data/src/10.5/sql/sql_parse.cc:1364
#16 0x562c1b090fca in do_handle_one_connection(CONNECT*, bool) /data/src/10.5/sql/sql_connect.cc:1422
#17 0x562c1b0909c0 in handle_one_connection /data/src/10.5/sql/sql_connect.cc:1319
#18 0x562c1bcc6289 in pfs_spawn_thread /data/src/10.5/storage/perfschema/pfs.cc:1869
#19 0x7fc9dec484a3 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x74a3)
#20 0x7fc9dcd7cd0e in __clone (/lib/x86_64-linux-gnu/libc.so.6+0xe8d0e)
0x6190000f6b8e is located 526 bytes inside of 1128-byte region [0x6190000f6980,0x6190000f6de8)
allocated by thread T13 here:
#0 0x7fc9def1fd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
#1 0x562c1bf666dd in mem_heap_create_block_func(mem_block_info_t*, unsigned long, char const*, unsigned int, unsigned long) /data/src/10.5/storage/innobase/mem/mem0mem.cc:277
#2 0x562c1c24678c in mem_heap_create_func /data/src/10.5/storage/innobase/include/mem0mem.ic:375
#3 0x562c1c24a47b in PageBulk::init() /data/src/10.5/storage/innobase/btr/btr0bulk.cc:48
#4 0x562c1c24db53 in BtrBulk::insert(dtuple_t*, unsigned long) /data/src/10.5/storage/innobase/btr/btr0bulk.cc:1002
#5 0x562c1c01bf23 in BtrBulk::insert(dtuple_t*) /data/src/10.5/storage/innobase/include/btr0bulk.h:301
#6 0x562c1c07616b in row_merge_insert_index_tuples /data/src/10.5/storage/innobase/row/row0merge.cc:3631
#7 0x562c1c070882 in row_merge_read_clustered_index /data/src/10.5/storage/innobase/row/row0merge.cc:2615
#8 0x562c1c07b695 in row_merge_build_indexes(trx_t*, dict_table_t*, dict_table_t*, bool, dict_index_t**, unsigned long const*, unsigned long, TABLE*, dtuple_t const*, unsigned long const*, unsigned long, ib_sequence_t&, bool, ut_stage_alter_t*, dict_add_v_col_t const*, TABLE*, bool) /data/src/10.5/storage/innobase/row/row0merge.cc:4661
#9 0x562c1be4206d in ha_innobase::inplace_alter_table(TABLE*, Alter_inplace_info*) /data/src/10.5/storage/innobase/handler/handler0alter.cc:8285
#10 0x562c1af45711 in handler::ha_inplace_alter_table(TABLE*, Alter_inplace_info*) /data/src/10.5/sql/handler.h:4365
#11 0x562c1af2c71a in mysql_inplace_alter_table /data/src/10.5/sql/sql_table.cc:7743
#12 0x562c1af3b43f in mysql_alter_table(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool) /data/src/10.5/sql/sql_table.cc:10149
#13 0x562c1b0a78a0 in Sql_cmd_alter_table::execute(THD*) /data/src/10.5/sql/sql_alter.cc:523
#14 0x562c1acfc6ed in mysql_execute_command(THD*) /data/src/10.5/sql/sql_parse.cc:5878
#15 0x562c1ad0866d in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /data/src/10.5/sql/sql_parse.cc:7918
#16 0x562c1ace2825 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /data/src/10.5/sql/sql_parse.cc:1845
#17 0x562c1acdf7de in do_command(THD*) /data/src/10.5/sql/sql_parse.cc:1364
#18 0x562c1b090fca in do_handle_one_connection(CONNECT*, bool) /data/src/10.5/sql/sql_connect.cc:1422
#19 0x562c1b0909c0 in handle_one_connection /data/src/10.5/sql/sql_connect.cc:1319
#20 0x562c1bcc6289 in pfs_spawn_thread /data/src/10.5/storage/perfschema/pfs.cc:1869
#21 0x7fc9dec484a3 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x74a3)
Thread T13 created by T0 here:
#0 0x7fc9dee8ef59 in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x30f59)
#1 0x562c1bcc6676 in spawn_thread_v1 /data/src/10.5/storage/perfschema/pfs.cc:1919
#2 0x562c1aa2c728 in inline_mysql_thread_create /data/src/10.5/include/mysql/psi/mysql_thread.h:1275
#3 0x562c1aa4039f in create_thread_to_handle_connection(CONNECT*) /data/src/10.5/sql/mysqld.cc:6065
#4 0x562c1aa40914 in create_new_thread(CONNECT*) /data/src/10.5/sql/mysqld.cc:6124
#5 0x562c1aa40ad1 in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /data/src/10.5/sql/mysqld.cc:6189
#6 0x562c1aa414b4 in handle_connections_sockets() /data/src/10.5/sql/mysqld.cc:6316
#7 0x562c1aa3fbfb in mysqld_main(int, char**) /data/src/10.5/sql/mysqld.cc:5728
#8 0x562c1aa2a60f in main /data/src/10.5/sql/main.cc:25
#9 0x7fc9dccb42e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
SUMMARY: AddressSanitizer: use-after-poison /data/src/10.5/storage/innobase/btr/btr0bulk.cc:273 in void PageBulk::insertPage<(PageBulk::format)1>(unsigned char*, unsigned short*)
Shadow bytes around the buggy address:
0x0c3280016d20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c3280016d30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c3280016d40: f7 00 02 f7 00 00 00 02 f7 00 02 f7 00 00 00 02
0x0c3280016d50: f7 00 00 00 02 f7 00 02 f7 00 00 00 02 f7 00 00
0x0c3280016d60: 00 02 f7 00 02 f7 00 00 00 02 f7 00 00 00 02 f7
=>0x0c3280016d70: 00[06]f7 00 00 00 02 f7 00 00 00 02 f7 f7 f7 f7
0x0c3280016d80: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
0x0c3280016d90: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
0x0c3280016da0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
0x0c3280016db0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 fa fa fa
0x0c3280016dc0: 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
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
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==4847==ABORTING
No obvious effect on a non-ASAN build.
The failure appeared in 10.5 recently, I didn't bisect for the exact revision.
Marko Mäkelä
made changes -
2020-03-10 06:40
Field
Original Value
New Value
Status
Open
[ 1
]
In Progress
[ 3
]
Marko Mäkelä
made changes -
2020-03-10 08:32
Summary
ASAN use-after-poison in PageBulk::insertPage upon adding column
ASAN use-after-poison in PageBulk::insertPage on table rebuild
Marko Mäkelä
made changes -
2020-03-10 08:34
issue.field.resolutiondate
2020-03-10 08:34:33.0
2020-03-10 08:34:33.343
Marko Mäkelä
made changes -
2020-03-10 08:34
Fix Version/s
10.5.2
[ 24030
]
Fix Version/s
10.5
[ 23123
]
Resolution
Fixed
[ 1
]
Status
In Progress
[ 3
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:51
Workflow
MariaDB v3
[ 104017
]
MariaDB v4
[ 157338
]
{"report":{"fcp":1060.0999999046326,"ttfb":300.2999999523163,"pageVisibility":"visible","entityId":83301,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"500fde03-b109-428d-af7e-579e93063f59","navigationType":0,"readyForUser":1272.0999999046326,"redirectCount":0,"resourceLoadedEnd":715.7999999523163,"resourceLoadedStart":311.5,"resourceTiming":[{"duration":27.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":311.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":311.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":338.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":27,"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":311.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":311.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":338.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":277,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":311.90000009536743,"connectEnd":311.90000009536743,"connectStart":311.90000009536743,"domainLookupEnd":311.90000009536743,"domainLookupStart":311.90000009536743,"fetchStart":311.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":350.7000000476837,"responseEnd":588.9000000953674,"responseStart":370.7999999523163,"secureConnectionStart":311.90000009536743},{"duration":403.59999990463257,"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":312.2000000476837,"connectEnd":312.2000000476837,"connectStart":312.2000000476837,"domainLookupEnd":312.2000000476837,"domainLookupStart":312.2000000476837,"fetchStart":312.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":352.40000009536743,"responseEnd":715.7999999523163,"responseStart":376.7000000476837,"secureConnectionStart":312.2000000476837},{"duration":73.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":312.2999999523163,"connectEnd":312.2999999523163,"connectStart":312.2999999523163,"domainLookupEnd":312.2999999523163,"domainLookupStart":312.2999999523163,"fetchStart":312.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":355,"responseEnd":385.7999999523163,"responseStart":377.7999999523163,"secureConnectionStart":312.2999999523163},{"duration":73.40000009536743,"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":312.5,"connectEnd":312.5,"connectStart":312.5,"domainLookupEnd":312.5,"domainLookupStart":312.5,"fetchStart":312.5,"redirectEnd":0,"redirectStart":0,"requestStart":356.40000009536743,"responseEnd":385.90000009536743,"responseStart":378.2999999523163,"secureConnectionStart":312.5},{"duration":73.39999985694885,"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":312.7000000476837,"connectEnd":312.7000000476837,"connectStart":312.7000000476837,"domainLookupEnd":312.7000000476837,"domainLookupStart":312.7000000476837,"fetchStart":312.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":356.59999990463257,"responseEnd":386.09999990463257,"responseStart":378.7999999523163,"secureConnectionStart":312.7000000476837},{"duration":30.5,"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":312.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":312.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":343.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":74.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":312.90000009536743,"connectEnd":312.90000009536743,"connectStart":312.90000009536743,"domainLookupEnd":312.90000009536743,"domainLookupStart":312.90000009536743,"fetchStart":312.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":359,"responseEnd":387.59999990463257,"responseStart":384.2999999523163,"secureConnectionStart":312.90000009536743},{"duration":34.10000014305115,"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":313.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":313.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":347.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":83.79999995231628,"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":313.2999999523163,"connectEnd":313.2999999523163,"connectStart":313.2999999523163,"domainLookupEnd":313.2999999523163,"domainLookupStart":313.2999999523163,"fetchStart":313.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":359.59999990463257,"responseEnd":397.09999990463257,"responseStart":384.90000009536743,"secureConnectionStart":313.2999999523163},{"duration":372.2999999523163,"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":329.7999999523163,"connectEnd":329.7999999523163,"connectStart":329.7999999523163,"domainLookupEnd":329.7999999523163,"domainLookupStart":329.7999999523163,"fetchStart":329.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":379.59999990463257,"responseEnd":702.0999999046326,"responseStart":690.7000000476837,"secureConnectionStart":329.7999999523163},{"duration":318.59999990463257,"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":384.40000009536743,"connectEnd":384.40000009536743,"connectStart":384.40000009536743,"domainLookupEnd":384.40000009536743,"domainLookupStart":384.40000009536743,"fetchStart":384.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":406.7999999523163,"responseEnd":703,"responseStart":692.2000000476837,"secureConnectionStart":384.40000009536743},{"duration":264.2000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":733.2000000476837,"connectEnd":733.2000000476837,"connectStart":733.2000000476837,"domainLookupEnd":733.2000000476837,"domainLookupStart":733.2000000476837,"fetchStart":733.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":947,"responseEnd":997.4000000953674,"responseStart":995,"secureConnectionStart":733.2000000476837}],"fetchStart":0,"domainLookupStart":53,"domainLookupEnd":63,"connectStart":63,"connectEnd":83,"secureConnectionStart":71,"requestStart":83,"responseStart":300,"responseEnd":384,"domLoading":310,"domInteractive":1414,"domContentLoadedEventStart":1414,"domContentLoadedEventEnd":1484,"domComplete":2693,"loadEventStart":2693,"loadEventEnd":2693,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1347.7999999523163},{"name":"bigPipe.sidebar-id.end","time":1355.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1355.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1360.2999999523163},{"name":"activityTabFullyLoaded","time":1502.7999999523163}],"measures":[],"correlationId":"f1d04ded7d3763","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":132,"dbReadsTimeInMs":18,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
We were dereferencing the pointers before checking their validity:
diff --git a/storage/innobase/btr/btr0bulk.cc b/storage/innobase/btr/btr0bulk.cc
index aeeb5850713..1171de544a7 100644
--- a/storage/innobase/btr/btr0bulk.cc
+++ b/storage/innobase/btr/btr0bulk.cc
@@ -270,9 +270,11 @@ inline void PageBulk::insertPage(rec_t *rec, offset_t *offsets)
byte *bd= insert_rec;
const byte *rd= rec;
/* Skip any unchanged prefix of the record. */
- for (; *bd == *rd; cd++, bd++, rd++)
+ for (;; cd++, bd++, rd++)
if (bd == insert_rec_end)
goto no_data;
+ else if (*bd != *rd)
+ break;
/* Try to copy any data bytes of the preceding record. */
It looks like we would access at most one byte beyond the end of the payload of rec. I do not think that there would be any observable impact outside AddressSanitizer or Valgrind.