Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.6, 10.11, 11.4, 11.8, 12.2, 12.3
-
None
-
Can result in hang or crash
Description
INSTALL SONAME 'ha_rocksdb'; |
SET default_storage_engine=RocksDB; |
CREATE TABLE t (a INT,b INT,KEY(a),INDEX (b)) PARTITION BY RANGE (a) PARTITIONS 2 (PARTITION x1 VALUES LESS THAN (1),PARTITION x2 VALUES LESS THAN (100)); |
INSERT INTO t VALUES (),(),(); |
SET max_session_mem_used=8192,sql_buffer_result=ON; |
SELECT 1 FROM t; |
SELECT 1 FROM t WHERE b=0; |
Leads to:
|
CS 12.2.0 fd15fd2765b53d0c070dd01d86fb231024b8f284 (Debug, Clang 21.1.3-20250923) Build 10/11/2025 |
mariadbd: /test/12.2_dbg/sql/field.cc:4623: virtual longlong Field_long::val_int(): Assertion `marked_for_read()' failed.
|
|
CS 12.2.0 fd15fd2765b53d0c070dd01d86fb231024b8f284 (Debug, Clang 21.1.3-20250923) Build 10/11/2025 |
Core was generated by `/test/MD101125-mariadb-12.2.0-linux-x86_64-dbg/bin/mariadbd --no-defaults --max'.
|
Program terminated with signal SIGABRT, Aborted.
|
Download failed: Invalid argument. Continuing without source file ./nptl/./nptl/pthread_kill.c.
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
 |
[Current thread is 1 (LWP 25841)]
|
(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 0x00007e2e7f44526e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
|
#4 0x00007e2e7f4288ff in __GI_abort () at ./stdlib/abort.c:79
|
#5 0x00007e2e7f42881b in __assert_fail_base (fmt=0x7e2e7f5d01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55eeec96ef3f "marked_for_read()", file=file@entry=0x55eeec95fe1f "/test/12.2_dbg/sql/field.cc", line=line@entry=4623, function=function@entry=0x55eeec9398bf "virtual longlong Field_long::val_int()") at ./assert/assert.c:94
|
#6 0x00007e2e7f43b507 in __assert_fail (assertion=0x55eeec96ef3f "marked_for_read()", file=0x55eeec95fe1f "/test/12.2_dbg/sql/field.cc", line=4623, function=0x55eeec9398bf "virtual longlong Field_long::val_int()")at ./assert/assert.c:103
|
#7 0x000055eeed216ae5 in Field_long::val_int (this=0x7e2d50288e30)at /test/12.2_dbg/sql/field.cc:4623
|
#8 0x000055eeed251668 in Item_field::val_int (this=0x7e2d50289c60)at /test/12.2_dbg/sql/item.cc:3554
|
#9 0x000055eeed67b73e in part_val_int (item_expr=0x7e2d50289c60, result=0x7e2e7c1ae7f0) at /test/12.2_dbg/sql/sql_partition.cc:2817
|
#10 0x000055eeed679f74 in get_partition_id_range (part_info=0x7e2d50289a10, part_id=0x7e2d50287990, func_value=0x7e2e7c1ae848)at /test/12.2_dbg/sql/sql_partition.cc:3534
|
#11 0x000055eeed66fba0 in get_full_part_id_from_key (table=0x7e2d5029e5f8, buf=0x7e2d50288cd8 <incomplete sequence \371>, key_info=0x7e2d50288fe0, key_spec=0x7e2d502e6758, part_spec=0x7e2d50287990)at /test/12.2_dbg/sql/sql_partition.cc:4062
|
#12 0x000055eeed670246 in get_partition_set (table=0x7e2d5029e5f8, buf=0x7e2d50288cd8 <incomplete sequence \371>, index=0, key_spec=0x7e2d502e6758, part_spec=0x7e2d50287990)at /test/12.2_dbg/sql/sql_partition.cc:4276
|
#13 0x000055eeedad5e64 in ha_partition::multi_range_key_create_key (this=0x7e2d502872d8, seq=0x7e2e7c1aeb20, seq_it=0x7e2e7c1aeb48)at /test/12.2_dbg/sql/ha_partition.cc:6565
|
#14 0x000055eeedad620b in ha_partition::multi_range_read_info_const (this=0x7e2d502872d8, keyno=1, seq=0x7e2e7c1aeb20, seq_init_param=0x7e2e7c1aeb48, n_ranges=0, bufsz=0x7e2e7c1af1a8, mrr_mode=0x7e2e7c1af1ac, limit=18446744073709551615, cost=0x7e2e7c1af1b8)at /test/12.2_dbg/sql/ha_partition.cc:6744
|
#15 0x000055eeed432c70 in check_quick_select (param=0x7e2e7c1af850, idx=0, limit=18446744073709551615, index_only=true, tree=0x7e2d502e93a0, update_tbl_stats=true, mrr_flags=0x7e2e7c1af1ac, bufsize=0x7e2e7c1af1a8, cost=0x7e2e7c1af1b8, is_ror_scan=0x7e2e7c1af1a7)at /test/12.2_dbg/sql/opt_range.cc:12478
|
#16 0x000055eeed415da5 in get_key_scans_params (param=0x7e2e7c1af850, tree=0x7e2d502e9318, index_read_must_be_used=false, for_range_access=true, read_time=0.0065648199999999999, limit=18446744073709551615, using_table_scan=true) at /test/12.2_dbg/sql/opt_range.cc:7987
|
#17 0x000055eeed4149df in SQL_SELECT::test_quick_select (this=0x7e2d5001db00, thd=0x7e2d50000d58, keys_to_use={static BITS_PER_ELEMENT = 64, static ARRAY_ELEMENTS = 1, static ALL_BITS_SET = 18446744073709551615, buffer = {2}}, prev_tables=0, limit=18446744073709551615, force_quick_range=false, ordered_output=false, remove_false_parts_of_where=true, only_single_index_range_scan=false, note_unusable_keys=Item_func::BITMAP_EXCEPT_ANY_EQUALITY)at /test/12.2_dbg/sql/opt_range.cc:3037
|
#18 0x000055eeed7027eb in get_quick_record_count (thd=0x7e2d50000d58, select=0x7e2d5001db00, table=0x7e2d5029e5f8, keys=0x7e2d5001c5f0, limit=18446744073709551615, quick_count=0x7e2e7c1b03a0)at /test/12.2_dbg/sql/sql_select.cc:5514
|
#19 0x000055eeed6c0f4a in make_join_statistics (join=0x7e2d5001ba00, tables_list=@0x7e2d5001a190: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x7e2d5001c1c8, last = 0x7e2d5001c1c8, elements = 1}, <No data fields>}, keyuse_array=0x7e2d5001bd60) at /test/12.2_dbg/sql/sql_select.cc:6248
|
#20 0x000055eeed6b9ae2 in JOIN::optimize_inner (this=0x7e2d5001ba00)at /test/12.2_dbg/sql/sql_select.cc:2772
|
#21 0x000055eeed6b77b6 in JOIN::optimize (this=0x7e2d5001ba00)at /test/12.2_dbg/sql/sql_select.cc:2025
|
#22 0x000055eeed6b0075 in mysql_select (thd=0x7e2d50000d58, tables=0x7e2d5001a528, fields=@0x7e2d5001a230: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x7e2d5001a4d8, last = 0x7e2d5001a4d8, elements = 1}, <No data fields>}, conds=0x7e2d5001ae38, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2164656896, result=0x7e2d5001b9d8, unit=0x7e2d50005178, select_lex=0x7e2d50019f78)at /test/12.2_dbg/sql/sql_select.cc:5436
|
#23 0x000055eeed6afc0d in handle_select (thd=0x7e2d50000d58, lex=0x7e2d50005098, result=0x7e2d5001b9d8, setup_tables_done_option=0)at /test/12.2_dbg/sql/sql_select.cc:636
|
#24 0x000055eeed65b93a in execute_sqlcom_select (thd=0x7e2d50000d58, all_tables=0x7e2d5001a528) at /test/12.2_dbg/sql/sql_parse.cc:6171
|
#25 0x000055eeed651db3 in mysql_execute_command (thd=0x7e2d50000d58, is_called_from_prepared_stmt=false) at /test/12.2_dbg/sql/sql_parse.cc:3951
|
#26 0x000055eeed64acf8 in mysql_parse (thd=0x7e2d50000d58, rawbuf=0x7e2d50019ee0 "SELECT 1 FROM t WHERE b=0", length=25, parser_state=0x7e2e7c1b2a00) at /test/12.2_dbg/sql/sql_parse.cc:7888
|
#27 0x000055eeed6484d9 in dispatch_command (command=COM_QUERY, thd=0x7e2d50000d58, packet=0x7e2d5000b239 "SELECT 1 FROM t WHERE b=0", packet_length=25, blocking=true) at /test/12.2_dbg/sql/sql_parse.cc:1878
|
#28 0x000055eeed64b77a in do_command (thd=0x7e2d50000d58, blocking=true)at /test/12.2_dbg/sql/sql_parse.cc:1417
|
#29 0x000055eeed83eafe in do_handle_one_connection (connect=0x55eeefa19218, put_in_cache=true) at /test/12.2_dbg/sql/sql_connect.cc:1503
|
#30 0x000055eeed83e8e1 in handle_one_connection (arg=0x55eeef9589f8)at /test/12.2_dbg/sql/sql_connect.cc:1415
|
#31 0x00007e2e7f49ca94 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#32 0x00007e2e7f529c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
|
Bug Detection Matrix |
Rel o/d Build Commit UniqueID observed
|
CS 10.6 dbg 101125 759e3523e3d832b174cf0a612704da38b2557b40 marked_for_read()|SIGABRT|Field_long::val_int|Item_field::val_int|part_val_int|get_partition_id_range
|
CS 10.6 opt 101125 759e3523e3d832b174cf0a612704da38b2557b40 No bug found
|
CS 10.11 dbg 101125 536cd151f0370216d9ba4c15f40c7037060972a5 marked_for_read()|SIGABRT|Field_long::val_int|Item_field::val_int|part_val_int|get_partition_id_range
|
CS 10.11 opt 101125 536cd151f0370216d9ba4c15f40c7037060972a5 No bug found
|
CS 11.4 dbg 101125 a1bb5c94fda453baa99e57e3927eaa7cd3c8bafe marked_for_read()|SIGABRT|Field_long::val_int|Item_field::val_int|part_val_int|get_partition_id_range
|
CS 11.4 opt 101125 a1bb5c94fda453baa99e57e3927eaa7cd3c8bafe No bug found
|
CS 11.8 dbg 101125 e0428264d0095472c015eb58c46be68ca1a320ee marked_for_read()|SIGABRT|Field_long::val_int|Item_field::val_int|part_val_int|get_partition_id_range
|
CS 11.8 opt 101125 e0428264d0095472c015eb58c46be68ca1a320ee No bug found
|
CS 12.2 dbg 101125 fd15fd2765b53d0c070dd01d86fb231024b8f284 marked_for_read()|SIGABRT|Field_long::val_int|Item_field::val_int|part_val_int|get_partition_id_range
|
CS 12.2 opt 101125 fd15fd2765b53d0c070dd01d86fb231024b8f284 No bug found
|
CS 12.3 dbg 091225 e85bc659188be021897e8578aec42becfbb58c27 marked_for_read()|SIGABRT|Field_long::val_int|Item_field::val_int|part_val_int|get_partition_id_range
|
CS 12.3 opt 091225 e85bc659188be021897e8578aec42becfbb58c27 No bug found
|
ES 10.6 dbg 101125 f0d4d34fb0314b03fddb71fb9dbde372744a8c13 marked_for_read()|SIGABRT|Field_long::val_int|Item_field::val_int|part_val_int|get_partition_id_range
|
ES 10.6 opt 101125 f0d4d34fb0314b03fddb71fb9dbde372744a8c13 No bug found
|
ES 11.4 dbg 101125 b81ec4b57a5ddce88b8e2b2d16b64625ffdaa0e6 marked_for_read()|SIGABRT|Field_long::val_int|Item_field::val_int|part_val_int|get_partition_id_range
|
ES 11.4 opt 101125 b81ec4b57a5ddce88b8e2b2d16b64625ffdaa0e6 No bug found
|
ES 11.8 dbg 101125 db36e8fb3bcdae26dd0acdcb2b52f7f4eb014df6 marked_for_read()|SIGABRT|Field_long::val_int|Item_field::val_int|part_val_int|get_partition_id_range
|
ES 11.8 opt 101125 db36e8fb3bcdae26dd0acdcb2b52f7f4eb014df6 No bug found
|
MS 5.5 dbg 070123 bac287c315b1792e7ae33f91add6a60292f9bae8 No bug found
|
MS 5.5 opt 070123 bac287c315b1792e7ae33f91add6a60292f9bae8 No bug found
|
MS 5.6 dbg 070123 dab95781a1244104d6b87020ac2fc4d190ba2946 No bug found
|
MS 5.6 opt 070123 dab95781a1244104d6b87020ac2fc4d190ba2946 No bug found
|
MS 5.7 dbg 070525 f7680e98b6bbe3500399fbad465d08a6b75d7a5c No bug found
|
MS 5.7 opt 070525 f7680e98b6bbe3500399fbad465d08a6b75d7a5c No bug found
|
MS 8.0 dbg 060224 49ef33f7edadef3ae04665e73d1babd40179a4f1 No bug found
|
MS 8.0 opt 060224 49ef33f7edadef3ae04665e73d1babd40179a4f1 No bug found
|
MS 9.1 dbg 211024 61a3a1d8ef15512396b4c2af46e922a19bf2b174 No bug found
|
MS 9.1 opt 211024 61a3a1d8ef15512396b4c2af46e922a19bf2b174 No bug found
|
Please note that UBSAN builds give a different stack (which seems a bit concerning):
|
CS 12.2.0 fd15fd2765b53d0c070dd01d86fb231024b8f284 (Debug, UBASAN, Clang 21.1.3-20250923) Build 10/11/2025 |
mariadbd: /test/12.2_dbg_san/sql/field.cc:4623: virtual longlong Field_long::val_int(): Assertion `marked_for_read()' failed.
|
|
CS 12.2.0 fd15fd2765b53d0c070dd01d86fb231024b8f284 (Debug, UBASAN, Clang 21.1.3-20250923) Build 10/11/2025 |
Core was generated by `/test/UBASAN_MD101125-mariadb-12.2.0-linux-x86_64-dbg/bin/mariadbd --no-default'.
|
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 38862)]
|
(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=6)at ./nptl/pthread_kill.c:89
|
#3 0x000058b953bf60e0 in handle_fatal_signal (sig=<optimized out>)at /test/12.2_dbg_san/sql/signal_handler.cc:298
|
#4 <signal handler called>
|
#5 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
#6 __pthread_kill_internal (signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:78
|
#7 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ./nptl/pthread_kill.c:89
|
#8 0x00007ea4b964526e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
|
#9 0x00007ea4b96288ff in __GI_abort () at ./stdlib/abort.c:79
|
#10 0x00007ea4b962881b in __assert_fail_base (fmt=0x7ea4b97d01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x58b952442720 <str> "marked_for_read()", file=file@entry=0x58b95243ee20 "/test/12.2_dbg_san/sql/field.cc", line=line@entry=4623, function=function@entry=0x58b952444e20 <__PRETTY_FUNCTION__._ZN10Field_long7val_intEv> "virtual longlong Field_long::val_int()") at ./assert/assert.c:94
|
#11 0x00007ea4b963b507 in __assert_fail (assertion=0x58b952442720 <str> "marked_for_read()", file=0x58b95243ee20 "/test/12.2_dbg_san/sql/field.cc", line=4623, function=0x58b952444e20 <__PRETTY_FUNCTION__._ZN10Field_long7val_intEv> "virtual longlong Field_long::val_int()") at ./assert/assert.c:103
|
#12 0x000058b953585eaf in Field_long::val_int (this=0x7cf4b8520cd8)at /test/12.2_dbg_san/sql/field.cc:4623
|
#13 0x000058b95451ad1c in part_val_int (item_expr=0x7cb4b8683f60, result=<optimized out>) at /test/12.2_dbg_san/sql/sql_partition.cc:2817
|
#14 0x000058b95451031d in get_partition_id_range (part_info=0x7cb4b8683d18, part_id=<optimized out>, func_value=<optimized out>)at /test/12.2_dbg_san/sql/sql_partition.cc:3534
|
#15 0x000058b9544de20c in get_full_part_id_from_key (table=0x7c34b84bd398, buf=<optimized out>, key_info=<optimized out>, key_spec=<optimized out>, part_spec=<optimized out>) at /test/12.2_dbg_san/sql/sql_partition.cc:4062
|
#16 0x000058b9544e0a20 in get_partition_set (table=0x7c34b84bd398, buf=<optimized out>, index=<optimized out>, key_spec=<optimized out>, part_spec=<optimized out>) at /test/12.2_dbg_san/sql/sql_partition.cc:4276
|
#17 0x000058b955683421 in ha_partition::multi_range_key_create_key (this=this@entry=0x7cf4b851f148, seq=seq@entry=0x7aa3ca793dd0, seq_it=0x7aa3ca793820) at /test/12.2_dbg_san/sql/ha_partition.cc:6565
|
#18 0x000058b955685a77 in ha_partition::multi_range_read_info_const (this=0x7cf4b851f148, keyno=<optimized out>, seq=<optimized out>, seq_init_param=<optimized out>, n_ranges=<optimized out>, bufsz=<optimized out>, mrr_mode=<optimized out>, limit=<optimized out>, cost=<optimized out>) at /test/12.2_dbg_san/sql/ha_partition.cc:6744
|
#19 0x000058b953c5fce6 in check_quick_select (param=0x7aa3ca8cd320, idx=0, limit=18446744073709551615, index_only=true, tree=0x7cb4b86a0250, update_tbl_stats=255, mrr_flags=0x7aa3ca793ef0, bufsize=0x7aa3ca793f00, cost=0x7aa3ca793e80, is_ror_scan=<optimized out>)at /test/12.2_dbg_san/sql/opt_range.cc:12478
|
#20 get_key_scans_params (param=0x7aa3ca8cd320, tree=<optimized out>, index_read_must_be_used=<optimized out>, for_range_access=<optimized out>, read_time=0.0065648199999999999, limit=<optimized out>, using_table_scan=true) at /test/12.2_dbg_san/sql/opt_range.cc:7987
|
#21 0x000058b953c5afa4 in SQL_SELECT::test_quick_select (this=0x7d74b85961b8, thd=<optimized out>, keys_to_use={static BITS_PER_ELEMENT = 64, static ARRAY_ELEMENTS = 1, static ALL_BITS_SET = 18446744073709551615, buffer = {2}}, prev_tables=<optimized out>, limit=<optimized out>, force_quick_range=<optimized out>, ordered_output=<optimized out>, remove_false_parts_of_where=<optimized out>, only_single_index_range_scan=<optimized out>, note_unusable_keys=<optimized out>)at /test/12.2_dbg_san/sql/opt_range.cc:3037
|
#22 0x000058b95477ca75 in get_quick_record_count (thd=0x7d64b85d0218, select=<optimized out>, table=<optimized out>, keys=<optimized out>, limit=<optimized out>, quick_count=<optimized out>)at /test/12.2_dbg_san/sql/sql_select.cc:5514
|
#23 0x000058b95462bf9a in make_join_statistics (join=0x7d74b8594020, tables_list=<optimized out>, keyuse_array=<optimized out>)at /test/12.2_dbg_san/sql/sql_select.cc:6248
|
#24 0x000058b954605b5d in JOIN::optimize_inner (this=0x7d74b8594020)at /test/12.2_dbg_san/sql/sql_select.cc:2772
|
#25 0x000058b9545ff2e7 in JOIN::optimize (this=this@entry=0x7d74b8594020)at /test/12.2_dbg_san/sql/sql_select.cc:2025
|
#26 0x000058b9545de2a7 in mysql_select (thd=thd@entry=0x7d64b85d0218, tables=<optimized out>, fields=<optimized out>, conds=<optimized out>, og_num=<optimized out>, order=<optimized out>, group=0x0, having=0x0, proc_param=0x0, select_options=<optimized out>, result=0x7d74b8593ff0, unit=0x7d64b85d4638, select_lex=0x7d74b85924e8)at /test/12.2_dbg_san/sql/sql_select.cc:5436
|
#27 0x000058b9545dd238 in handle_select (thd=thd@entry=0x7d64b85d0218, lex=lex@entry=0x7d64b85d4558, result=result@entry=0x7d74b8593ff0, setup_tables_done_option=setup_tables_done_option@entry=0)at /test/12.2_dbg_san/sql/sql_select.cc:636
|
#28 0x000058b95448fd14 in execute_sqlcom_select (thd=0x7d64b85d0218, all_tables=<optimized out>) at /test/12.2_dbg_san/sql/sql_parse.cc:6171
|
#29 0x000058b95447a9a4 in mysql_execute_command (thd=0x7d64b85d0218, is_called_from_prepared_stmt=<optimized out>)at /test/12.2_dbg_san/sql/sql_parse.cc:3951
|
#30 0x000058b9544541e9 in mysql_parse (thd=thd@entry=0x7d64b85d0218, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7aa3ca9577c0)at /test/12.2_dbg_san/sql/sql_parse.cc:7888
|
#31 0x000058b95444d9a4 in dispatch_command (command=<optimized out>, thd=0x7d64b85d0218, packet=<optimized out>, packet_length=<optimized out>, blocking=<optimized out>) at /test/12.2_dbg_san/sql/sql_parse.cc:1878
|
#32 0x000058b95445662b in do_command (thd=thd@entry=0x7d64b85d0218, blocking=<optimized out>) at /test/12.2_dbg_san/sql/sql_parse.cc:1417
|
#33 0x000058b954c63b3d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x7b24b84259b8, put_in_cache=<optimized out>)at /test/12.2_dbg_san/sql/sql_connect.cc:1503
|
#34 0x000058b954c63646 in handle_one_connection (arg=0x7b24b84259b8)at /test/12.2_dbg_san/sql/sql_connect.cc:1415
|
#35 0x000058b9533b2b4b in asan_thread_start(void*) ()
|
#36 0x00007ea4b969ca94 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#37 0x00007ea4b9729c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
UBASAN Builds setup:
Compiled with a recent version of Clang and LLVM. Ubuntu instructions for Clang/LLVM 18:
|
# Note: It is strongly recommended to uninstall all old Clang & LLVM packages (ref dpkg --list | grep -iE 'clang|llvm' and use apt purge and dpkg --purge to remove the packages), before installing Clang/LLVM 18
|
sudo apt install clang llvm-18 llvm-18-linker-tools llvm-18-runtime llvm-18-tools llvm-18-dev libstdc++-14-dev llvm-dev lld-18
|
Compiled with: "-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C{,XX}_FLAGS='-march=native -mtune=native'" and:
|
-DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON -DWITH_UBSAN=ON -DWSREP_LIB_WITH_ASAN=ON
|
Set before execution:
|
export UBSAN_OPTIONS=print_stacktrace=1:report_error_type=1 # And you may also want to supress UBSAN startup issues using 'suppressions=UBSAN.filter' in UBSAN_OPTIONS. For an example of UBSAN.filter, which includes current startup issues see: https://github.com/mariadb-corporation/mariadb-qa/blob/master/UBSAN.filter
|
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.6 dbg 101125 759e3523e3d832b174cf0a612704da38b2557b40 marked_for_read()|SIGABRT|Field_long::val_int|part_val_int|get_partition_id_range|get_full_part_id_from_key
|
CS 10.6 opt 101125 759e3523e3d832b174cf0a612704da38b2557b40 No bug found
|
CS 10.11 dbg 101125 536cd151f0370216d9ba4c15f40c7037060972a5 marked_for_read()|SIGABRT|Field_long::val_int|part_val_int|get_partition_id_range|get_full_part_id_from_key
|
CS 10.11 opt 101125 536cd151f0370216d9ba4c15f40c7037060972a5 No bug found
|
CS 11.4 dbg 101125 a1bb5c94fda453baa99e57e3927eaa7cd3c8bafe marked_for_read()|SIGABRT|Field_long::val_int|part_val_int|get_partition_id_range|get_full_part_id_from_key
|
CS 11.4 opt 101125 a1bb5c94fda453baa99e57e3927eaa7cd3c8bafe No bug found
|
CS 11.8 dbg 101125 e0428264d0095472c015eb58c46be68ca1a320ee marked_for_read()|SIGABRT|Field_long::val_int|part_val_int|get_partition_id_range|get_full_part_id_from_key
|
CS 11.8 opt 101125 e0428264d0095472c015eb58c46be68ca1a320ee No bug found
|
CS 12.1 dbg 101125 ba00960fdaee67a4efff6866e31f446bf486a1c2 marked_for_read()|SIGABRT|Field_long::val_int|part_val_int|get_partition_id_range|get_full_part_id_from_key
|
CS 12.1 opt 101125 ba00960fdaee67a4efff6866e31f446bf486a1c2 No bug found
|
CS 12.2 dbg 101125 fd15fd2765b53d0c070dd01d86fb231024b8f284 marked_for_read()|SIGABRT|Field_long::val_int|part_val_int|get_partition_id_range|get_full_part_id_from_key
|
CS 12.2 opt 101125 fd15fd2765b53d0c070dd01d86fb231024b8f284 No bug found
|
CS 12.3 dbg 091225 e85bc659188be021897e8578aec42becfbb58c27 marked_for_read()|SIGABRT|Field_long::val_int|part_val_int|get_partition_id_range|get_full_part_id_from_key
|
CS 12.3 opt 091225 e85bc659188be021897e8578aec42becfbb58c27 No bug found
|
ES 10.6 dbg 101125 f0d4d34fb0314b03fddb71fb9dbde372744a8c13 marked_for_read()|SIGABRT|Field_long::val_int|part_val_int|get_partition_id_range|get_full_part_id_from_key
|
ES 10.6 opt 101125 f0d4d34fb0314b03fddb71fb9dbde372744a8c13 No bug found
|
ES 11.4 dbg 101125 b81ec4b57a5ddce88b8e2b2d16b64625ffdaa0e6 marked_for_read()|SIGABRT|Field_long::val_int|part_val_int|get_partition_id_range|get_full_part_id_from_key
|
ES 11.4 opt 101125 b81ec4b57a5ddce88b8e2b2d16b64625ffdaa0e6 No bug found
|
ES 11.8 dbg 101125 db36e8fb3bcdae26dd0acdcb2b52f7f4eb014df6 marked_for_read()|SIGABRT|Field_long::val_int|part_val_int|get_partition_id_range|get_full_part_id_from_key
|
ES 11.8 opt 101125 db36e8fb3bcdae26dd0acdcb2b52f7f4eb014df6 No bug found
|