Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-37464

void init_fts_doc_id_for_ref(dict_table_t*, ulint*): Assertion `foreign->foreign_table' failed

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      Assertion found on debug buid
      Leads to :-

      GIT_SHOW: HEAD -> 10.11, origin/10.11 e8026a50197cbfccd70a2072cbc0ae4728a4ab40 2025-08-15T09:47:40+03:00

      # 2025-08-20T01:25:42 [2818523] | mariadbd: /data/Server/10.11_new/storage/innobase/row/row0mysql.cc:1572: void init_fts_doc_id_for_ref(dict_table_t*, ulint*): Assertion `foreign->foreign_table' failed.
       
      # 2025-08-20T01:25:42 [2818523] | Query (0x7f90680135f0): UPDATE test.t8_p SET col_int = 1  /* E_R Thread6 QNO 2456 CON_ID 25 */
      

      # 2025-08-20T01:28:52 [2818523] Thread 1 (Thread 0x7f90a375e640 (LWP 2829383)):
      # 2025-08-20T01:28:52 [2818523] #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140259194431040) at ./nptl/pthread_kill.c:44
      # 2025-08-20T01:28:52 [2818523] #1  __pthread_kill_internal (signo=6, threadid=140259194431040) at ./nptl/pthread_kill.c:78
      # 2025-08-20T01:28:52 [2818523] #2  __GI___pthread_kill (threadid=140259194431040, signo=6) at ./nptl/pthread_kill.c:89
      # 2025-08-20T01:28:52 [2818523] #3  0x000055abb171ef38 in my_write_core (sig=6) at /data/Server/10.11_new/mysys/stacktrace.c:424
      # 2025-08-20T01:28:52 [2818523] #4  0x000055abb0eda7da in handle_fatal_signal (sig=6) at /data/Server/10.11_new/sql/signal_handler.cc:298
      # 2025-08-20T01:28:52 [2818523] #5  <signal handler called>
      # 2025-08-20T01:28:52 [2818523] #6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140259194431040) at ./nptl/pthread_kill.c:44
      # 2025-08-20T01:28:52 [2818523] #7  __pthread_kill_internal (signo=6, threadid=140259194431040) at ./nptl/pthread_kill.c:78
      # 2025-08-20T01:28:52 [2818523] #8  __GI___pthread_kill (threadid=140259194431040, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      # 2025-08-20T01:28:52 [2818523] #9  0x00007f90e1687476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      # 2025-08-20T01:28:52 [2818523] #10 0x00007f90e166d7f3 in __GI_abort () at ./stdlib/abort.c:79
      # 2025-08-20T01:28:52 [2818523] #11 0x00007f90e166d71b in __assert_fail_base (fmt=0x7f90e1822130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55abb1bc5a7e "foreign->foreign_table", file=0x55abb1bc5cc0 "/data/Server/10.11_new/storage/innobase/row/row0mysql.cc", line=1572, function=<optimized out>) at ./assert/assert.c:92
      # 2025-08-20T01:28:52 [2818523] #12 0x00007f90e167ee96 in __GI___assert_fail (assertion=0x55abb1bc5a7e "foreign->foreign_table", file=0x55abb1bc5cc0 "/data/Server/10.11_new/storage/innobase/row/row0mysql.cc", line=1572, function=0x55abb1bc6880 "void init_fts_doc_id_for_ref(dict_table_t*, ulint*)") at ./assert/assert.c:101
      # 2025-08-20T01:28:52 [2818523] #13 0x000055abb1429dfb in init_fts_doc_id_for_ref (table=table@entry=0x7f906c04a9b0, depth=depth@entry=0x7f90a375c5c0) at /data/Server/10.11_new/storage/innobase/row/row0mysql.cc:1572
      # 2025-08-20T01:28:52 [2818523] #14 0x000055abb142e5f2 in row_update_for_mysql (prebuilt=0x7f906807f930) at /data/Server/10.11_new/storage/innobase/row/row0mysql.cc:1623
      # 2025-08-20T01:28:52 [2818523] #15 0x000055abb12482b7 in ha_innobase::update_row (this=0x7f90680549a8, old_row=0x7f90680553d0 "\350\252\001", new_row=0x7f90680551a8 "\350\252\001") at /data/Server/10.11_new/storage/innobase/handler/ha_innodb.cc:8621
      # 2025-08-20T01:28:52 [2818523] #16 0x000055abb0eee97e in handler::ha_update_row (this=0x7f90680549a8, old_data=0x7f90680553d0 "\350\252\001", new_data=0x7f90680551a8 "\350\252\001") at /data/Server/10.11_new/sql/handler.cc:7832
      # 2025-08-20T01:28:52 [2818523] #17 0x000055abb0ce388e in mysql_update (thd=thd@entry=0x7f9068000d58, table_list=<optimized out>, fields=..., values=..., conds=<optimized out>, order_num=<optimized out>, order=<optimized out>, limit=18446744073709551583, ignore=<optimized out>, found_return=<optimized out>, updated_return=<optimized out>) at /data/Server/10.11_new/sql/sql_update.cc:1121
      # 2025-08-20T01:28:52 [2818523] #18 0x000055abb0bc196a in mysql_execute_command (thd=thd@entry=0x7f9068000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/10.11_new/sql/sql_parse.cc:4471
      # 2025-08-20T01:28:52 [2818523] #19 0x000055abb0bc7c78 in mysql_parse (thd=thd@entry=0x7f9068000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f90a375d380) at /data/Server/10.11_new/sql/sql_parse.cc:8180
      # 2025-08-20T01:28:52 [2818523] #20 0x000055abb0bca213 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7f9068000d58, packet=packet@entry=0x7f906800b049 " UPDATE test.t8_p SET col_int = 1  /* E_R Thread6 QNO 2456 CON_ID 25 */ ", packet_length=packet_length@entry=72, blocking=blocking@entry=true) at /data/Server/10.11_new/sql/sql_parse.cc:1906
      # 2025-08-20T01:28:52 [2818523] #21 0x000055abb0bcc0bd in do_command (thd=thd@entry=0x7f9068000d58, blocking=blocking@entry=true) at /data/Server/10.11_new/sql/sql_parse.cc:1419
      # 2025-08-20T01:28:52 [2818523] #22 0x000055abb0d3c402 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55abb4b6b938, put_in_cache=put_in_cache@entry=true) at /data/Server/10.11_new/sql/sql_connect.cc:1386
      # 2025-08-20T01:28:52 [2818523] #23 0x000055abb0d3c637 in handle_one_connection (arg=0x55abb4b6b938) at /data/Server/10.11_new/sql/sql_connect.cc:1298
      # 2025-08-20T01:28:52 [2818523] #24 0x00007f90e16d9ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      # 2025-08-20T01:28:52 [2818523] #25 0x00007f90e176b850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Core dump is present on pluto:
      /data/results/1755633923/TBR-1173

      Attachments

        Issue Links

          Activity

            People

              saahil Saahil Alam
              saahil Saahil Alam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.