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

InnoDB: Failing assertion: lock->index == index

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      InnoDB crash found on debug build:-

      # 2025-08-27T22:58:28 [2669584] | Query (0x7f5eec0135f0): INSERT INTO test.t7_c (col1,col2, col_int, col_string, col_text) VALUES ( 3696, 3696 - 1, 3696, REPEAT(SUBSTR(CAST( 3696 AS CHAR),1,1), 10), REPEAT(SUBSTR(CAST( 3696 AS CHAR2025-08-27 22:58:24 0x7f5f68480640),1  InnoDB: Assertion failure in file /data/Server/10.11_new/storage/innobase/lock/lock0lock.cc line 5481
      # 2025-08-27T22:58:28 [2669584] | ,InnoDB: Failing assertion: lock->index == index
      

      GIT_SHOW: HEAD -> 10.11, origin/10.11 21bb6a3e348f89c5cf23d4ee688c57f6078c7b02 2025-08-27T11:02:19+03:00

      # 2025-08-27T22:59:40 [2669584] Thread 1 (Thread 0x7f5f68480640 (LWP 2671968)):
      # 2025-08-27T22:59:40 [2669584] #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140047748171328) at ./nptl/pthread_kill.c:44
      # 2025-08-27T22:59:40 [2669584] #1  __pthread_kill_internal (signo=6, threadid=140047748171328) at ./nptl/pthread_kill.c:78
      # 2025-08-27T22:59:40 [2669584] #2  __GI___pthread_kill (threadid=140047748171328, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      # 2025-08-27T22:59:40 [2669584] #3  0x00007f5f95991476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      # 2025-08-27T22:59:40 [2669584] #4  0x00007f5f95977885 in __GI_abort () at ./stdlib/abort.c:100
      # 2025-08-27T22:59:40 [2669584] #5  0x000055ea8cff2b77 in ut_dbg_assertion_failed (expr=expr@entry=0x55ea8d6ecb43 "lock->index == index", file=file@entry=0x55ea8d67e218 "/data/Server/10.11_new/storage/innobase/lock/lock0lock.cc", line=line@entry=5481) at /data/Server/10.11_new/storage/innobase/ut/ut0dbg.cc:60
      # 2025-08-27T22:59:40 [2669584] #6  0x000055ea8cddb7f0 in lock_rec_queue_validate (locked_lock_trx_sys=locked_lock_trx_sys@entry=false, id=..., rec=rec@entry=0x7f5f7f0d0405 "\200", index=index@entry=0x7f5ec4110e70, offsets=offsets@entry=0x7f5f6847dcb0) at /data/Server/10.11_new/storage/innobase/lock/lock0lock.cc:5481
      # 2025-08-27T22:59:40 [2669584] #7  0x000055ea8cdf4894 in lock_clust_rec_read_check_and_lock (flags=flags@entry=0, block=block@entry=0x7f5f7f001380, rec=rec@entry=0x7f5f7f0d0405 "\200", index=index@entry=0x7f5ec4110e70, offsets=offsets@entry=0x7f5f6847dcb0, mode=mode@entry=LOCK_S, gap_mode=1024, thr=0x7f5eb805bbb0) at /data/Server/10.11_new/storage/innobase/include/buf0buf.h:643
      # 2025-08-27T22:59:40 [2669584] #8  0x000055ea8cee81d1 in row_ins_set_shared_rec_lock (type=type@entry=1024, block=block@entry=0x7f5f7f001380, rec=rec@entry=0x7f5f7f0d0405 "\200", index=index@entry=0x7f5ec4110e70, offsets=offsets@entry=0x7f5f6847dcb0, thr=thr@entry=0x7f5eb805bbb0) at /data/Server/10.11_new/storage/innobase/row/row0ins.cc:1411
      # 2025-08-27T22:59:40 [2669584] #9  0x000055ea8cef4d1f in row_ins_check_foreign_constraint (check_ref=check_ref@entry=1, foreign=foreign@entry=0x7f5f0c816a80, table=table@entry=0x7f5e9c043dd0, entry=entry@entry=0x7f5eb806bcf0, thr=thr@entry=0x7f5eb805bbb0) at /data/Server/10.11_new/storage/innobase/row/row0ins.cc:1713
      # 2025-08-27T22:59:40 [2669584] #10 0x000055ea8cef5502 in row_ins_check_foreign_constraints (table=0x7f5e9c043dd0, index=index@entry=0x7f5e9c070910, pk=pk@entry=true, entry=entry@entry=0x7f5eb806bcf0, thr=thr@entry=0x7f5eb805bbb0) at /data/Server/10.11_new/storage/innobase/row/row0ins.cc:1954
      # 2025-08-27T22:59:40 [2669584] #11 0x000055ea8cef9d6d in row_ins_clust_index_entry (index=index@entry=0x7f5e9c070910, entry=entry@entry=0x7f5eb806bcf0, thr=thr@entry=0x7f5eb805bbb0, n_ext=n_ext@entry=0) at /data/Server/10.11_new/storage/innobase/row/row0ins.cc:3305
      # 2025-08-27T22:59:40 [2669584] #12 0x000055ea8cefa220 in row_ins_index_entry (index=0x7f5e9c070910, entry=0x7f5eb806bcf0, thr=thr@entry=0x7f5eb805bbb0) at /data/Server/10.11_new/storage/innobase/row/row0ins.cc:3495
      # 2025-08-27T22:59:40 [2669584] #13 0x000055ea8cefa4fb in row_ins_index_entry_step (node=node@entry=0x7f5f280ac760, thr=thr@entry=0x7f5eb805bbb0) at /data/Server/10.11_new/storage/innobase/row/row0ins.cc:3661
      # 2025-08-27T22:59:40 [2669584] #14 0x000055ea8cefae2d in row_ins (node=node@entry=0x7f5f280ac760, thr=thr@entry=0x7f5eb805bbb0) at /data/Server/10.11_new/storage/innobase/row/row0ins.cc:3786
      # 2025-08-27T22:59:40 [2669584] #15 0x000055ea8cefb549 in row_ins_step (thr=thr@entry=0x7f5eb805bbb0) at /data/Server/10.11_new/storage/innobase/row/row0ins.cc:3915
      # 2025-08-27T22:59:40 [2669584] #16 0x000055ea8cf24a0c in row_insert_for_mysql (mysql_rec=mysql_rec@entry=0x7f5f2809d198 "\211\002", prebuilt=0x7f5f280ab9a0, ins_mode=<optimized out>) at /data/Server/10.11_new/storage/innobase/row/row0mysql.cc:1301
      # 2025-08-27T22:59:40 [2669584] #17 0x000055ea8cd3e674 in ha_innobase::write_row (this=0x7f5f2809c998, record=0x7f5f2809d198 "\211\002") at /data/Server/10.11_new/storage/innobase/handler/ha_innodb.cc:7828
      # 2025-08-27T22:59:40 [2669584] #18 0x000055ea8c9e5398 in handler::ha_write_row (this=0x7f5f2809c998, buf=0x7f5f2809d198 "\211\002") at /data/Server/10.11_new/sql/handler.cc:7765
      # 2025-08-27T22:59:40 [2669584] #19 0x000055ea8c66cb2a in Write_record::replace_row (this=0x7f5f6847eba0, inserted=inserted@entry=0x7f5f6847e9e0, deleted=deleted@entry=0x7f5f6847e9e8) at /data/Server/10.11_new/sql/sql_insert.cc:2105
      # 2025-08-27T22:59:40 [2669584] #20 0x000055ea8c66cedd in Write_record::write_record (this=this@entry=0x7f5f6847eba0) at /data/Server/10.11_new/sql/sql_insert.cc:2364
      # 2025-08-27T22:59:40 [2669584] #21 0x000055ea8c67546c in mysql_insert (thd=thd@entry=0x7f5eb8000d58, table_list=<optimized out>, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_REPLACE, ignore=false, result=0x0) at /data/Server/10.11_new/sql/sql_insert.cc:1217
      # 2025-08-27T22:59:40 [2669584] #22 0x000055ea8c6b8fbc in mysql_execute_command (thd=thd@entry=0x7f5eb8000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/10.11_new/sql/sql_parse.cc:4628
      # 2025-08-27T22:59:40 [2669584] #23 0x000055ea8c6bed46 in mysql_parse (thd=thd@entry=0x7f5eb8000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f5f6847f380) at /data/Server/10.11_new/sql/sql_parse.cc:8180
      # 2025-08-27T22:59:40 [2669584] #24 0x000055ea8c6c12e1 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7f5eb8000d58, packet=packet@entry=0x7f5eb800b049 " REPLACE INTO test.t7_c (col1,col2, col_int, col_string, col_text) VALUES /* 2 */ (2,2,2,REPEAT(SUBSTR(CAST( 2 AS CHAR),1,1), 10),REPEAT(SUBSTR(CAST( 2 AS CHAR),1,1), @fill_amount) ), (2,2,2,REPEAT(SUBSTR(CAST( 2 AS CHAR),1,1), 10),REPEAT(SUBSTR(CAST( 2 AS CHAR),1,1), @fill_amount) )  /* E_R Thread3 QNO 687 CON_ID 87 */ ", packet_length=packet_length@entry=322, blocking=blocking@entry=true) at /data/Server/10.11_new/sql/sql_parse.cc:1906
      # 2025-08-27T22:59:40 [2669584] #25 0x000055ea8c6c318b in do_command (thd=thd@entry=0x7f5eb8000d58, blocking=blocking@entry=true) at /data/Server/10.11_new/sql/sql_parse.cc:1419
      # 2025-08-27T22:59:40 [2669584] #26 0x000055ea8c8333f0 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55ea90b5d348, put_in_cache=put_in_cache@entry=true) at /data/Server/10.11_new/sql/sql_connect.cc:1386
      # 2025-08-27T22:59:40 [2669584] #27 0x000055ea8c833625 in handle_one_connection (arg=0x55ea90b5d348) at /data/Server/10.11_new/sql/sql_connect.cc:1298
      # 2025-08-27T22:59:40 [2669584] #28 0x00007f5f959e3ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      # 2025-08-27T22:59:40 [2669584] #29 0x00007f5f95a75850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Core dump is present on pluto:-
      /data/results/1756324862/TBR-2236

      Attachments

        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.