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

dberr_t btr_cur_search_to_nth_level(ulint, const dtuple_t*, rw_lock_type_t, btr_cur_t*, mtr_t*): Assertion `height > level' failed

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      Assertion found on debug build
      Leads to :-

      origin/10.11 77a3d7a985e6a494b8e4b7b5ccd634602a9a7e1f

      # 2025-09-09T13:24:53 [165762] | mariadbd: /data/Server/10.11_new/storage/innobase/btr/btr0cur.cc:1967: dberr_t btr_cur_search_to_nth_level(ulint, const dtuple_t*, rw_lock_type_t, btr_cur_t*, mtr_t*): Assertion `height > level' failed.
      

      Stacktrace

      # 2025-09-09T13:27:57 [165762] Thread 1 (Thread 0x7f6298971640 (LWP 189416)):
      # 2025-09-09T13:27:57 [165762] #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140061443561024) at ./nptl/pthread_kill.c:44
      # 2025-09-09T13:27:57 [165762] #1  __pthread_kill_internal (signo=6, threadid=140061443561024) at ./nptl/pthread_kill.c:78
      # 2025-09-09T13:27:57 [165762] #2  __GI___pthread_kill (threadid=140061443561024, signo=6) at ./nptl/pthread_kill.c:89
      # 2025-09-09T13:27:57 [165762] #3  0x0000558b146a198d in my_write_core (sig=6) at /data/Server/10.11_new/mysys/stacktrace.c:424
      # 2025-09-09T13:27:57 [165762] #4  0x0000558b13e5c9f6 in handle_fatal_signal (sig=6) at /data/Server/10.11_new/sql/signal_handler.cc:298
      # 2025-09-09T13:27:57 [165762] #5  <signal handler called>
      # 2025-09-09T13:27:57 [165762] #6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140061443561024) at ./nptl/pthread_kill.c:44
      # 2025-09-09T13:27:57 [165762] #7  __pthread_kill_internal (signo=6, threadid=140061443561024) at ./nptl/pthread_kill.c:78
      # 2025-09-09T13:27:57 [165762] #8  __GI___pthread_kill (threadid=140061443561024, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      # 2025-09-09T13:27:57 [165762] #9  0x00007f62cb2d9476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      # 2025-09-09T13:27:57 [165762] #10 0x00007f62cb2bf7f3 in __GI_abort () at ./stdlib/abort.c:79
      # 2025-09-09T13:27:57 [165762] #11 0x00007f62cb2bf71b in __assert_fail_base (fmt=0x7f62cb474130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x558b14b751ac "height > level", file=0x558b14b756d8 "/data/Server/10.11_new/storage/innobase/btr/btr0cur.cc", line=1967, function=<optimized out>) at ./assert/assert.c:92
      # 2025-09-09T13:27:57 [165762] #12 0x00007f62cb2d0e96 in __GI___assert_fail (assertion=0x558b14b751ac "height > level", file=0x558b14b756d8 "/data/Server/10.11_new/storage/innobase/btr/btr0cur.cc", line=1967, function=0x558b14b76220 "dberr_t btr_cur_search_to_nth_level(ulint, const dtuple_t*, rw_lock_type_t, btr_cur_t*, mtr_t*)") at ./assert/assert.c:101
      # 2025-09-09T13:27:57 [165762] #13 0x0000558b144b1d9b in btr_cur_search_to_nth_level (level=level@entry=2, tuple=0x7f6254023b90, rw_latch=rw_latch@entry=RW_S_LATCH, cursor=cursor@entry=0x7f629896a930, mtr=mtr@entry=0x7f629896abb0) at /data/Server/10.11_new/storage/innobase/btr/btr0cur.cc:1967
      # 2025-09-09T13:27:57 [165762] #14 0x0000558b144842cb in btr_page_get_father_node_ptr_for_validate (offsets=offsets@entry=0x0, heap=<optimized out>, cursor=cursor@entry=0x7f629896a930, mtr=mtr@entry=0x7f629896abb0) at /data/Server/10.11_new/storage/innobase/btr/btr0btr.cc:816
      # 2025-09-09T13:27:57 [165762] #15 0x0000558b14491f50 in btr_validate_level (index=index@entry=0x7f6254045ae0, trx=trx@entry=0x0, level=<optimized out>, level@entry=1) at /data/Server/10.11_new/storage/innobase/btr/btr0btr.cc:5258
      # 2025-09-09T13:27:57 [165762] #16 0x0000558b14492987 in btr_validate_index (index=0x7f6254045ae0, trx=trx@entry=0x0) at /data/Server/10.11_new/storage/innobase/btr/btr0btr.cc:5442
      # 2025-09-09T13:27:57 [165762] #17 0x0000558b144a2ce8 in BtrBulk::finish (this=this@entry=0x7f6254023fe0, err=DB_SUCCESS) at /data/Server/10.11_new/storage/innobase/btr/btr0bulk.cc:1220
      # 2025-09-09T13:27:57 [165762] #18 0x0000558b143a0c0b in row_merge_read_clustered_index (trx=trx@entry=0x7f62c2c43580, table=table@entry=0x7f629896d110, old_table=old_table@entry=0x7f62780e66b0, new_table=<optimized out>, new_table@entry=0x7f627807ee00, online=online@entry=true, index=index@entry=0x7f6254102398, fts_sort_idx=<optimized out>, psort_info=<optimized out>, files=<optimized out>, key_numbers=<optimized out>, n_index=<optimized out>, defaults=<optimized out>, add_v=<optimized out>, col_map=<optimized out>, add_autoinc=<optimized out>, sequence=..., block=<optimized out>, skip_pk_sort=<optimized out>, tmpfd=<optimized out>, stage=<optimized out>, pct_cost=pct_cost@entry=33.333333333333336, crypt_block=<optimized out>, eval_table=<optimized out>, allow_not_null=<optimized out>, col_collate=<optimized out>) at /data/Server/10.11_new/storage/innobase/row/row0merge.cc:2713
      # 2025-09-09T13:27:57 [165762] #19 0x0000558b143a24a2 in row_merge_build_indexes (trx=0x7f62c2c43580, old_table=0x7f62780e66b0, new_table=new_table@entry=0x7f627807ee00, online=true, indexes=0x7f6254102398, key_numbers=0x7f62541023a8, n_indexes=2, table=0x7f629896d110, defaults=0x0, col_map=0x7f6254102440, add_autoinc=18446744073709551615, sequence=..., skip_pk_sort=true, stage=0x7f6254105d00, add_v=0x0, eval_table=0x7f629896d110, allow_not_null=false, col_collate=0x0) at /data/Server/10.11_new/storage/innobase/row/row0merge.cc:4764
      # 2025-09-09T13:27:57 [165762] #20 0x0000558b1420e7e7 in ha_innobase::inplace_alter_table (this=0x7f6254039fc8, altered_table=0x7f629896d110, ha_alter_info=0x7f629896d050) at /data/Server/10.11_new/storage/innobase/handler/handler0alter.cc:8971
      # 2025-09-09T13:27:57 [165762] #21 0x0000558b13c2d1c4 in handler::ha_inplace_alter_table (ha_alter_info=0x7f629896d050, altered_table=0x7f629896d110, this=<optimized out>) at /data/Server/10.11_new/sql/handler.h:4620
      # 2025-09-09T13:27:57 [165762] #22 mysql_inplace_alter_table (thd=thd@entry=0x7f6254000d58, table_list=0x7f6254013738, table=table@entry=0x7f62540131a8, altered_table=altered_table@entry=0x7f629896d110, ha_alter_info=ha_alter_info@entry=0x7f629896d050, target_mdl_request=target_mdl_request@entry=0x7f629896d930, ddl_log_state=0x7f629896d010, trigger_param=0x7f629896d4f0, alter_ctx=0x7f629896e500, partial_alter=@0x7f629896cfaf: false, start_alter_id=@0x7f629896cfb8: 0, if_exists=false) at /data/Server/10.11_new/sql/sql_table.cc:8128
      # 2025-09-09T13:27:57 [165762] #23 0x0000558b13c40846 in mysql_alter_table (thd=thd@entry=0x7f6254000d58, new_db=new_db@entry=0x7f62540058f0, new_name=<optimized out>, create_info=create_info@entry=0x7f629896f3a0, table_list=<optimized out>, table_list@entry=0x7f6254013738, recreate_info=recreate_info@entry=0x7f629896f1f0, alter_info=<optimized out>, order_num=<optimized out>, order=<optimized out>, ignore=<optimized out>, if_exists=<optimized out>) at /data/Server/10.11_new/sql/sql_table.cc:11404
      # 2025-09-09T13:27:57 [165762] #24 0x0000558b13cc7273 in Sql_cmd_alter_table::execute (this=<optimized out>, thd=0x7f6254000d58) at /data/Server/10.11_new/sql/sql_alter.cc:688
      # 2025-09-09T13:27:57 [165762] #25 0x0000558b13b48954 in mysql_execute_command (thd=thd@entry=0x7f6254000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/10.11_new/sql/sql_parse.cc:6165
      # 2025-09-09T13:27:57 [165762] #26 0x0000558b13b49e22 in mysql_parse (thd=thd@entry=0x7f6254000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f6298970380) at /data/Server/10.11_new/sql/sql_parse.cc:8180
      # 2025-09-09T13:27:57 [165762] #27 0x0000558b13b4c3bd in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7f6254000d58, packet=packet@entry=0x7f625400b049 "ALTER TABLE `t8` ROW_FORMAT=COMPRESSED /* E_R Thread6 QNO 11 CON_ID 22 */ ", packet_length=packet_length@entry=74, blocking=blocking@entry=true) at /data/Server/10.11_new/sql/sql_parse.cc:1906
      # 2025-09-09T13:27:57 [165762] #28 0x0000558b13b4e267 in do_command (thd=thd@entry=0x7f6254000d58, blocking=blocking@entry=true) at /data/Server/10.11_new/sql/sql_parse.cc:1419
      # 2025-09-09T13:27:57 [165762] #29 0x0000558b13cbe516 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x558b16e8af08, put_in_cache=put_in_cache@entry=true) at /data/Server/10.11_new/sql/sql_connect.cc:1386
      # 2025-09-09T13:27:57 [165762] #30 0x0000558b13cbe74b in handle_one_connection (arg=0x558b16e8af08) at /data/Server/10.11_new/sql/sql_connect.cc:1298
      # 2025-09-09T13:27:57 [165762] #31 0x00007f62cb32bac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      # 2025-09-09T13:27:57 [165762] #32 0x00007f62cb3bd850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Core dump is present on pluto:-
      /data/results/1757400498/TBR-2330-MDEV-37620

      Attachments

        Activity

          People

            saahil Saahil Alam
            saahil Saahil Alam
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.