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

InnoDB: Failing assertion: list.count > 0

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      This crash was found while testing MDEV-26599

      Leads to :-

      origin/MDEV-26599 8a8653e7bcaebaab3a044d7f8fb5d6efb75a840b

      # 2025-10-21T06:21:40 [617690] | 2025-10-21 06:21:30 0x5f2ba86ec6c0  InnoDB: Assertion failure in file /data/Server/MDEV-26599/storage/innobase/include/ut0lst.h line 333
      # 2025-10-21T06:21:40 [617690] | InnoDB: Failing assertion: list.count > 0
      

      Stacktrace

      # 2025-10-21T06:31:47 [617690] | #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
      # 2025-10-21T06:31:47 [617690] | #1  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
      # 2025-10-21T06:31:47 [617690] | #2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      # 2025-10-21T06:31:47 [617690] | #3  0x0000213b198ed26e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      # 2025-10-21T06:31:47 [617690] | #4  0x0000213b198d08ff in __GI_abort () at ./stdlib/abort.c:79
      # 2025-10-21T06:31:47 [617690] | #5  0x00005f2ba6dfab40 in ut_dbg_assertion_failed (expr=expr@entry=0x5f2ba71b876c "list.count > 0", file=file@entry=0x5f2ba70c39d0 "/data/Server/MDEV-26599/storage/innobase/include/ut0lst.h", line=line@entry=333) at /data/Server/MDEV-26599/storage/innobase/ut/ut0dbg.cc:60
      # 2025-10-21T06:31:47 [617690] | #6  0x00005f2ba6cc3d3d in ut_list_remove<ut_list_base<ib_lock_t, ut_list_node<ib_lock_t> lock_table_t::*>, TableLockGetNode> (list=..., node=..., get_node=...) at /data/Server/MDEV-26599/storage/innobase/include/ut0lst.h:333
      # 2025-10-21T06:31:47 [617690] | #7  0x00005f2ba6cc3d79 in ut_list_remove<ut_list_base<ib_lock_t, ut_list_node<ib_lock_t> lock_table_t::*>, TableLockGetNode> (list=..., elem=elem@entry=0x6e397de9fc58, get_node=...) at /data/Server/MDEV-26599/storage/innobase/include/ut0lst.h:372
      # 2025-10-21T06:31:47 [617690] | #8  0x00005f2ba6cbb110 in lock_table_remove_low (lock=lock@entry=0x6e397de9fc58) at /data/Server/MDEV-26599/storage/innobase/lock/lock0lock.cc:3786
      # 2025-10-21T06:31:47 [617690] | #9  0x00005f2ba6cbd047 in lock_table_dequeue (in_lock=in_lock@entry=0x6e397de9fc58, owns_wait_mutex=owns_wait_mutex@entry=false) at /data/Server/MDEV-26599/storage/innobase/lock/lock0lock.cc:4019
      # 2025-10-21T06:31:47 [617690] | #10 0x00005f2ba6cbf16f in lock_release_try (trx=trx@entry=0x6e397de9f700) at /data/Server/MDEV-26599/storage/innobase/lock/lock0lock.cc:4370
      # 2025-10-21T06:31:47 [617690] | #11 0x00005f2ba6cc1688 in lock_release (trx=trx@entry=0x6e397de9f700) at /data/Server/MDEV-26599/storage/innobase/lock/lock0lock.cc:4402
      # 2025-10-21T06:31:47 [617690] | #12 0x00005f2ba6df1507 in trx_t::release_locks (this=this@entry=0x6e397de9f700) at /data/Server/MDEV-26599/storage/innobase/trx/trx0trx.cc:485
      # 2025-10-21T06:31:47 [617690] | #13 0x00005f2ba6ded9d5 in trx_t::commit_in_memory (mtr=0x0, this=0x6e397de9f700) at /data/Server/MDEV-26599/storage/innobase/trx/trx0trx.cc:1433
      # 2025-10-21T06:31:47 [617690] | #14 trx_t::commit_low (this=this@entry=0x6e397de9f700, mtr=0x0) at /data/Server/MDEV-26599/storage/innobase/trx/trx0trx.cc:1575
      # 2025-10-21T06:31:47 [617690] | #15 0x00005f2ba6dedcef in trx_t::commit_persist (this=this@entry=0x6e397de9f700) at /data/Server/MDEV-26599/storage/innobase/trx/trx0trx.cc:1589
      # 2025-10-21T06:31:47 [617690] | #16 0x00005f2ba6dedd4c in trx_t::commit (this=this@entry=0x6e397de9f700) at /data/Server/MDEV-26599/storage/innobase/trx/trx0trx.cc:1598
      # 2025-10-21T06:31:47 [617690] | #17 0x00005f2ba6de2d21 in trx_t::rollback_finish (this=this@entry=0x6e397de9f700) at /data/Server/MDEV-26599/storage/innobase/trx/trx0roll.cc:64
      # 2025-10-21T06:31:47 [617690] | #18 0x00005f2ba6de34e8 in trx_t::rollback_low (this=this@entry=0x6e397de9f700, savept=savept@entry=0x0) at /data/Server/MDEV-26599/storage/innobase/trx/trx0roll.cc:125
      # 2025-10-21T06:31:47 [617690] | #19 0x00005f2ba6de3aea in trx_rollback_for_mysql (trx=trx@entry=0x6e397de9f700) at /data/Server/MDEV-26599/storage/innobase/trx/trx0roll.cc:211
      # 2025-10-21T06:31:47 [617690] | #20 0x00005f2ba6c4525b in innobase_rollback (thd=<optimized out>, rollback_trx=true) at /data/Server/MDEV-26599/storage/innobase/handler/ha_innodb.cc:4768
      # 2025-10-21T06:31:47 [617690] | #21 0x00005f2ba69e8a91 in ha_rollback_trans (thd=thd@entry=0x7ce708000d58, all=all@entry=true) at /data/Server/MDEV-26599/sql/handler.cc:2315
      # 2025-10-21T06:31:47 [617690] | #22 0x00005f2ba68c2b55 in trans_rollback (thd=thd@entry=0x7ce708000d58) at /data/Server/MDEV-26599/sql/transaction.cc:391
      # 2025-10-21T06:31:47 [617690] | #23 0x00005f2ba679f043 in mysql_execute_command (thd=thd@entry=0x7ce708000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/MDEV-26599/sql/sql_parse.cc:5827
      # 2025-10-21T06:31:47 [617690] | #24 0x00005f2ba67a08dc in mysql_parse (thd=thd@entry=0x7ce708000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x5f2ba86eb410) at /data/Server/MDEV-26599/sql/sql_parse.cc:8200
      # 2025-10-21T06:31:47 [617690] | #25 0x00005f2ba67a1f48 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7ce708000d58, packet=packet@entry=0x7ce70800af69 " ROLLBACK  /* E_R Thread5 QNO 304 CON_ID 88 */ ", packet_length=packet_length@entry=47, blocking=blocking@entry=true) at /data/Server/MDEV-26599/sql/sql_parse.cc:1908
      # 2025-10-21T06:31:47 [617690] | #26 0x00005f2ba67a33e6 in do_command (thd=thd@entry=0x7ce708000d58, blocking=blocking@entry=true) at /data/Server/MDEV-26599/sql/sql_parse.cc:1421
      # 2025-10-21T06:31:47 [617690] | #27 0x00005f2ba68b1859 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5f2ba9058998, put_in_cache=put_in_cache@entry=true) at /data/Server/MDEV-26599/sql/sql_connect.cc:1386
      # 2025-10-21T06:31:47 [617690] | #28 0x00005f2ba68b1a6a in handle_one_connection (arg=0x5f2ba9058998) at /data/Server/MDEV-26599/sql/sql_connect.cc:1298
      # 2025-10-21T06:31:47 [617690] | #29 0x0000213b19944a94 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
      # 2025-10-21T06:31:47 [617690] | #30 0x0000213b199d1a34 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
      

      RR trace is present on SDP
      /data/results/1761044849/TBR-1041

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: