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

[DRAFT] Assertion `"no ha_innopart in MariaDB" == 0' failed

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      Assertion found 12.3 debug build

      origin/12.3 66b3c6784689fbb65110a5b21efcb815a8bcde24

      # 2026-05-28T15:32:46 [1929148] | mariadbd: /data/Server/12.3A/storage/innobase/row/row0sel.cc:3189: bool row_sel_store_mysql_rec(byte*, row_prebuilt_t*, const rec_t*, const dtuple_t*, bool, const dict_index_t*, const rec_offs*): Assertion `"no ha_innopart in MariaDB" == 0' failed.
      

      Stacktrace

      # 2026-05-28T15:33:55 [1929148] #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
      # 2026-05-28T15:33:55 [1929148] #1  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
      # 2026-05-28T15:33:55 [1929148] #2  __GI___pthread_kill (threadid=<optimized out>, signo=6) at ./nptl/pthread_kill.c:89
      # 2026-05-28T15:33:55 [1929148] #3  0x000058f9040f91aa in my_write_core (sig=6) at /data/Server/12.3A/mysys/stacktrace.c:424
      # 2026-05-28T15:33:55 [1929148] #4  0x000058f903b23c4b in handle_fatal_signal (sig=6) at /data/Server/12.3A/sql/signal_handler.cc:298
      # 2026-05-28T15:33:55 [1929148] #5  <signal handler called>
      # 2026-05-28T15:33:55 [1929148] #6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
      # 2026-05-28T15:33:55 [1929148] #7  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
      # 2026-05-28T15:33:55 [1929148] #8  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      # 2026-05-28T15:33:55 [1929148] #9  0x00007a3f07e4526e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      # 2026-05-28T15:33:55 [1929148] #10 0x00007a3f07e288ff in __GI_abort () at ./stdlib/abort.c:79
      # 2026-05-28T15:33:55 [1929148] #11 0x00007a3f07e2881b in __assert_fail_base (fmt=0x7a3f07fd01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x58f904351e08 "\"no ha_innopart in MariaDB\" == 0", file=file@entry=0x58f904350f08 "/data/Server/12.3A/storage/innobase/row/row0sel.cc", line=line@entry=3189, function=function@entry=0x58f904351d60 "bool row_sel_store_mysql_rec(byte*, row_prebuilt_t*, const rec_t*, const dtuple_t*, bool, const dict_index_t*, const rec_offs*)") at ./assert/assert.c:94
      # 2026-05-28T15:33:55 [1929148] #12 0x00007a3f07e3b507 in __assert_fail (assertion=0x58f904351e08 "\"no ha_innopart in MariaDB\" == 0", file=0x58f904350f08 "/data/Server/12.3A/storage/innobase/row/row0sel.cc", line=3189, function=0x58f904351d60 "bool row_sel_store_mysql_rec(byte*, row_prebuilt_t*, const rec_t*, const dtuple_t*, bool, const dict_index_t*, const rec_offs*)") at ./assert/assert.c:103
      # 2026-05-28T15:33:55 [1929148] #13 0x000058f903f2b5e7 in row_sel_store_mysql_rec (mysql_rec=mysql_rec@entry=0x723e9012e390 "\377", prebuilt=prebuilt@entry=0x723e900eead8, rec=0x723e8c039f0e "", vrow=0x723e8c039f28, rec_clust=true, index=0x723e9c8dd9a8, offsets=0x7a3f054f5b80) at /data/Server/12.3A/storage/innobase/row/row0sel.cc:3189
      # 2026-05-28T15:33:55 [1929148] #14 0x000058f903f33559 in row_search_mvcc (buf=buf@entry=0x723e9012e390 "\377", mode=<optimized out>, prebuilt=0x723e900eead8, match_mode=<optimized out>, direction=direction@entry=0) at /data/Server/12.3A/storage/innobase/row/row0sel.cc:5709
      # 2026-05-28T15:33:55 [1929148] #15 0x000058f903dbf286 in ha_innobase::index_read (this=0x723e9012db20, buf=0x723e9012e390 "\377", key_ptr=key_ptr@entry=0x0, key_len=key_len@entry=0, find_flag=find_flag@entry=HA_READ_AFTER_KEY) at /data/Server/12.3A/storage/innobase/handler/ha_innodb.cc:9012
      # 2026-05-28T15:33:55 [1929148] #16 0x000058f903dbf5ed in ha_innobase::index_first (this=<optimized out>, buf=<optimized out>) at /data/Server/12.3A/storage/innobase/handler/ha_innodb.cc:9360
      # 2026-05-28T15:33:55 [1929148] #17 0x000058f903b2cdd0 in handler::ha_index_first (this=0x723e9012db20, buf=0x723e9012e390 "\377") at /data/Server/12.3A/sql/handler.cc:4257
      # 2026-05-28T15:33:55 [1929148] #18 0x000058f90388bd31 in join_read_first (tab=0x723e8c019e40) at /data/Server/12.3A/sql/sql_select.cc:25721
      # 2026-05-28T15:33:55 [1929148] #19 0x000058f90386f8b8 in sub_select (join=0x723e8c018620, join_tab=0x723e8c019e40, end_of_records=false) at /data/Server/12.3A/sql/sql_select.cc:24574
      # 2026-05-28T15:33:55 [1929148] #20 0x000058f903881738 in do_select (join=join@entry=0x723e8c018620, procedure=<optimized out>) at /data/Server/12.3A/sql/sql_select.cc:24088
      # 2026-05-28T15:33:55 [1929148] #21 0x000058f9038a1b13 in JOIN::exec_inner (this=this@entry=0x723e8c018620) at /data/Server/12.3A/sql/sql_select.cc:5125
      # 2026-05-28T15:33:55 [1929148] #22 0x000058f9038a1bdb in JOIN::exec (this=this@entry=0x723e8c018620) at /data/Server/12.3A/sql/sql_select.cc:4913
      # 2026-05-28T15:33:55 [1929148] #23 0x000058f9038a0bc9 in mysql_select (thd=thd@entry=0x723e8c000d60, tables=0x723e8c017520, fields=..., conds=0x0, og_num=0, order=<optimized out>, group=0x0, having=0x0, proc_param=0x0, select_options=2165574400, result=0x723e8c0185f0, unit=0x723e8c005288, select_lex=0x723e8c015fc0) at /data/Server/12.3A/sql/sql_select.cc:5439
      # 2026-05-28T15:33:55 [1929148] #24 0x000058f9038a0d9e in handle_select (thd=thd@entry=0x723e8c000d60, lex=lex@entry=0x723e8c0051a8, result=result@entry=0x723e8c0185f0, setup_tables_done_option=setup_tables_done_option@entry=0) at /data/Server/12.3A/sql/sql_select.cc:636
      # 2026-05-28T15:33:55 [1929148] #25 0x000058f9038170e6 in execute_sqlcom_select (thd=thd@entry=0x723e8c000d60, all_tables=0x723e8c017520) at /data/Server/12.3A/sql/sql_parse.cc:6221
      # 2026-05-28T15:33:55 [1929148] #26 0x000058f903820b8b in mysql_execute_command (thd=thd@entry=0x723e8c000d60, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/12.3A/sql/sql_parse.cc:3994
      # 2026-05-28T15:33:55 [1929148] #27 0x000058f903826719 in mysql_parse (thd=thd@entry=0x723e8c000d60, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7a3f054f73c0) at /data/Server/12.3A/sql/sql_parse.cc:7949
      # 2026-05-28T15:33:55 [1929148] #28 0x000058f903827d6d in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x723e8c000d60, packet=packet@entry=0x723e8c00b6c1 "", packet_length=packet_length@entry=159, blocking=blocking@entry=true) at /data/Server/12.3A/sql/sql_parse.cc:1903
      # 2026-05-28T15:33:55 [1929148] #29 0x000058f903829372 in do_command (thd=thd@entry=0x723e8c000d60, blocking=blocking@entry=true) at /data/Server/12.3A/sql/sql_parse.cc:1437
      # 2026-05-28T15:33:55 [1929148] #30 0x000058f90398105d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x58f907dad4b0, put_in_cache=put_in_cache@entry=true) at /data/Server/12.3A/sql/sql_connect.cc:1503
      # 2026-05-28T15:33:55 [1929148] #31 0x000058f90398127a in handle_one_connection (arg=0x58f907dad4b0) at /data/Server/12.3A/sql/sql_connect.cc:1415
      # 2026-05-28T15:33:55 [1929148] #32 0x00007a3f07e9ca94 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
      # 2026-05-28T15:33:55 [1929148] #33 0x00007a3f07f29c3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      RQG startup options

       
      # $RQG_HOME/rqg.pl \
      # --grammar=conf/runtime/metadata_stability.yy \
      # --gendata=conf/runtime/metadata_stability.zz \
      # --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 \
      # --no_mask \
      # --queries=10000000 \
      # --seed=random \
      # --reporters=None \
      # --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 \
      # --redefine=conf/mariadb/redefine_indexed_vcols.yy \
      # --mysqld=--lock-wait-timeout=15 \
      # --mysqld=--innodb-lock-wait-timeout=10 \
      # --mysqld=--loose-innodb_fast_shutdown=0 \
      # --mysqld=--sql_mode=traditional \
      # --mysqld=--loose-innodb_read_only_compressed=OFF \
      # --mysqld=--loose-innodb-sync-debug \
      # --mysqld=--innodb_stats_persistent=off \
      # --mysqld=--innodb_adaptive_hash_index=off \
      # --mysqld=--innodb_random_read_ahead=ON \
      # --mysqld=--loose-innodb_evict_tables_on_commit_debug=on \
      # --threads=6 \
      # --rr= \
      # --mysqld=--innodb_use_native_aio=1 \
      # --mysqld=--innodb_undo_log_truncate=ON \
      # --mysqld=--innodb_undo_tablespaces=16 \
      # --mysqld=--innodb_rollback_on_timeout=OFF \
      # --mysqld=--innodb_page_size=8K \
      # --mysqld=--innodb-buffer-pool-size=8M \
      # --vardir_type=fast \
      # --redefine=conf/mariadb/redefine_innodb_cte_window.yy \
      # --no_mask \
      # --batch \
      # --basedir1=/Server_bin/12.3A_debug_Og \
      # --basedir2=/Server_bin/12.3A_debug_Og \
      # --script_debug=_nix_ \
      # --major_runid=1779993499 \
      # --minor_runid=191
      

      Core dump is present on SDP:-
      /data/results/1779993499/TBR-2417

      Attachments

        Activity

          People

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