Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
10.6, 10.11, 11.4, 11.8, 10.5(EOL), 12.0(EOL)
Description
INSTALL SONAME 'ha_rocksdb'; |
SET @@MAX_STATEMENT_TIME=0.0001; |
CREATE TABLE t1 (a INT,b INT,KEY(a)) ENGINE=ROCKSDB PARTITION BY KEY(a) PARTITIONS 2; |
CREATE TABLE t2 (c INT); |
CHECK TABLE t1; |
CHECK TABLE t1; |
CHECK TABLE t1; # ... Repeat until an error, corruption, assert or SIGSEGV is observed. Even if corrupted, later CHECK TABLES may show "OK" |
CLI Exec works better than SOURCE-ing, likely due to small timing differences.
Leads to various outcome (errors, corruption indications, assert or SIGSEGV's):
CS 11.4.6 4a701e8ce4a178faf955641caf59fc13fcc718e9 (Debug) Build 12/04/2025 |
11.4.6-dbg>CHECK TABLE t1;
|
+---------+-------+----------+----------+
|
| Table | Op | Msg_type | Msg_text |
|
+---------+-------+----------+----------+
|
| test.t1 | check | status | OK |
|
+---------+-------+----------+----------+
|
1 row in set (0.000 sec)
|
|
11.4.6-dbg>CHECK TABLE t1;
|
+---------+-------+----------+-----------------------------------------------+
|
| Table | Op | Msg_type | Msg_text |
|
+---------+-------+----------+-----------------------------------------------+
|
| test.t1 | check | error | Partition p1 returned error |
|
| test.t1 | check | error | Unknown - internal error 188 during operation |
|
+---------+-------+----------+-----------------------------------------------+
|
2 rows in set (0.000 sec)
|
|
11.4.6-dbg>CHECK TABLE t1;
|
+---------+-------+----------+---------------------------------------------------------------+
|
| Table | Op | Msg_type | Msg_text |
|
+---------+-------+----------+---------------------------------------------------------------+
|
| test.t1 | check | Error | Query execution was interrupted (max_statement_time exceeded) |
|
| test.t1 | check | error | Corrupt |
|
+---------+-------+----------+---------------------------------------------------------------+
|
2 rows in set (0.000 sec)
|
|
11.4.6-dbg>CHECK TABLE t1;
|
+---------+-------+----------+----------+
|
| Table | Op | Msg_type | Msg_text |
|
+---------+-------+----------+----------+
|
| test.t1 | check | status | OK |
|
+---------+-------+----------+----------+
|
1 row in set (0.000 sec)
|
|
11.4.6-dbg>CHECK TABLE t1;CHECK TABLE t1;
|
+---------+-------+----------+---------------------------------------------------------------+
|
| Table | Op | Msg_type | Msg_text |
|
+---------+-------+----------+---------------------------------------------------------------+
|
| test.t1 | check | Error | Query execution was interrupted (max_statement_time exceeded) |
|
| test.t1 | check | error | Corrupt |
|
+---------+-------+----------+---------------------------------------------------------------+
|
2 rows in set (0.000 sec)
|
|
+---------+-------+----------+-----------------------------+
|
| Table | Op | Msg_type | Msg_text |
|
+---------+-------+----------+-----------------------------+
|
| test.t1 | check | error | Partition p0 returned error |
|
| test.t1 | check | error | Corrupt |
|
+---------+-------+----------+-----------------------------+
|
2 rows in set (0.000 sec)
|
|
11.4.6-dbg>CHECK TABLE t1;
|
+---------+-------+----------+---------------------------------------------------------------+
|
| Table | Op | Msg_type | Msg_text |
|
+---------+-------+----------+---------------------------------------------------------------+
|
| test.t1 | check | Error | Query execution was interrupted (max_statement_time exceeded) |
|
| test.t1 | check | error | Corrupt |
|
+---------+-------+----------+---------------------------------------------------------------+
|
2 rows in set (0.001 sec)
|
|
11.4.6-dbg>CHECK TABLE t1;
|
ERROR 2026 (HY000): TLS/SSL error: The TLS connection was non-properly terminated. # SIGSEGV Crash
|
SIGSEV's seen:
CS 11.4.6 4a701e8ce4a178faf955641caf59fc13fcc718e9 (Debug) Build 12/04/2025 |
Core was generated by `/test/MD120425-mariadb-11.4.6-linux-x86_64-dbg/bin/mariadbd --no-defaults --max'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 0x0000760aa220aa9c in myrocks::ha_rocksdb::index_first (this=0x7609e425b080, buf=0x7609e425b8b8 "\377")at /test/11.4_dbg/storage/rocksdb/ha_rocksdb.cc:9219
|
|
[Current thread is 1 (LWP 3991647)]
|
(gdb) bt
|
#0 0x0000760aa220aa9c in myrocks::ha_rocksdb::index_first (this=0x7609e425b080, buf=0x7609e425b8b8 "\377")at /test/11.4_dbg/storage/rocksdb/ha_rocksdb.cc:9219
|
#1 0x0000760aa22083d4 in myrocks::ha_rocksdb::check (this=0x7609e425b080, thd=0x7609e4000d58, check_opt=0x7609e4006330)at /test/11.4_dbg/storage/rocksdb/ha_rocksdb.cc:8841
|
#2 0x00005569b0236c58 in handler::ha_check (this=0x7609e425b080, thd=0x7609e4000d58, check_opt=0x7609e4006330)at /test/11.4_dbg/sql/handler.cc:5309
|
#3 0x00005569b05847eb in ha_partition::handle_opt_part (this=0x7609e4259f88, thd=0x7609e4000d58, check_opt=0x7609e4006330, part_id=1, flag=3)at /test/11.4_dbg/sql/ha_partition.cc:1394
|
#4 0x00005569b0583ae0 in ha_partition::handle_opt_partitions (this=0x7609e4259f88, thd=0x7609e4000d58, check_opt=0x7609e4006330, flag=3)at /test/11.4_dbg/sql/ha_partition.cc:1571
|
#5 0x00005569b05846aa in ha_partition::check (this=0x7609e4259f88, thd=0x7609e4000d58, check_opt=0x7609e4006330)at /test/11.4_dbg/sql/ha_partition.cc:1302
|
#6 0x00005569b0236c58 in handler::ha_check (this=0x7609e4259f88, thd=0x7609e4000d58, check_opt=0x7609e4006330)at /test/11.4_dbg/sql/handler.cc:5309
|
#7 0x00005569b0014491 in mysql_admin_table (thd=0x7609e4000d58, tables=0x7609e4019b78, check_opt=0x7609e4006330, operator_name=0x5569b15e8bb8 <msg_check>, lock_type=TL_READ_NO_INSERT, org_open_for_modify=false, repair_table_use_frm=false, extra_open_options=32, prepare_func=0x0, operator_func=(int (handler::*)(handler * const, THD *, HA_CHECK_OPT *)) 0x5569b0236a80 <handler::ha_check(THD*, st_ha_check_opt*)>, view_operator_func=0x5569aff92e30 <view_check(THD*, TABLE_LIST*, st_ha_check_opt*)>, is_cmd_replicated=false) at /test/11.4_dbg/sql/sql_admin.cc:915
|
#8 0x00005569b001702c in Sql_cmd_check_table::execute (this=0x7609e401a288, thd=0x7609e4000d58) at /test/11.4_dbg/sql/sql_admin.cc:1592
|
#9 0x00005569afe2b482 in mysql_execute_command (thd=0x7609e4000d58, is_called_from_prepared_stmt=false) at /test/11.4_dbg/sql/sql_parse.cc:5878
|
#10 0x00005569afe1a744 in mysql_parse (thd=0x7609e4000d58, rawbuf=0x7609e4019ac0 "CHECK TABLE t1", length=14, parser_state=0x760b0dacda30) at /test/11.4_dbg/sql/sql_parse.cc:7907
|
#11 0x00005569afe17bf4 in dispatch_command (command=COM_QUERY, thd=0x7609e4000d58, packet=0x7609e400afd9 "", packet_length=14, blocking=true) at /test/11.4_dbg/sql/sql_parse.cc:1904
|
#12 0x00005569afe1b2f3 in do_command (thd=0x7609e4000d58, blocking=true)at /test/11.4_dbg/sql/sql_parse.cc:1417
|
#13 0x00005569afffd619 in do_handle_one_connection (connect=0x5569b4a9f228, put_in_cache=true) at /test/11.4_dbg/sql/sql_connect.cc:1408
|
#14 0x00005569afffd3b2 in handle_one_connection (arg=0x5569b4b02cd8)at /test/11.4_dbg/sql/sql_connect.cc:1320
|
#15 0x0000760b14a9ca94 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#16 0x0000760b14b29c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
CS 11.4.6 4a701e8ce4a178faf955641caf59fc13fcc718e9 (Debug) Build 12/04/2025 |
mariadbd: /test/11.4_dbg/storage/rocksdb/ha_rocksdb.cc:3004: rocksdb::Iterator *myrocks::Rdb_transaction::get_iterator(rocksdb::ColumnFamilyHandle *const, bool, bool, const rocksdb::Slice &, const rocksdb::Slice &, bool, bool): Assertion `column_family != nullptr' failed.
|
CS 10.6.22 690b2cf776faa2e1a6832077cec2246c86cd00bf (Debug) Build 12/04/2025 |
Core was generated by `/test/MD120425-mariadb-10.6.22-linux-x86_64-dbg/bin/mariadbd --no-defaults --ma'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 0x00007dac7a41c7cd in myrocks::ha_rocksdb::can_use_bloom_filter (this=0x7dabd4071e68, thd=0x7dabd4000d58, kd=..., eq_cond=..., use_all_keys=false) at /test/10.6_dbg/storage/rocksdb/ha_rocksdb.cc:13944
|
|
[Current thread is 1 (LWP 265132)]
|
(gdb) bt
|
#0 0x00007dac7a41c7cd in myrocks::ha_rocksdb::can_use_bloom_filter (this=0x7dabd4071e68, thd=0x7dabd4000d58, kd=@0x5701cedd6c60: {static CF_FLAGS_TO_IGNORE = 4, m_index_number = 0, m_index_number_storage_form = "\000\000\000", m_cf_handle = 0x0, m_index_dict_version = 2, m_index_type = 0 '\000', m_kv_format_version = 0, m_is_reverse_cf = false, m_is_per_partition_cf = false, m_name = "", m_stats = {m_gl_index_id = {cf_id = 3, index_id = 0}, m_data_size = 0, m_rows = 0, m_actual_disk_size = 95665258596755, m_entry_deletes = 95665258598670, m_entry_single_deletes = 1305, m_entry_merges = 0, m_entry_others = 0, m_distinct_keys_per_prefix = std::vector of length -26, capacity 17272119001076 = {<error reading variable: Cannot access memory at address 0xd3>, m_index_flags_bitmap = 0, m_total_index_flags_length = 0, m_ttl_rec_offset = 0, m_ttl_duration = 2, m_ttl_column = "", m_pk_key_parts = 3, m_pk_part_no = 0x0, m_pack_info = 0x0, m_keyno = 3452012947, m_key_parts = 22273, m_ttl_pk_key_part_offset = 3452014895, m_ttl_field_index = 22273, m_prefix_extractor = std::shared_ptr<const rocksdb::SliceTransform> (empty) = { get() = 0xe45 }, m_maxlength = 0, m_mutex = {m_mutex = {global = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 39 times>, __align = 0}, mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = -810081944, __spins = 22273, __elision = 0, __list = {__prev = 0xa00000000, __next = 0x80000000a}}, __size = '\000' <repeats 16 times>, "h!\267\317\001W\000\000\000\000\000\000\n\000\000\000\n\000\000\000\b\000\000", __align = 0}, file = 0x0, name = 0x0, line = 0, count = 1, create_flags = 0, active_flags = 0, id = 2, thread = 0, locked_mutex = 0x0, used_mutex = 0x0, prev = 0x0, next = 0x3}, m_psi = 0x0}}, eq_cond=@0x7dacdbffa908: {data_ = 0x7dabd4265608 "", size_ = 4}, use_all_keys=false) at /test/10.6_dbg/storage/rocksdb/ha_rocksdb.cc:13944
|
#1 0x00007dac7a40cc46 in myrocks::ha_rocksdb::check_bloom_and_set_bounds (this=0x7dabd4071e68, thd=0x7dabd4000d58, kd=@0x5701cedd6c60: {static CF_FLAGS_TO_IGNORE = 4, m_index_number = 0, m_index_number_storage_form = "\000\000\000", m_cf_handle = 0x0, m_index_dict_version = 2, m_index_type = 0 '\000', m_kv_format_version = 0, m_is_reverse_cf = false, m_is_per_partition_cf = false, m_name = "", m_stats = {m_gl_index_id = {cf_id = 3, index_id = 0}, m_data_size = 0, m_rows = 0, m_actual_disk_size = 95665258596755, m_entry_deletes = 95665258598670, m_entry_single_deletes = 1305, m_entry_merges = 0, m_entry_others = 0, m_distinct_keys_per_prefix = std::vector of length -26, capacity 17272119001076 = {<error reading variable: Cannot access memory at address 0xd3>, m_index_flags_bitmap = 0, m_total_index_flags_length = 0, m_ttl_rec_offset = 0, m_ttl_duration = 2, m_ttl_column = "", m_pk_key_parts = 3, m_pk_part_no = 0x0, m_pack_info = 0x0, m_keyno = 3452012947, m_key_parts = 22273, m_ttl_pk_key_part_offset = 3452014895, m_ttl_field_index = 22273, m_prefix_extractor = std::shared_ptr<const rocksdb::SliceTransform> (empty) = { get() = 0xe45 }, m_maxlength = 0, m_mutex = {m_mutex = {global = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 39 times>, __align = 0}, mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = -810081944, __spins = 22273, __elision = 0, __list = {__prev = 0xa00000000, __next = 0x80000000a}}, __size = '\000' <repeats 16 times>, "h!\267\317\001W\000\000\000\000\000\000\n\000\000\000\n\000\000\000\b\000\000", __align = 0}, file = 0x0, name = 0x0, line = 0, count = 1, create_flags = 0, active_flags = 0, id = 2, thread = 0, locked_mutex = 0x0, used_mutex = 0x0, prev = 0x0, next = 0x3}, m_psi = 0x0}}, eq_cond=@0x7dacdbffa908: {data_ = 0x7dabd4265608 "", size_ = 4}, use_all_keys=false, bound_len=4, lower_bound=0x7dabd42664c8 "", upper_bound=0x7dabd42408d8 "", lower_bound_slice=0x7dabd4072440, upper_bound_slice=0x7dabd4072450)at /test/10.6_dbg/storage/rocksdb/ha_rocksdb.cc:13888
|
#2 0x00007dac7a407e0a in myrocks::ha_rocksdb::setup_scan_iterator (this=0x7dabd4071e68, kd=@0x5701cedd6c60: {static CF_FLAGS_TO_IGNORE = 4, m_index_number = 0, m_index_number_storage_form = "\000\000\000", m_cf_handle = 0x0, m_index_dict_version = 2, m_index_type = 0 '\000', m_kv_format_version = 0, m_is_reverse_cf = false, m_is_per_partition_cf = false, m_name = "", m_stats = {m_gl_index_id = {cf_id = 3, index_id = 0}, m_data_size = 0, m_rows = 0, m_actual_disk_size = 95665258596755, m_entry_deletes = 95665258598670, m_entry_single_deletes = 1305, m_entry_merges = 0, m_entry_others = 0, m_distinct_keys_per_prefix = std::vector of length -26, capacity 17272119001076 = {<error reading variable: Cannot access memory at address 0xd3>, m_index_flags_bitmap = 0, m_total_index_flags_length = 0, m_ttl_rec_offset = 0, m_ttl_duration = 2, m_ttl_column = "", m_pk_key_parts = 3, m_pk_part_no = 0x0, m_pack_info = 0x0, m_keyno = 3452012947, m_key_parts = 22273, m_ttl_pk_key_part_offset = 3452014895, m_ttl_field_index = 22273, m_prefix_extractor = std::shared_ptr<const rocksdb::SliceTransform> (empty) = { get() = 0xe45 }, m_maxlength = 0, m_mutex = {m_mutex = {global = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 39 times>, __align = 0}, mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = -810081944, __spins = 22273, __elision = 0, __list = {__prev = 0xa00000000, __next = 0x80000000a}}, __size = '\000' <repeats 16 times>, "h!\267\317\001W\000\000\000\000\000\000\n\000\000\000\n\000\000\000\b\000\000", __align = 0}, file = 0x0, name = 0x0, line = 0, count = 1, create_flags = 0, active_flags = 0, id = 2, thread = 0, locked_mutex = 0x0, used_mutex = 0x0, prev = 0x0, next = 0x3}, m_psi = 0x0}}, slice=0x7dacdbffa980, use_all_keys=false, eq_cond_len=4)at /test/10.6_dbg/storage/rocksdb/ha_rocksdb.cc:10528
|
#3 0x00007dac7a40b058 in myrocks::ha_rocksdb::index_first_intern (this=0x7dabd4071e68, buf=0x7dabd4072690 "\377")at /test/10.6_dbg/storage/rocksdb/ha_rocksdb.cc:9296
|
#4 0x00007dac7a40aba8 in myrocks::ha_rocksdb::index_first (this=0x7dabd4071e68, buf=0x7dabd4072690 "\377")at /test/10.6_dbg/storage/rocksdb/ha_rocksdb.cc:9215
|
#5 0x00007dac7a4084b5 in myrocks::ha_rocksdb::check (this=0x7dabd4071e68, thd=0x7dabd4000d58, check_opt=0x7dabd4006250)at /test/10.6_dbg/storage/rocksdb/ha_rocksdb.cc:8835
|
#6 0x00005701ccfafab8 in handler::ha_check (this=0x7dabd4071e68, thd=0x7dabd4000d58, check_opt=0x7dabd4006250)at /test/10.6_dbg/sql/handler.cc:5116
|
#7 0x00005701cd32918b in ha_partition::handle_opt_part (this=0x7dabd4070d68, thd=0x7dabd4000d58, check_opt=0x7dabd4006250, part_id=1, flag=3)at /test/10.6_dbg/sql/ha_partition.cc:1394
|
#8 0x00005701cd328480 in ha_partition::handle_opt_partitions (this=0x7dabd4070d68, thd=0x7dabd4000d58, check_opt=0x7dabd4006250, flag=3)at /test/10.6_dbg/sql/ha_partition.cc:1571
|
#9 0x00005701cd32904a in ha_partition::check (this=0x7dabd4070d68, thd=0x7dabd4000d58, check_opt=0x7dabd4006250)at /test/10.6_dbg/sql/ha_partition.cc:1302
|
#10 0x00005701ccfafab8 in handler::ha_check (this=0x7dabd4070d68, thd=0x7dabd4000d58, check_opt=0x7dabd4006250)at /test/10.6_dbg/sql/handler.cc:5116
|
#11 0x00005701ccdc3385 in mysql_admin_table (thd=0x7dabd4000d58, tables=0x7dabd4013418, check_opt=0x7dabd4006250, operator_name=0x5701ce5ab120 <msg_check>, lock_type=TL_READ_NO_INSERT, org_open_for_modify=false, repair_table_use_frm=false, extra_open_options=32, prepare_func=0x0, operator_func=(int (handler::*)(handler * const, THD *, HA_CHECK_OPT *)) 0x5701ccfaf8c0 <handler::ha_check(THD*, st_ha_check_opt*)>, view_operator_func=0x5701ccd442a0 <view_check(THD*, TABLE_LIST*, st_ha_check_opt*)>, is_cmd_replicated=false) at /test/10.6_dbg/sql/sql_admin.cc:918
|
#12 0x00005701ccdc5ebc in Sql_cmd_check_table::execute (this=0x7dabd4013b20, thd=0x7dabd4000d58) at /test/10.6_dbg/sql/sql_admin.cc:1591
|
#13 0x00005701ccc0263b in mysql_execute_command (thd=0x7dabd4000d58, is_called_from_prepared_stmt=false) at /test/10.6_dbg/sql/sql_parse.cc:6167
|
#14 0x00005701ccbf0414 in mysql_parse (thd=0x7dabd4000d58, rawbuf=0x7dabd4013360 "CHECK TABLE t1", length=14, parser_state=0x7dacdbffda48) at /test/10.6_dbg/sql/sql_parse.cc:8209
|
#15 0x00005701ccbed8d4 in dispatch_command (command=COM_QUERY, thd=0x7dabd4000d58, packet=0x7dabd400ade9 "", packet_length=14, blocking=true) at /test/10.6_dbg/sql/sql_parse.cc:1908
|
#16 0x00005701ccbf0fc3 in do_command (thd=0x7dabd4000d58, blocking=true)at /test/10.6_dbg/sql/sql_parse.cc:1421
|
#17 0x00005701ccdad3e9 in do_handle_one_connection (connect=0x5701cfcc0a58, put_in_cache=true) at /test/10.6_dbg/sql/sql_connect.cc:1386
|
#18 0x00005701ccdad182 in handle_one_connection (arg=0x5701cfdc7ab8)at /test/10.6_dbg/sql/sql_connect.cc:1298
|
#19 0x00007dace089ca94 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#20 0x00007dace0929c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
Assert seen:
CS 11.4.6 4a701e8ce4a178faf955641caf59fc13fcc718e9 (Debug) Build 12/04/2025 |
Core was generated by `/test/MD120425-mariadb-11.4.6-linux-x86_64-dbg/bin/mariadbd --no-defaults --max'.
|
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 3978727)]
|
(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 0x0000734eeda4526e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
|
#4 0x0000734eeda288ff in __GI_abort () at ./stdlib/abort.c:79
|
#5 0x0000734eeda2881b in __assert_fail_base (fmt=0x734eedbd01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x734e7ab8d82f "column_family != nullptr", file=file@entry=0x734e7ab87965 "/test/11.4_dbg/storage/rocksdb/ha_rocksdb.cc", line=line@entry=3004, function=function@entry=0x734e7ab8d848 "rocksdb::Iterator *myrocks::Rdb_transaction::get_iterator(rocksdb::ColumnFamilyHandle *const, bool, bool, const rocksdb::Slice &, const rocksdb::Slice &, bool, bool)") at ./assert/assert.c:94
|
#6 0x0000734eeda3b507 in __assert_fail (assertion=0x734e7ab8d82f "column_family != nullptr", file=0x734e7ab87965 "/test/11.4_dbg/storage/rocksdb/ha_rocksdb.cc", line=3004, function=0x734e7ab8d848 "rocksdb::Iterator *myrocks::Rdb_transaction::get_iterator(rocksdb::ColumnFamilyHandle *const, bool, bool, const rocksdb::Slice &, const rocksdb::Slice &, bool, bool)") at ./assert/assert.c:103
|
#7 0x0000734e7a62ed64 in myrocks::Rdb_transaction::get_iterator (this=0x734dbc25e040, column_family=0x0, skip_bloom_filter=true, fill_cache=true, eq_cond_lower_bound=@0x734dbc2759a8: {data_ = 0x734dbc26c628 "", size_ = 4}, eq_cond_upper_bound=@0x734dbc2759b8: {data_ = 0x734dbc25e018 "", size_ = 4}, read_current=false, create_snapshot=true)at /test/11.4_dbg/storage/rocksdb/ha_rocksdb.cc:3004
|
#8 0x0000734e7a607faa in myrocks::ha_rocksdb::setup_scan_iterator (this=0x734dbc2753b8, kd=@0x734d3f800000: {static CF_FLAGS_TO_IGNORE = 4, m_index_number = 0, m_index_number_storage_form = "\000\000\000", m_cf_handle = 0x0, m_index_dict_version = 0, m_index_type = 0 '\000', m_kv_format_version = 0, m_is_reverse_cf = false, m_is_per_partition_cf = false, m_name = "", m_stats = {m_gl_index_id = {cf_id = 0, index_id = 0}, m_data_size = 0, m_rows = 0, m_actual_disk_size = 0, m_entry_deletes = 0, m_entry_single_deletes = 0, m_entry_merges = 0, m_entry_others = 0, m_distinct_keys_per_prefix = std::vector of length 0, capacity 0, m_name = ""}, m_index_flags_bitmap = 0, m_total_index_flags_length = 0, m_ttl_rec_offset = 0, m_ttl_duration = 0, m_ttl_column = "", m_pk_key_parts = 0, m_pk_part_no = 0x0, m_pack_info = 0x0, m_keyno = 0, m_key_parts = 0, m_ttl_pk_key_part_offset = 0, m_ttl_field_index = 0, m_prefix_extractor = std::shared_ptr<const class rocksdb::SliceTransform> (empty) = { get() = 0x0 }, m_maxlength = 0, m_mutex = {m_mutex = {global = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 39 times>, __align = 0}, mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 39 times>, __align = 0}, file = 0x0, name = 0x0, line = 0, count = 0, create_flags = 0, active_flags = 0, id = 0, thread = 0, locked_mutex = 0x0, used_mutex = 0x0, prev = 0x0, next = 0x0}, m_psi = 0x0}}, slice=0x734ee81c9700, use_all_keys=false, eq_cond_len=4)at /test/11.4_dbg/storage/rocksdb/ha_rocksdb.cc:10579
|
#9 0x0000734e7a60af78 in myrocks::ha_rocksdb::index_first_intern (this=0x734dbc2753b8, buf=0x734dbc276428 "\377")at /test/11.4_dbg/storage/rocksdb/ha_rocksdb.cc:9302
|
#10 0x0000734e7a60aac8 in myrocks::ha_rocksdb::index_first (this=0x734dbc2753b8, buf=0x734dbc276428 "\377")at /test/11.4_dbg/storage/rocksdb/ha_rocksdb.cc:9221
|
#11 0x0000734e7a6083d4 in myrocks::ha_rocksdb::check (this=0x734dbc2753b8, thd=0x734dbc000d58, check_opt=0x734dbc006330)at /test/11.4_dbg/storage/rocksdb/ha_rocksdb.cc:8841
|
#12 0x000061edb35f9c58 in handler::ha_check (this=0x734dbc2753b8, thd=0x734dbc000d58, check_opt=0x734dbc006330)at /test/11.4_dbg/sql/handler.cc:5309
|
#13 0x000061edb39477eb in ha_partition::handle_opt_part (this=0x734dbc274af8, thd=0x734dbc000d58, check_opt=0x734dbc006330, part_id=0, flag=3)at /test/11.4_dbg/sql/ha_partition.cc:1394
|
#14 0x000061edb3946ae0 in ha_partition::handle_opt_partitions (this=0x734dbc274af8, thd=0x734dbc000d58, check_opt=0x734dbc006330, flag=3)at /test/11.4_dbg/sql/ha_partition.cc:1571
|
#15 0x000061edb39476aa in ha_partition::check (this=0x734dbc274af8, thd=0x734dbc000d58, check_opt=0x734dbc006330)at /test/11.4_dbg/sql/ha_partition.cc:1302
|
#16 0x000061edb35f9c58 in handler::ha_check (this=0x734dbc274af8, thd=0x734dbc000d58, check_opt=0x734dbc006330)at /test/11.4_dbg/sql/handler.cc:5309
|
#17 0x000061edb33d7491 in mysql_admin_table (thd=0x734dbc000d58, tables=0x734dbc019b78, check_opt=0x734dbc006330, operator_name=0x61edb49abbb8 <msg_check>, lock_type=TL_READ_NO_INSERT, org_open_for_modify=false, repair_table_use_frm=false, extra_open_options=32, prepare_func=0x0, operator_func=(int (handler::*)(class handler * const, class THD *, HA_CHECK_OPT *)) 0x61edb35f9a80 <handler::ha_check(THD*, st_ha_check_opt*)>, view_operator_func=0x61edb3355e30 <view_check(THD*, TABLE_LIST*, st_ha_check_opt*)>, is_cmd_replicated=false) at /test/11.4_dbg/sql/sql_admin.cc:915
|
#18 0x000061edb33da02c in Sql_cmd_check_table::execute (this=0x734dbc01a288, thd=0x734dbc000d58) at /test/11.4_dbg/sql/sql_admin.cc:1592
|
#19 0x000061edb31ee482 in mysql_execute_command (thd=0x734dbc000d58, is_called_from_prepared_stmt=false) at /test/11.4_dbg/sql/sql_parse.cc:5878
|
#20 0x000061edb31dd744 in mysql_parse (thd=0x734dbc000d58, rawbuf=0x734dbc019ac0 "CHECK TABLE t1", length=14, parser_state=0x734ee81cca30) at /test/11.4_dbg/sql/sql_parse.cc:7907
|
#21 0x000061edb31dabf4 in dispatch_command (command=COM_QUERY, thd=0x734dbc000d58, packet=0x734dbc00afd9 "", packet_length=14, blocking=true) at /test/11.4_dbg/sql/sql_parse.cc:1904
|
#22 0x000061edb31de2f3 in do_command (thd=0x734dbc000d58, blocking=true)at /test/11.4_dbg/sql/sql_parse.cc:1417
|
#23 0x000061edb33c0619 in do_handle_one_connection (connect=0x61edb8287228, put_in_cache=true) at /test/11.4_dbg/sql/sql_connect.cc:1408
|
#24 0x000061edb33c03b2 in handle_one_connection (arg=0x61edb82eacd8)at /test/11.4_dbg/sql/sql_connect.cc:1320
|
#25 0x0000734eeda9ca94 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#26 0x0000734eedb29c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
Bug Detection Matrix |
Rel o/d Build Commit UniqueID observed
|
CS 10.5 dbg 120425 e6ea5d568c0fb972a391a8c64716846ddb7c57ef SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
CS 10.5 opt 120425 e6ea5d568c0fb972a391a8c64716846ddb7c57ef SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
CS 10.6 dbg 120425 690b2cf776faa2e1a6832077cec2246c86cd00bf SIGSEGV|myrocks::ha_rocksdb::can_use_bloom_filter|myrocks::ha_rocksdb::check_bloom_and_set_bounds|myrocks::ha_rocksdb::setup_scan_iterator|myrocks::ha_rocksdb::index_first_intern
|
CS 10.6 opt 120425 690b2cf776faa2e1a6832077cec2246c86cd00bf SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
CS 10.11 dbg 120425 acd071f599f416ddb4821dec485c4d912844213f SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
CS 10.11 opt 120425 acd071f599f416ddb4821dec485c4d912844213f SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
CS 11.4 dbg 120425 4a701e8ce4a178faf955641caf59fc13fcc718e9 SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
CS 11.4 opt 120425 4a701e8ce4a178faf955641caf59fc13fcc718e9 SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
CS 11.8 dbg 120425 db5bb6f3339be5a49c0f397eb80a0f259f73f447 SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
CS 11.8 opt 120425 db5bb6f3339be5a49c0f397eb80a0f259f73f447 SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
CS 12.0 dbg 120425 22efc2c784e1b7199fb5804e6330168277ea7dce SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
CS 12.0 opt 120425 22efc2c784e1b7199fb5804e6330168277ea7dce SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
ES 10.5 dbg 120425 0d368ec0042a81d9549fc939fb742f82350b20ab SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
ES 10.5 opt 120425 0d368ec0042a81d9549fc939fb742f82350b20ab SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
ES 10.6 dbg 120425 74602d1b054ba6c9ee20af79d6e7807440a7a98e SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
ES 10.6 opt 120425 74602d1b054ba6c9ee20af79d6e7807440a7a98e SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
ES 11.4 dbg 120425 9cd12544ebfd0d52d2158af66b5aced58121cf1f SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
ES 11.4 opt 120425 9cd12544ebfd0d52d2158af66b5aced58121cf1f SIGSEGV|myrocks::ha_rocksdb::index_first|myrocks::ha_rocksdb::check|handler::ha_check|ha_partition::handle_opt_part
|
The CS 10.6 dbg outcome is an example of a sporadic different SIGSEGV.
Attachments
Issue Links
- relates to
-
MDEV-23956 Server crash or ASAN errors in myrocks::ha_rocksdb::index_first / myrocks::ha_rocksdb::inplace_populate_sk / ha_rocksdb::can_use_bloom_filter / rocksdb::DBImpl::NewIterator
-
- Confirmed
-