Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
Can result in hang or crash
Description
Assertion found while testing MDEV-28730
|
origin/main-MDEV-28730 04ec1e92dc91df3ec7cebc0004fbedf54e4eeba6 |
# 2025-11-19T23:00:47 [2352122] | 2025-11-19 23:00:42 0x7fffefeff6c0 InnoDB: Assertion failure in file /data/Server/MDEV-28730/storage/innobase/fts/fts0fts.cc line 4239
|
# 2025-11-19T23:00:47 [2352122] | InnoDB: Failing assertion: doc->tokens
|
|
Stacktrace |
# 2025-11-19T23:03:25 [2352122] | #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
|
# 2025-11-19T23:03:25 [2352122] | #1 __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
|
# 2025-11-19T23:03:25 [2352122] | #2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
|
# 2025-11-19T23:03:25 [2352122] | #3 0x00007ffff704526e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
|
# 2025-11-19T23:03:25 [2352122] | #4 0x00007ffff70288ff in __GI_abort () at ./stdlib/abort.c:79
|
# 2025-11-19T23:03:25 [2352122] | #5 0x00005555565cef1f in ut_dbg_assertion_failed (expr=expr@entry=0x555556a481b9 "doc->tokens", file=file@entry=0x5555569cbe90 "/data/Server/MDEV-28730/storage/innobase/fts/fts0fts.cc", line=line@entry=4239) at /data/Server/MDEV-28730/storage/innobase/ut/ut0dbg.cc:60
|
# 2025-11-19T23:03:25 [2352122] | #6 0x000055555669e787 in fts_tokenize_document_next (doc=doc@entry=0x7fffefefc9a0, add_pos=add_pos@entry=0, result=result@entry=0x0, parser=parser@entry=0x0) at /data/Server/MDEV-28730/storage/innobase/fts/fts0fts.cc:4239
|
# 2025-11-19T23:03:25 [2352122] | #7 0x00005555566a0d6f in operator() (__closure=0x7fffd40f84e0, rec=0x7fffd9e58084 "\200", index=<optimized out>, offsets=0x7fffd40b3e08) at /data/Server/MDEV-28730/storage/innobase/fts/fts0fts.cc:5456
|
# 2025-11-19T23:03:25 [2352122] | #8 0x00005555566a0ed5 in std::__invoke_impl<bool, fts_init_recover_all_docs(fts_get_doc_t*, doc_id_t)::<lambda(const rec_t*, const dict_index_t*, const rec_offs*)>&, unsigned char const*, const dict_index_t*, short unsigned int const*> (__f=...) at /usr/include/c++/13/bits/invoke.h:61
|
# 2025-11-19T23:03:25 [2352122] | #9 std::__invoke_r<bool, fts_init_recover_all_docs(fts_get_doc_t*, doc_id_t)::<lambda(const rec_t*, const dict_index_t*, const rec_offs*)>&, unsigned char const*, const dict_index_t*, short unsigned int const*> (__fn=...) at /usr/include/c++/13/bits/invoke.h:114
|
# 2025-11-19T23:03:25 [2352122] | #10 std::_Function_handler<bool(unsigned char const*, const dict_index_t*, short unsigned int const*), fts_init_recover_all_docs(fts_get_doc_t*, doc_id_t)::<lambda(const rec_t*, const dict_index_t*, const rec_offs*)> >::_M_invoke(const std::_Any_data &, const unsigned char *&&, const dict_index_t *&&, const unsigned short *&&) (__functor=..., __args#0=<optimized out>, __args#1=<optimized out>, __args#2=<optimized out>) at /usr/include/c++/13/bits/std_function.h:290
|
# 2025-11-19T23:03:25 [2352122] | #11 0x00005555566d6af2 in std::function<bool (unsigned char const*, dict_index_t const*, unsigned short const*)>::operator()(unsigned char const*, dict_index_t const*, unsigned short const*) const (this=this@entry=0x7fffefefd0e8, __args#0=<optimized out>, __args#1=<optimized out>, __args#1@entry=0x7fffac106668, __args#2=<optimized out>, __args#2@entry=0x7fffd40b3e08) at /usr/include/c++/13/bits/std_function.h:591
|
# 2025-11-19T23:03:25 [2352122] | #12 0x00005555566d6138 in QueryExecutor::process_record_with_mvcc (this=this@entry=0x7fffefefd130, table=table@entry=0x7fffa00e8c38, index=index@entry=0x7fffac106668, rec=rec@entry=0x7fffd9e58084 "\200", offsets=<optimized out>, offsets@entry=0x7fffd40b3e08, callback=..., mtr=0x7fffefefcb90, match_count=@0x7fffefefcfa8: 0) at /data/Server/MDEV-28730/storage/innobase/row/row0query.cc:627
|
# 2025-11-19T23:03:25 [2352122] | #13 0x00005555566d662f in QueryExecutor::lookup_clustered_record (this=this@entry=0x7fffefefd130, table=table@entry=0x7fffa00e8c38, sec_index=sec_index@entry=0x7fffcc130ac8, clust_index=clust_index@entry=0x7fffac106668, sec_rec=sec_rec@entry=0x7fffd9e8807d "", callback=..., match_count=@0x7fffefefcfa8: 0) at /data/Server/MDEV-28730/storage/innobase/row/row0query.cc:579
|
# 2025-11-19T23:03:25 [2352122] | #14 0x00005555566d696d in QueryExecutor::read_by_index (this=this@entry=0x7fffefefd130, table=table@entry=0x7fffa00e8c38, sec_index=sec_index@entry=0x7fffcc130ac8, search_tuple=search_tuple@entry=0x7fffefefd050, mode=mode@entry=PAGE_CUR_G, callback=...) at /data/Server/MDEV-28730/storage/innobase/row/row0query.cc:534
|
# 2025-11-19T23:03:25 [2352122] | #15 0x000055555669ffb0 in fts_init_recover_all_docs (get_doc=0x7fffa4136978, doc_id=0) at /data/Server/MDEV-28730/storage/innobase/fts/fts0fts.cc:5478
|
# 2025-11-19T23:03:25 [2352122] | #16 0x00005555566a31b5 in fts_init_index (table=table@entry=0x7fffa00e8c38, has_cache_lock=has_cache_lock@entry=true) at /data/Server/MDEV-28730/storage/innobase/fts/fts0fts.cc:5633
|
# 2025-11-19T23:03:25 [2352122] | #17 0x00005555566a35c9 in fts_init_doc_id (table=0x7fffa00e8c38) at /data/Server/MDEV-28730/storage/innobase/fts/fts0fts.cc:4352
|
# 2025-11-19T23:03:25 [2352122] | #18 0x00005555566a36c9 in fts_get_next_doc_id (table=0x7fffa00e8c38, doc_id=doc_id@entry=0x7fffefefd668) at /data/Server/MDEV-28730/storage/innobase/fts/fts0fts.cc:2505
|
# 2025-11-19T23:03:25 [2352122] | #19 0x000055555654b68d in row_mysql_convert_row_to_innobase (row=0x7fffd407d628, prebuilt=prebuilt@entry=0x7fffd4067d18, mysql_rec=mysql_rec@entry=0x7fffd4069e68 "\246\371\n1111111111", blob_heap=blob_heap@entry=0x7fffefefd6d0) at /data/Server/MDEV-28730/storage/innobase/row/row0mysql.cc:611
|
# 2025-11-19T23:03:25 [2352122] | #20 0x000055555654d62e in row_insert_for_mysql (mysql_rec=mysql_rec@entry=0x7fffd4069e68 "\246\371\n1111111111", prebuilt=0x7fffd4067d18, ins_mode=ROW_INS_NORMAL) at /data/Server/MDEV-28730/storage/innobase/row/row0mysql.cc:1272
|
# 2025-11-19T23:03:25 [2352122] | #21 0x000055555641b14d in ha_innobase::write_row (this=0x7fffd4069608, record=0x7fffd4069e68 "\246\371\n1111111111") at /data/Server/MDEV-28730/storage/innobase/handler/ha_innodb.cc:7747
|
# 2025-11-19T23:03:25 [2352122] | #22 0x00005555561b58fb in handler::ha_write_row (this=0x7fffd4069608, buf=0x7fffd4069e68 "\246\371\n1111111111") at /data/Server/MDEV-28730/sql/handler.cc:8249
|
# 2025-11-19T23:03:25 [2352122] | #23 0x0000555555ebf619 in Write_record::single_insert (this=this@entry=0x7fffefefdbd0, inserted=inserted@entry=0x7fffefefda40) at /data/Server/MDEV-28730/sql/sql_insert.cc:2390
|
# 2025-11-19T23:03:25 [2352122] | #24 0x0000555555ebfedc in Write_record::write_record (this=this@entry=0x7fffefefdbd0) at /data/Server/MDEV-28730/sql/sql_insert.cc:2432
|
# 2025-11-19T23:03:25 [2352122] | #25 0x0000555555ec600e in mysql_insert (thd=thd@entry=0x7fffd4002568, table_list=<optimized out>, fields=..., values_list=..., update_fields=..., update_values=..., duplic=<optimized out>, ignore=<optimized out>, result=<optimized out>) at /data/Server/MDEV-28730/sql/sql_insert.cc:1232
|
# 2025-11-19T23:03:25 [2352122] | #26 0x0000555555efbed3 in mysql_execute_command (thd=thd@entry=0x7fffd4002568, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/MDEV-28730/sql/sql_parse.cc:4456
|
# 2025-11-19T23:03:25 [2352122] | #27 0x0000555555f0080b in mysql_parse (thd=thd@entry=0x7fffd4002568, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7fffefefe3d0) at /data/Server/MDEV-28730/sql/sql_parse.cc:7888
|
# 2025-11-19T23:03:25 [2352122] | #28 0x0000555555f01ded in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7fffd4002568, packet=packet@entry=0x7fffd400cbc9 " INSERT INTO test.t10_p (col1,col2, col_int, col_string, col_text) VALUES ( 1, 1, 1 - 1, REPEAT(SUBSTR(CAST( 1 AS CHAR),1,1), 10), REPEAT(SUBSTR(CAST( 1 AS CHAR),1,1), @fill_amount) ) /* E_R Thread5 QNO 773 CON_ID 48 */ ", packet_length=packet_length@entry=220, blocking=blocking@entry=true) at /data/Server/MDEV-28730/sql/sql_parse.cc:1878
|
# 2025-11-19T23:03:25 [2352122] | #29 0x0000555555f03343 in do_command (thd=thd@entry=0x7fffd4002568, blocking=blocking@entry=true) at /data/Server/MDEV-28730/sql/sql_parse.cc:1417
|
# 2025-11-19T23:03:25 [2352122] | #30 0x0000555556037c0f in do_handle_one_connection (connect=<optimized out>, connect@entry=0x7fffcd30d8f8, put_in_cache=put_in_cache@entry=true) at /data/Server/MDEV-28730/sql/sql_connect.cc:1503
|
# 2025-11-19T23:03:25 [2352122] | #31 0x0000555556037e2c in handle_one_connection (arg=0x7fffcd30d8f8) at /data/Server/MDEV-28730/sql/sql_connect.cc:1415
|
# 2025-11-19T23:03:25 [2352122] | #32 0x00007ffff709ca94 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
|
# 2025-11-19T23:03:25 [2352122] | #33 0x00007ffff7129a34 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
|
RR trace is present on SDP:-
/data/results/1763621955TBR-2344
Attachments
Issue Links
- is caused by
-
MDEV-28730 Remove internal parser usage from InnoDB fts
-
- In Review
-