Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.11, 11.4, 11.8, 12.3, 13.0, 13.1, 13.2
-
Can result in hang or crash
Description
Test case is compatible with MTR/CLI
--source include/have_innodb.inc
|
--source include/have_partition.inc
|
CREATE TABLE t (c1 INT, c2 TEXT, c3 TEXT, c4 TEXT AS (CONCAT('v',c2)) VIRTUAL, UNIQUE (c2,c3), KEY (c4(10))) ENGINE=InnoDB PARTITION BY HASH(c1) PARTITIONS 2; |
INSERT INTO t (c1,c2,c3) VALUES (1,'ab','c'),(2,'a','bc'); |
UPDATE t SET c2='abc',c3='' WHERE c1=1; |
|
|
#cleanup
|
DROP TABLE t; |
Leads to:
|
CS 12.3.4 691265a82e526e336e56c32fc8a98a74eea544f7 (Debug, Clang 18.1.3-11) Build 11/11/2026 |
mariadbd: /test/12.3_dbg/storage/innobase/row/row0upd.cc:1903: dberr_t row_upd_sec_index_entry(upd_node_t *, que_thr_t *): Assertion `0' failed.
|
|
CS 12.3.4 691265a82e526e336e56c32fc8a98a74eea544f7 (Debug, Clang 18.1.3-11) Build 11/11/2026 |
Core was generated by `/test/MD111126-mariadb-12.3.4-linux-x86_64-dbg/bin/mariadbd --no-defaults --loo'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
|
|
[Current thread is 1 (LWP 1944605)]
|
(gdb) bt
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:78
|
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ./nptl/pthread_kill.c:89
|
#3 0x0000734a7784527e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
|
#4 0x0000734a778288ff in __GI_abort () at ./stdlib/abort.c:79
|
#5 0x0000734a7782881b in __assert_fail_base (fmt=0x734a779d1208 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x648c6280c960 "0", file=file@entry=0x648c62885e83 "/test/12.3_dbg/storage/innobase/row/row0upd.cc", line=line@entry=1903, function=function@entry=0x648c628873d6 "dberr_t row_upd_sec_index_entry(upd_node_t *, que_thr_t *)") at ./assert/assert.c:96
|
#6 0x0000734a7783b517 in __assert_fail (assertion=0x648c6280c960 "0", file=0x648c62885e83 "/test/12.3_dbg/storage/innobase/row/row0upd.cc", line=1903, function=0x648c628873d6 "dberr_t row_upd_sec_index_entry(upd_node_t *, que_thr_t *)") at ./assert/assert.c:105
|
#7 0x0000648c620723c8 in row_upd_sec_index_entry (node=0x6b496803d890, thr=0x6b4968086d28) at /test/12.3_dbg/storage/innobase/row/row0upd.cc:1903
|
#8 0x0000648c6206ca1a in row_upd_sec_step (node=0x6b496803d890, thr=0x6b4968086d28) at /test/12.3_dbg/storage/innobase/row/row0upd.cc:2030
|
#9 0x0000648c6206a85d in row_upd (node=0x6b496803d890, thr=0x6b4968086d28)at /test/12.3_dbg/storage/innobase/row/row0upd.cc:2777
|
#10 0x0000648c6206a443 in row_upd_step (thr=0x6b4968086d28)at /test/12.3_dbg/storage/innobase/row/row0upd.cc:2892
|
#11 0x0000648c62005ef1 in row_update_for_mysql (prebuilt=0x6b496803ce58)at /test/12.3_dbg/storage/innobase/row/row0mysql.cc:1679
|
#12 0x0000648c61de9f6f in ha_innobase::update_row (this=0x6b496802efd0, old_row=0x6b496802f850 "\340\001", new_row=0x6b496802f820 "\340\001")at /test/12.3_dbg/storage/innobase/handler/ha_innodb.cc:8827
|
#13 0x0000648c619c6ce0 in handler::ha_update_row (this=0x6b496802efd0, old_data=0x6b496802f850 "\340\001", new_data=0x6b496802f820 "\340\001")at /test/12.3_dbg/sql/handler.cc:8699
|
#14 0x0000648c61d6a120 in ha_partition::update_row (this=0x6b496802de80, old_data=0x6b496802f850 "\340\001", new_data=0x6b496802f820 "\340\001")at /test/12.3_dbg/sql/ha_partition.cc:4724
|
#15 0x0000648c619c6ce0 in handler::ha_update_row (this=0x6b496802de80, old_data=0x6b496802f850 "\340\001", new_data=0x6b496802f820 "\340\001")at /test/12.3_dbg/sql/handler.cc:8699
|
#16 0x0000648c616c2dbd in Sql_cmd_update::update_single_table (this=0x6b496801b2b0, thd=0x6b4968000d60)at /test/12.3_dbg/sql/sql_update.cc:1070
|
#17 0x0000648c616caf91 in Sql_cmd_update::execute_inner (this=0x6b496801b2b0, thd=0x6b4968000d60) at /test/12.3_dbg/sql/sql_update.cc:3274
|
#18 0x0000648c61614fd1 in Sql_cmd_dml::execute (this=0x6b496801b2b0, thd=0x6b4968000d60) at /test/12.3_dbg/sql/sql_select.cc:35178
|
#19 0x0000648c61551af9 in mysql_execute_command (thd=0x6b4968000d60, is_called_from_prepared_stmt=false) at /test/12.3_dbg/sql/sql_parse.cc:4445
|
#20 0x0000648c61547d44 in mysql_parse (thd=0x6b4968000d60, rawbuf=0x6b496801a640 "UPDATE t SET c2='abc',c3='' WHERE c1=1", length=38, parser_state=0x734a741f2ab0) at /test/12.3_dbg/sql/sql_parse.cc:7947
|
#21 0x0000648c6154512d in dispatch_command (command=COM_QUERY, thd=0x6b4968000d60, packet=0x6b496800b631 "UPDATE t SET c2='abc',c3='' WHERE c1=1", packet_length=38, blocking=true) at /test/12.3_dbg/sql/sql_parse.cc:1903
|
#22 0x0000648c615488f3 in do_command (thd=0x6b4968000d60, blocking=true)at /test/12.3_dbg/sql/sql_parse.cc:1437
|
#23 0x0000648c61749b89 in do_handle_one_connection (connect=0x648c8c89f8e0, put_in_cache=true) at /test/12.3_dbg/sql/sql_connect.cc:1529
|
#24 0x0000648c6174992e in handle_one_connection (arg=0x648c8c8a2180)at /test/12.3_dbg/sql/sql_connect.cc:1441
|
#25 0x0000734a7789cb84 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#26 0x0000734a77929ecc in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
|
Bug Detection Matrix |
Rel o/d Build Commit UniqueID observed
|
CS 10.11 dbg 031126 8034c5bcaf3da89151cdae2a22e10d07aba5de45 0|SIGABRT|row_upd_sec_index_entry|row_upd_sec_step|row_upd|row_upd_step
|
CS 10.11 opt 031126 8034c5bcaf3da89151cdae2a22e10d07aba5de45 No bug found
|
CS 11.4 dbg 031126 3060a8806d76b7e7379925b2f0e46d65054011ae 0|SIGABRT|row_upd_sec_index_entry|row_upd_sec_step|row_upd|row_upd_step
|
CS 11.4 opt 031126 3060a8806d76b7e7379925b2f0e46d65054011ae No bug found
|
CS 11.8 dbg 031126 ebde32c352878e57a73853a926eb9be99be91217 0|SIGABRT|row_upd_sec_index_entry|row_upd_sec_step|row_upd|row_upd_step
|
CS 11.8 opt 031126 ebde32c352878e57a73853a926eb9be99be91217 No bug found
|
CS 12.3 dbg 111126 691265a82e526e336e56c32fc8a98a74eea544f7 0|SIGABRT|row_upd_sec_index_entry|row_upd_sec_step|row_upd|row_upd_step
|
CS 12.3 opt 111126 691265a82e526e336e56c32fc8a98a74eea544f7 No bug found
|
CS 13.1 dbg 041126 5290908f05d1b580cf2bc17dee3c7a8527ae2a53 0|SIGABRT|row_upd_sec_index_entry|row_upd_sec_step|row_upd|row_upd_step
|
CS 13.1 opt 041126 5290908f05d1b580cf2bc17dee3c7a8527ae2a53 No bug found
|
CS 13.2 dbg 301026 5104ebf86a1015cb96cbf50c37c7659a45d92d54 0|SIGABRT|row_upd_sec_index_entry|row_upd_sec_step|row_upd|row_upd_step
|
CS 13.2 opt 301026 5104ebf86a1015cb96cbf50c37c7659a45d92d54 No bug found
|
ES 11.4 dbg 060526 90f707057d44f1b5c013a0c3672fd12f32ea7085 0|SIGABRT|row_upd_sec_index_entry|row_upd_sec_step|row_upd|row_upd_step
|
ES 11.4 opt 060526 90f707057d44f1b5c013a0c3672fd12f32ea7085 No bug found
|
ES 11.8 dbg 060526 1499789de285a8109d68d79347de0281865b28f4 0|SIGABRT|row_upd_sec_index_entry|row_upd_sec_step|row_upd|row_upd_step
|
ES 11.8 opt 060526 1499789de285a8109d68d79347de0281865b28f4 No bug found
|
ES 12.3 dbg 280926 082387a5f3cbb877157998bb4baa95928f4aa121 0|SIGABRT|row_upd_sec_index_entry|row_upd_sec_step|row_upd|row_upd_step
|
ES 12.3 opt 280926 082387a5f3cbb877157998bb4baa95928f4aa121 No bug found
|
|
CS 12.3.4 691265a82e526e336e56c32fc8a98a74eea544f7 (Debug, UBASAN, Clang 18.1.3-11) Build 11/11/2026 |
==2136720==ERROR: AddressSanitizer: heap-use-after-free on address 0x504000011970 at pc 0x63ba408ab496 bp 0x6bd524f9a8d0 sp 0x6bd524f9a090
|
READ of size 3 at 0x504000011970 thread T12
|
#0 0x63ba408ab495 in __asan_memcpy (/test/UBASAN_MD111126-mariadb-12.3.4-linux-x86_64-dbg/bin/mariadbd+0x3872495) (BuildId: b7607338c15ea560)
|
#1 0x63ba4366592f in mem_heap_dup(mem_block_info_t*, void const*, unsigned long) /test/12.3_dbg_san/storage/innobase/include/mem0mem.h:208:5
|
#2 0x63ba4366592f in dfield_dup(dfield_t*, mem_block_info_t*) /test/12.3_dbg_san/storage/innobase/include/data0data.inl:170:17
|
#3 0x63ba4366592f in row_upd_store_v_row(upd_node_t*, upd_t const*, THD*, TABLE*) /test/12.3_dbg_san/storage/innobase/row/row0upd.cc:1695:5
|
#4 0x63ba4366592f in row_upd_store_row(upd_node_t*, THD*, TABLE*) /test/12.3_dbg_san/storage/innobase/row/row0upd.cc:1793:13
|
#5 0x63ba4365f0b2 in row_upd_clust_step(upd_node_t*, que_thr_t*) /test/12.3_dbg_san/storage/innobase/row/row0upd.cc:2654:7
|
#6 0x63ba43657fd0 in row_upd(upd_node_t*, que_thr_t*) /test/12.3_dbg_san/storage/innobase/row/row0upd.cc:2750:9
|
#7 0x63ba43657fd0 in row_upd_step(que_thr_t*) /test/12.3_dbg_san/storage/innobase/row/row0upd.cc:2892:8
|
#8 0x63ba43582139 in row_update_for_mysql(row_prebuilt_t*) /test/12.3_dbg_san/storage/innobase/row/row0mysql.cc:1679:3
|
#9 0x63ba42deaad3 in ha_innobase::update_row(unsigned char const*, unsigned char const*) /test/12.3_dbg_san/storage/innobase/handler/ha_innodb.cc:8827:11
|
#10 0x63ba40a646a9 in handler::ha_update_row(unsigned char const*, unsigned char const*) /test/12.3_dbg_san/sql/handler.cc:8699:3
|
#11 0x63ba42c429a7 in ha_partition::update_row(unsigned char const*, unsigned char const*) /test/12.3_dbg_san/sql/ha_partition.cc:4724:33
|
#12 0x63ba40a646a9 in handler::ha_update_row(unsigned char const*, unsigned char const*) /test/12.3_dbg_san/sql/handler.cc:8699:3
|
#13 0x63ba4212f59f in Sql_cmd_update::update_single_table(THD*) /test/12.3_dbg_san/sql/sql_update.cc:1070:31
|
#14 0x63ba4215b37a in Sql_cmd_update::execute_inner(THD*) /test/12.3_dbg_san/sql/sql_update.cc:3274:10
|
#15 0x63ba41e7ca2c in Sql_cmd_dml::execute(THD*) /test/12.3_dbg_san/sql/sql_select.cc:35178:9
|
#16 0x63ba41ba7e2c in mysql_execute_command(THD*, bool) /test/12.3_dbg_san/sql/sql_parse.cc:4445:27
|
#17 0x63ba41b85d74 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/12.3_dbg_san/sql/sql_parse.cc:7947:18
|
#18 0x63ba41b7f2e1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/12.3_dbg_san/sql/sql_parse.cc:1903:7
|
#19 0x63ba41b87508 in do_command(THD*, bool) /test/12.3_dbg_san/sql/sql_parse.cc:1437:17
|
#20 0x63ba4235096c in do_handle_one_connection(CONNECT*, bool) /test/12.3_dbg_san/sql/sql_connect.cc:1529:11
|
#21 0x63ba4235023d in handle_one_connection /test/12.3_dbg_san/sql/sql_connect.cc:1441:5
|
#22 0x63ba408ab0cc in asan_thread_start(void*) crtstuff.c
|
#23 0x73d5f129cb83 in start_thread nptl/pthread_create.c:447:8
|
#24 0x73d5f1329ecb in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
|
|
0x504000011970 is located 32 bytes inside of 48-byte region [0x504000011950,0x504000011980)
|
freed by thread T12 here:
|
#0 0x63ba408ad34a in free (/test/UBASAN_MD111126-mariadb-12.3.4-linux-x86_64-dbg/bin/mariadbd+0x387434a) (BuildId: b7607338c15ea560)
|
#1 0x63ba421e387d in Binary_string::free_buffer() /test/12.3_dbg_san/sql/sql_string.h:266:7
|
#2 0x63ba421e387d in Binary_string::free() /test/12.3_dbg_san/sql/sql_string.h:736:5
|
#3 0x63ba421e387d in TABLE::restore_blob_values(String*, bool) /test/12.3_dbg_san/sql/table.cc:8721:19
|
|
|
previously allocated by thread T12 here:
|
#0 0x63ba408ad5e3 in malloc (/test/UBASAN_MD111126-mariadb-12.3.4-linux-x86_64-dbg/bin/mariadbd+0x38745e3) (BuildId: b7607338c15ea560)
|
#1 0x63ba439469eb in my_malloc /test/12.3_dbg_san/mysys/my_malloc.c:93:29
|
|
|
Thread T12 created by T0 here:
|
#0 0x63ba40892f55 in pthread_create (/test/UBASAN_MD111126-mariadb-12.3.4-linux-x86_64-dbg/bin/mariadbd+0x3859f55) (BuildId: b7607338c15ea560)
|
#1 0x63ba409000da in create_thread_to_handle_connection(CONNECT*) /test/12.3_dbg_san/sql/mysqld.cc:6606:19
|
#2 0x63ba40901055 in handle_connections_sockets() /test/12.3_dbg_san/sql/mysqld.cc:6842:9
|
#3 0x63ba408ff317 in run_main_loop() /test/12.3_dbg_san/sql/mysqld.cc:6079:3
|
#4 0x73d5f122a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
|
#5 0x73d5f122a28a in __libc_start_main csu/../csu/libc-start.c:360:3
|
#6 0x63ba40812794 in _start (/test/UBASAN_MD111126-mariadb-12.3.4-linux-x86_64-dbg/bin/mariadbd+0x37d9794) (BuildId: b7607338c15ea560)
|
|
|
SUMMARY: AddressSanitizer: heap-use-after-free (/test/UBASAN_MD111126-mariadb-12.3.4-linux-x86_64-dbg/bin/mariadbd+0x3872495) (BuildId: b7607338c15ea560) in __asan_memcpy
|
[..]
|
|
CS 12.3.4 691265a82e526e336e56c32fc8a98a74eea544f7 (Optimized, UBASAN, Clang 18.1.3-11) Build 11/11/2026 |
==2135296==ERROR: AddressSanitizer: heap-use-after-free on address 0x50400000ed30 at pc 0x5bd737cbd1d6 bp 0x767c2e536930 sp 0x767c2e5360f0
|
READ of size 3 at 0x50400000ed30 thread T13
|
#0 0x5bd737cbd1d5 in __asan_memcpy (/test/UBASAN_MD111126-mariadb-12.3.4-linux-x86_64-opt/bin/mariadbd+0x2e7d1d5) (BuildId: 37e5189751b720bd)
|
#1 0x5bd73a7f7090 in mem_heap_dup(mem_block_info_t*, void const*, unsigned long) /test/12.3_opt_san/storage/innobase/include/mem0mem.h:208:5
|
#2 0x5bd73a7f7090 in dfield_dup(dfield_t*, mem_block_info_t*) /test/12.3_opt_san/storage/innobase/include/data0data.inl:170:17
|
#3 0x5bd73a7f7090 in row_upd_store_v_row(upd_node_t*, upd_t const*, THD*, TABLE*) /test/12.3_opt_san/storage/innobase/row/row0upd.cc:1695:5
|
#4 0x5bd73a7f7090 in row_upd_store_row(upd_node_t*, THD*, TABLE*) /test/12.3_opt_san/storage/innobase/row/row0upd.cc:1793:13
|
#5 0x5bd73a7f110d in row_upd_clust_step(upd_node_t*, que_thr_t*) /test/12.3_opt_san/storage/innobase/row/row0upd.cc:2654:7
|
#6 0x5bd73a7f110d in row_upd(upd_node_t*, que_thr_t*) /test/12.3_opt_san/storage/innobase/row/row0upd.cc:2750:9
|
#7 0x5bd73a7ed901 in row_upd_step(que_thr_t*) /test/12.3_opt_san/storage/innobase/row/row0upd.cc:2892:8
|
#8 0x5bd73a755de4 in row_update_for_mysql(row_prebuilt_t*) /test/12.3_opt_san/storage/innobase/row/row0mysql.cc:1679:3
|
#9 0x5bd73a152b21 in ha_innobase::update_row(unsigned char const*, unsigned char const*) /test/12.3_opt_san/storage/innobase/handler/ha_innodb.cc:8827:11
|
#10 0x5bd737e5839c in handler::ha_update_row(unsigned char const*, unsigned char const*) /test/12.3_opt_san/sql/handler.cc:8699:3
|
#11 0x5bd739e0a0b1 in ha_partition::update_row(unsigned char const*, unsigned char const*) /test/12.3_opt_san/sql/ha_partition.cc:4724:33
|
#12 0x5bd737e5839c in handler::ha_update_row(unsigned char const*, unsigned char const*) /test/12.3_opt_san/sql/handler.cc:8699:3
|
#13 0x5bd739383b75 in Sql_cmd_update::update_single_table(THD*) /test/12.3_opt_san/sql/sql_update.cc:1070:31
|
#14 0x5bd7393accda in Sql_cmd_update::execute_inner(THD*) /test/12.3_opt_san/sql/sql_update.cc:3274:10
|
#15 0x5bd7390e8311 in Sql_cmd_dml::execute(THD*) /test/12.3_opt_san/sql/sql_select.cc:35178:9
|
#16 0x5bd738e49aa3 in mysql_execute_command(THD*, bool) /test/12.3_opt_san/sql/sql_parse.cc:4445:27
|
#17 0x5bd738e2aea2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/12.3_opt_san/sql/sql_parse.cc:7947:18
|
#18 0x5bd738e21366 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/12.3_opt_san/sql/sql_parse.cc:1903:7
|
#19 0x5bd738e2c6dc in do_command(THD*, bool) /test/12.3_opt_san/sql/sql_parse.cc:1437:17
|
#20 0x5bd73958a7bc in do_handle_one_connection(CONNECT*, bool) /test/12.3_opt_san/sql/sql_connect.cc:1529:11
|
#21 0x5bd739589f02 in handle_one_connection /test/12.3_opt_san/sql/sql_connect.cc:1441:5
|
#22 0x5bd739e77238 in pfs_spawn_thread /test/12.3_opt_san/storage/perfschema/pfs.cc:2198:3
|
#23 0x5bd737cbce0c in asan_thread_start(void*) crtstuff.c
|
#24 0x7e7d1389cb83 in start_thread nptl/pthread_create.c:447:8
|
#25 0x7e7d13929ecb in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
|
|
0x50400000ed30 is located 32 bytes inside of 48-byte region [0x50400000ed10,0x50400000ed40)
|
freed by thread T13 here:
|
#0 0x5bd737cbf08a in free (/test/UBASAN_MD111126-mariadb-12.3.4-linux-x86_64-opt/bin/mariadbd+0x2e7f08a) (BuildId: 37e5189751b720bd)
|
#1 0x5bd739429bb4 in Binary_string::free_buffer() /test/12.3_opt_san/sql/sql_string.h:266:7
|
#2 0x5bd739429bb4 in Binary_string::free() /test/12.3_opt_san/sql/sql_string.h:736:5
|
#3 0x5bd739429bb4 in TABLE::restore_blob_values(String*, bool) /test/12.3_opt_san/sql/table.cc:8721:19
|
#4 0x5bd737e4df6d in handler::check_duplicate_long_entry_key(unsigned char const*, unsigned int) /test/12.3_opt_san/sql/handler.cc:8326:10
|
#5 0x5bd737e5297f in handler::ha_check_long_uniques(unsigned char const*, unsigned char const*) /test/12.3_opt_san/sql/handler.cc:8375:22
|
#6 0x5bd737e4fada in handler::ha_check_inserver_constraints(unsigned char const*, unsigned char const*) /test/12.3_opt_san/sql/handler.cc:8349:14
|
#7 0x5bd737e57ea7 in handler::ha_update_row(unsigned char const*, unsigned char const*) /test/12.3_opt_san/sql/handler.cc:8692:15
|
#8 0x5bd739383b75 in Sql_cmd_update::update_single_table(THD*) /test/12.3_opt_san/sql/sql_update.cc:1070:31
|
#9 0x5bd7393accda in Sql_cmd_update::execute_inner(THD*) /test/12.3_opt_san/sql/sql_update.cc:3274:10
|
#10 0x5bd7390e8311 in Sql_cmd_dml::execute(THD*) /test/12.3_opt_san/sql/sql_select.cc:35178:9
|
#11 0x5bd738e49aa3 in mysql_execute_command(THD*, bool) /test/12.3_opt_san/sql/sql_parse.cc:4445:27
|
#12 0x5bd738e2aea2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/12.3_opt_san/sql/sql_parse.cc:7947:18
|
#13 0x5bd738e21366 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/12.3_opt_san/sql/sql_parse.cc:1903:7
|
#14 0x5bd738e2c6dc in do_command(THD*, bool) /test/12.3_opt_san/sql/sql_parse.cc:1437:17
|
#15 0x5bd73958a7bc in do_handle_one_connection(CONNECT*, bool) /test/12.3_opt_san/sql/sql_connect.cc:1529:11
|
#16 0x5bd739589f02 in handle_one_connection /test/12.3_opt_san/sql/sql_connect.cc:1441:5
|
#17 0x5bd739e77238 in pfs_spawn_thread /test/12.3_opt_san/storage/perfschema/pfs.cc:2198:3
|
#18 0x5bd737cbce0c in asan_thread_start(void*) crtstuff.c
|
|
|
previously allocated by thread T13 here:
|
#0 0x5bd737cbf323 in malloc (/test/UBASAN_MD111126-mariadb-12.3.4-linux-x86_64-opt/bin/mariadbd+0x2e7f323) (BuildId: 37e5189751b720bd)
|
#1 0x5bd73aa9ffe8 in my_malloc /test/12.3_opt_san/mysys/my_malloc.c:93:29
|
#2 0x5bd739268faf in Binary_string::real_alloc(unsigned long) /test/12.3_opt_san/sql/sql_string.cc:41:23
|
#3 0x5bd737f08cb3 in Binary_string::alloc(unsigned long) /test/12.3_opt_san/sql/sql_string.h:759:12
|
#4 0x5bd737f08cb3 in Field_blob::store(char const*, unsigned long, charset_info_st const*) /test/12.3_opt_san/sql/field.cc:8984:13
|
#5 0x5bd737fd1d54 in Item::save_str_in_field(Field*, bool) /test/12.3_opt_san/sql/item.cc:7659:21
|
#6 0x5bd737fd3826 in Item::save_in_field(Field*, bool) /test/12.3_opt_san/sql/item.cc:7733:30
|
#7 0x5bd739431527 in TABLE::update_virtual_fields(handler*, enum_vcol_update_mode) /test/12.3_opt_san/sql/table.cc:9595:24
|
#8 0x5bd737e19ea3 in handler::ha_index_read_map(unsigned char*, unsigned char const*, unsigned int, ha_rkey_function) /test/12.3_opt_san/sql/handler.cc:4224:14
|
#9 0x5bd739e1d555 in ha_partition::handle_unordered_scan_next_partition(unsigned char*, bool) /test/12.3_opt_san/sql/ha_partition.cc:8069:20
|
#10 0x5bd737e193bf in handler::ha_index_read_map(unsigned char*, unsigned char const*, unsigned int, ha_rkey_function) /test/12.3_opt_san/sql/handler.cc:4216:3
|
#11 0x5bd737e4cc0b in handler::check_duplicate_long_entry_key(unsigned char const*, unsigned int) /test/12.3_opt_san/sql/handler.cc:8287:27
|
#12 0x5bd737e5297f in handler::ha_check_long_uniques(unsigned char const*, unsigned char const*) /test/12.3_opt_san/sql/handler.cc:8375:22
|
#13 0x5bd737e4fada in handler::ha_check_inserver_constraints(unsigned char const*, unsigned char const*) /test/12.3_opt_san/sql/handler.cc:8349:14
|
#14 0x5bd737e54060 in handler::ha_write_row(unsigned char const*) /test/12.3_opt_san/sql/handler.cc:8614:15
|
#15 0x5bd738cdc55d in Write_record::single_insert(unsigned long long*) /test/12.3_opt_san/sql/sql_insert.cc:2422:27
|
#16 0x5bd738cd0b5a in Write_record::write_record() /test/12.3_opt_san/sql/sql_insert.cc:2464:10
|
#17 0x5bd738cc447e in mysql_insert(THD*, TABLE_LIST*, List<Item>&, List<List<Item>>&, List<Item>&, List<Item>&, enum_duplicates, bool, select_result*) /test/12.3_opt_san/sql/sql_insert.cc:1239:22
|
#18 0x5bd738e55781 in mysql_execute_command(THD*, bool) /test/12.3_opt_san/sql/sql_parse.cc:4501:10
|
#19 0x5bd738e2aea2 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/12.3_opt_san/sql/sql_parse.cc:7947:18
|
#20 0x5bd738e21366 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/12.3_opt_san/sql/sql_parse.cc:1903:7
|
#21 0x5bd738e2c6dc in do_command(THD*, bool) /test/12.3_opt_san/sql/sql_parse.cc:1437:17
|
#22 0x5bd73958a7bc in do_handle_one_connection(CONNECT*, bool) /test/12.3_opt_san/sql/sql_connect.cc:1529:11
|
#23 0x5bd739589f02 in handle_one_connection /test/12.3_opt_san/sql/sql_connect.cc:1441:5
|
#24 0x5bd739e77238 in pfs_spawn_thread /test/12.3_opt_san/storage/perfschema/pfs.cc:2198:3
|
#25 0x5bd737cbce0c in asan_thread_start(void*) crtstuff.c
|
|
|
Thread T13 created by T0 here:
|
#0 0x5bd737ca4c95 in pthread_create (/test/UBASAN_MD111126-mariadb-12.3.4-linux-x86_64-opt/bin/mariadbd+0x2e64c95) (BuildId: 37e5189751b720bd)
|
#1 0x5bd739e775bd in my_thread_create(unsigned long*, pthread_attr_t const*, void* (*)(void*), void*) /test/12.3_opt_san/storage/perfschema/my_thread.h:38:10
|
#2 0x5bd739e775bd in pfs_spawn_thread_v1 /test/12.3_opt_san/storage/perfschema/pfs.cc:2249:15
|
#3 0x5bd737d185dc in inline_mysql_thread_create(unsigned int, unsigned long*, pthread_attr_t const*, void* (*)(void*), void*) /test/12.3_opt_san/include/mysql/psi/mysql_thread.h:1139:11
|
#4 0x5bd737d185dc in create_thread_to_handle_connection(CONNECT*) /test/12.3_opt_san/sql/mysqld.cc:6606:19
|
#5 0x5bd737d19be8 in handle_connections_sockets() /test/12.3_opt_san/sql/mysqld.cc:6842:9
|
#6 0x5bd737d17ce2 in run_main_loop() /test/12.3_opt_san/sql/mysqld.cc:6079:3
|
#7 0x5bd737d0d0e9 in mysqld_main(int, char**) /test/12.3_opt_san/sql/mysqld.cc:6502:3
|
#8 0x7e7d1382a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
|
#9 0x7e7d1382a28a in __libc_start_main csu/../csu/libc-start.c:360:3
|
#10 0x5bd737c244d4 in _start (/test/UBASAN_MD111126-mariadb-12.3.4-linux-x86_64-opt/bin/mariadbd+0x2de44d4) (BuildId: 37e5189751b720bd)
|
|
|
SUMMARY: AddressSanitizer: heap-use-after-free (/test/UBASAN_MD111126-mariadb-12.3.4-linux-x86_64-opt/bin/mariadbd+0x2e7d1d5) (BuildId: 37e5189751b720bd) in __asan_memcpy
|
[..]
|
Setup:
Compiled with a recent version of GCC (I used GCC 13.3.0) and:
|
-DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON -DWITH_UBSAN=ON -DWSREP_LIB_WITH_ASAN=ON
|
Set before execution:
|
export ASAN_OPTIONS=quarantine_size_mb=512:atexit=0:detect_invalid_pointer_pairs=3:dump_instruction_bytes=1:abort_on_error=1:allocator_may_return_null=1
|
|
SAN Bug Detection Matrix |
Rel o/d Build Commit UniqueID observed
|
CS 10.11 dbg 031126 8034c5bcaf3da89151cdae2a22e10d07aba5de45 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
CS 10.11 opt 031126 8034c5bcaf3da89151cdae2a22e10d07aba5de45 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
CS 11.8 dbg 031126 ebde32c352878e57a73853a926eb9be99be91217 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
CS 12.3 dbg 111126 691265a82e526e336e56c32fc8a98a74eea544f7 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
CS 12.3 opt 111126 691265a82e526e336e56c32fc8a98a74eea544f7 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
CS 13.1 dbg 070926 b2a8c2234dbc276fe3947633c9ffea454badf48f ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
CS 13.1 opt 070926 b2a8c2234dbc276fe3947633c9ffea454badf48f ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
CS 13.2 dbg 021126 5d26b3be259de6bdf6288879da2327a155a61f5e ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
CS 13.2 opt 021126 5d26b3be259de6bdf6288879da2327a155a61f5e ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
ES 10.6 dbg 170226 22e626b9c17e9969925c54f14d30e39e25320b22 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
ES 10.6 opt 170226 22e626b9c17e9969925c54f14d30e39e25320b22 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
ES 11.4 dbg 170226 34f616d5fd2c649d0c79acb4e2423c90b8f10436 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
ES 11.4 opt 170226 34f616d5fd2c649d0c79acb4e2423c90b8f10436 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
ES 11.8 dbg 170226 405ee76b60c4ab82155f339136ed20d3b7363717 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
ES 11.8 opt 170226 405ee76b60c4ab82155f339136ed20d3b7363717 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
ES 12.3 dbg 280926 082387a5f3cbb877157998bb4baa95928f4aa121 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
ES 12.3 opt 280926 082387a5f3cbb877157998bb4baa95928f4aa121 ASAN|heap-use-after-free|include/mem0mem.h|__asan_memcpy|mem_heap_dup|dfield_dup|row_upd_store_v_row
|
Attachments
Issue Links
- relates to
-
MDEV-41617 Index corruption on UPDATE of table with long unique hash collision and indexed virtual blob
-
- Closed
-