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

InnoDB: Failing assertion: table->n_rec_locks == 0 in dict0dict.cc line 1862

    XMLWordPrintable

Details

    Description

      origin/bb-10.6-MDEV-30753 070615374b0056c37f544aa369cd1fec5f1a37e4 2023-02-28T16:06:46+02:00
      compiled with RelWithDebInfo
      Marko assumes that we have that problem in the main tree too.
       
      The RQG test fiddles with Foreign Keys and virtual columns.
       
      # 2023-02-28T10:32:20 [227238] | 2023-02-28 10:28:38 0x7fbb6c419640  InnoDB: Assertion failure in file /data/Server/bb-10.6-MDEV-30753/storage/innobase/dict/dict0dict.cc line 1862
      # 2023-02-28T10:32:20 [227238] | InnoDB: Failing assertion: table->n_rec_locks == 0
      # 2023-02-28T10:32:20 [227238] | InnoDB: We intentionally generate a memory trap.
      ...
      Query (0x7fbab8010710): ALTER IGNORE TABLE test.t1_p ADD COLUMN IF NOT EXISTS col_int_g_copy INTEGER GENERATED ALWAYS AS (col_int) VIRTUAL AFTER col_text_g  /* E_R Thread9 QNO 78 CON_ID 25 */
      Status: NOT_KILLED
       
      # 2023-02-28T10:31:25 [227238] #4  <signal handler called>
      # 2023-02-28T10:31:25 [227238] #5  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140442951849536) at ./nptl/pthread_kill.c:44
      # 2023-02-28T10:31:25 [227238] #6  __pthread_kill_internal (signo=6, threadid=140442951849536) at ./nptl/pthread_kill.c:78
      # 2023-02-28T10:31:25 [227238] #7  __GI___pthread_kill (threadid=140442951849536, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      # 2023-02-28T10:31:25 [227238] #8  0x00007fbb8246f476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      # 2023-02-28T10:31:25 [227238] #9  0x00007fbb824557f3 in __GI_abort () at ./stdlib/abort.c:79
      # 2023-02-28T10:31:25 [227238] #10 0x0000557dd70555d2 in ut_dbg_assertion_failed (expr=expr@entry=0x557dd7ae1801 "table->n_rec_locks == 0", file=file@entry=0x557dd7ae1140 "/data/Server/bb-10.6-MDEV-30753/storage/innobase/dict/dict0dict.cc", line=line@entry=1862) at /data/Server/bb-10.6-MDEV-30753/storage/innobase/ut/ut0dbg.cc:60
      # 2023-02-28T10:31:25 [227238] #11 0x0000557dd705eb14 in dict_sys_t::remove (this=this@entry=0x557dd8097f80 <dict_sys>, table=table@entry=0x7fbae4056c08, lru=lru@entry=false, keep=keep@entry=false) at /data/Server/bb-10.6-MDEV-30753/storage/innobase/dict/dict0dict.cc:1862
      # 2023-02-28T10:31:25 [227238] #12 0x0000557dd76225db in innobase_reload_table (thd=<optimized out>, table_name=..., ctx=..., table=0x7fbae4056c08) at /data/Server/bb-10.6-MDEV-30753/storage/innobase/handler/handler0alter.cc:10375
      # 2023-02-28T10:31:25 [227238] #13 ha_innobase::commit_inplace_alter_table (this=<optimized out>, altered_table=<optimized out>, ha_alter_info=<optimized out>, commit=<optimized out>) at /data/Server/bb-10.6-MDEV-30753/storage/innobase/handler/handler0alter.cc:11528
      # 2023-02-28T10:31:25 [227238] #14 0x0000557dd721fd21 in mysql_inplace_alter_table (target_mdl_request=0x7fbb6c415640, alter_ctx=0x7fbb6c4167c0, trigger_param=0x7fbb6c4151f0, ddl_log_state=0x7fbb6c414ce0, ha_alter_info=0x7fbb6c414d40, altered_table=0x7fbb6c414e00, table=0x7fba8c0667b8, table_list=0x7fbab8010908, thd=0x7fbab8000c68) at /data/Server/bb-10.6-MDEV-30753/sql/sql_table.cc:7484
      # 2023-02-28T10:31:25 [227238] #15 mysql_alter_table (thd=thd@entry=0x7fbab8000c68, new_db=new_db@entry=0x7fbab80054d8, new_name=new_name@entry=0x7fbab8005928, create_info=create_info@entry=0x7fbb6c4175d0, table_list=<optimized out>, table_list@entry=0x7fbab8010908, recreate_info=recreate_info@entry=0x7fbb6c4174c0, alter_info=0x7fbb6c4174e0, order_num=0, order=0x0, ignore=true, if_exists=false) at /data/Server/bb-10.6-MDEV-30753/sql/sql_table.cc:10354
      # 2023-02-28T10:31:25 [227238] #16 0x0000557dd727f112 in Sql_cmd_alter_table::execute (this=<optimized out>, thd=0x7fbab8000c68) at /data/Server/bb-10.6-MDEV-30753/sql/sql_alter.cc:553
      # 2023-02-28T10:31:25 [227238] #17 0x0000557dd7178816 in mysql_execute_command (thd=0x7fbab8000c68, is_called_from_prepared_stmt=<optimized out>) at /data/Server/bb-10.6-MDEV-30753/sql/sql_parse.cc:6002
      # 2023-02-28T10:31:25 [227238] #18 0x0000557dd717cc24 in mysql_parse (thd=0x7fbab8000c68, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>) at /data/Server/bb-10.6-MDEV-30753/sql/sql_parse.cc:8021
      # 2023-02-28T10:31:25 [227238] #19 0x0000557dd717ea7a in dispatch_command (command=COM_QUERY, thd=0x7fbab8000c68, packet=<optimized out>, packet_length=<optimized out>, blocking=<optimized out>) at /data/Server/bb-10.6-MDEV-30753/sql/sql_parse.cc:1993
      # 2023-02-28T10:31:25 [227238] #20 0x0000557dd717fea1 in do_command (thd=0x7fbab8000c68, blocking=blocking@entry=true) at /data/Server/bb-10.6-MDEV-30753/sql/sql_parse.cc:1409
      # 2023-02-28T10:31:25 [227238] #21 0x0000557dd727a4bf in do_handle_one_connection (connect=<optimized out>, connect@entry=0x557dd9b71c98, put_in_cache=put_in_cache@entry=true) at /data/Server/bb-10.6-MDEV-30753/sql/sql_connect.cc:1416
       
      There might be some relationship to MDEV-30037.
       
      RQG
      ===
      # git clone https://github.com/mleich1/rqg --branch <pick the right branch> RQG
      #
      # GIT_SHOW: HEAD -> master, origin/master, origin/HEAD f5194fe110d92f13f5f9998db2b4d1c555115f8b 2023-02-24T20:13:56+01:00
      # rqg.pl  : Version 4.2.1 (2022-12)
      #
      # $RQG_HOME/rqg.pl \
      # --grammar=conf/mariadb/table_stress_innodb_fk.yy \
      # --gendata=conf/mariadb/table_stress.zz \
      # --gendata_sql=conf/mariadb/table_stress.sql \
      # --mysqld=--loose-innodb_lock_schedule_algorithm=fcfs \
      # --mysqld=--loose-idle_write_transaction_timeout=0 \
      # --mysqld=--loose-idle_transaction_timeout=0 \
      # --mysqld=--loose-idle_readonly_transaction_timeout=0 \
      # --mysqld=--connect_timeout=60 \
      # --mysqld=--interactive_timeout=28800 \
      # --mysqld=--slave_net_timeout=60 \
      # --mysqld=--net_read_timeout=30 \
      # --mysqld=--net_write_timeout=60 \
      # --mysqld=--loose-table_lock_wait_timeout=50 \
      # --mysqld=--wait_timeout=28800 \
      # --mysqld=--lock-wait-timeout=86400 \
      # --mysqld=--innodb-lock-wait-timeout=50 \
      # --no_mask \
      # --queries=10000000 \
      # --seed=random \
      # --reporters=Backtrace \
      # --reporters=ErrorLog \
      # --reporters=Deadlock \
      # --validators=None \
      # --mysqld=--log_output=none \
      # --mysqld=--log_bin_trust_function_creators=1 \
      # --mysqld=--loose-debug_assert_on_not_freed_memory=0 \
      # --engine=InnoDB \
      # --restart_timeout=240 \
      # --mysqld=--plugin-load-add=file_key_management.so \
      # --mysqld=--loose-file-key-management-filename=$RQG_HOME/conf/mariadb/encryption_keys.txt \
      # --mysqld=--plugin-load-add=provider_lzo.so \
      # --mysqld=--plugin-load-add=provider_bzip2.so \
      # --mysqld=--plugin-load-add=provider_lzma.so \
      # --mysqld=--plugin-load-add=provider_snappy.so \
      # --mysqld=--plugin-load-add=provider_lz4.so \
      # --mysqld=--loose-innodb_compression_level=1 \
      # --duration=300 \
      # --mysqld=--loose-innodb_fatal_semaphore_wait_threshold=300 \
      # --mysqld=--innodb_file_per_table=1 \
      # --mysqld=--loose-innodb_read_only_compressed=OFF \
      # --mysqld=--loose-innodb-sync-debug \
      # --mysqld=--innodb_stats_persistent=off \
      # --mysqld=--innodb_adaptive_hash_index=off \
      # --mysqld=--loose-innodb_evict_tables_on_commit_debug=on \
      # --mysqld=--loose-max-statement-time=30 \
      # --threads=33 \
      # --mysqld=--innodb_use_native_aio=1 \
      # --mysqld=--innodb_undo_log_truncate=ON \
      # --mysqld=--loose_innodb_change_buffering=all \
      # --mysqld=--innodb_undo_tablespaces=3 \
      # --mysqld=--innodb_rollback_on_timeout=OFF \
      # --mysqld=--innodb_page_size=64K \
      # --mysqld=--innodb-buffer-pool-size=24M \
      # <local settings>
       
      sdp:/data1/results/1677597276/TBR-1219$ gdb -c ./1/data/core.229357 /data/Server_bin/bb-10.6-MDEV-30753_RelWithDebInfo/bin/mysqld
      

      Attachments

        Activity

          People

            marko Marko Mäkelä
            mleich Matthias Leich
            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.