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

SIGSEGV in engine_option_value::engine_option_value

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 11.4, 11.8
    • 11.4, 11.8
    • Server
    • None

    Description

      CREATE TABLE t1 (c1 INT) PARTITION BY HASH(c1) (PARTITION p1);
      INSERT INTO t1 VALUES (1),(1);
      ALTER TABLE t1 NOWAIT REORGANIZE PARTITION p1 INTO(p1 WRAPPER='a');
      CHECK TABLE t1;
      

      Leads to:

      CS 11.4.13 511d7527eb356aab52fa183456333c5ba9741bcf (Debug, Clang 22.1.8-20260621) Build 25/09/2026

      Core was generated by `/test/MD250926-mariadb-11.4.13-linux-x86_64-dbg/bin/mariadbd --no-defaults --lo'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  0x000059d4ad4707d4 in engine_option_value::engine_option_value (this=0x6d80fc02fc18, src=0x8f8f8f8f8f8f8f8f)at /test/11.4_dbg/sql/create_options.h:39
       
      [Current thread is 1 (LWP 3979023)]
      (gdb) bt
      #0  0x000059d4ad4707d4 in engine_option_value::engine_option_value (this=0x6d80fc02fc18, src=0x8f8f8f8f8f8f8f8f)at /test/11.4_dbg/sql/create_options.h:39
      #1  0x000059d4ad46fb4e in merge_engine_options (source=0x6d80fc01a918, changes=0x0, out=0x7581efebe258, root=0x6d80fc014f28)at /test/11.4_dbg/sql/create_options.cc:871
      #2  0x000059d4ad46f9b9 in parse_engine_part_options (thd=0x6d80fc000d58, table=0x6d80fc014c38) at /test/11.4_dbg/sql/create_options.cc:555
      #3  0x000059d4ad3ca4e1 in open_table_from_share (thd=0x6d80fc000d58, share=0x6d80fc025bf0, alias=0x6d80fc019cf8, db_stat=33, prgflag=8, ha_open_flags=48, outparam=0x6d80fc014c38, is_create_table=false, partitions_to_open=0x0) at /test/11.4_dbg/sql/table.cc:4636
      #4  0x000059d4ad1b94db in open_table (thd=0x6d80fc000d58, table_list=0x6d80fc019ca8, ot_ctx=0x7581efebe9f8)at /test/11.4_dbg/sql/sql_base.cc:2324
      #5  0x000059d4ad1be551 in open_and_process_table (thd=0x6d80fc000d58, tables=0x6d80fc019ca8, counter=0x7581efebeaac, flags=0, prelocking_strategy=0x7581efebeb10, has_prelocking_list=false, ot_ctx=0x7581efebe9f8) at /test/11.4_dbg/sql/sql_base.cc:4295
      #6  0x000059d4ad1bd39b in open_tables (thd=0x6d80fc000d58, options=@0x6d80fc0065b8: {m_options = DDL_options_st::OPT_NONE}, start=0x7581efebeac0, counter=0x7581efebeaac, flags=0, prelocking_strategy=0x7581efebeb10) at /test/11.4_dbg/sql/sql_base.cc:4778
      #7  0x000059d4ad1c031a in open_and_lock_tables (thd=0x6d80fc000d58, options=@0x6d80fc0065b8: {m_options = DDL_options_st::OPT_NONE}, tables=0x6d80fc019ca8, derived=true, flags=0, prelocking_strategy=0x7581efebeb10) at /test/11.4_dbg/sql/sql_base.cc:5809
      #8  0x000059d4ad1cce6e in open_and_lock_tables (thd=0x6d80fc000d58, tables=0x6d80fc019ca8, derived=true, flags=0)at /test/11.4_dbg/sql/sql_base.h:534
      #9  0x000059d4ad4366cd in open_only_one_table (thd=0x6d80fc000d58, table=0x6d80fc019ca8, repair_table_use_frm=false, is_view_operator_func=true) at /test/11.4_dbg/sql/sql_admin.cc:424
      #10 0x000059d4ad431fed in mysql_admin_table (thd=0x6d80fc000d58, tables=0x6d80fc019ca8, check_opt=0x6d80fc006358, operator_name=0x59d4ae91ad68 <msg_check>, lock_type=TL_READ_NO_INSERT, org_open_for_modify=false, repair_table_use_frm=false, extra_open_options=32, prepare_func=0x0, operator_func=(int (handler::*)(handler * const, THD *, HA_CHECK_OPT *)) 0x59d4ad630fa0 <handler::ha_check(THD*, st_ha_check_opt*)>, view_operator_func=0x59d4ad3baf90 <view_check(THD*, TABLE_LIST*, st_ha_check_opt*)>, is_cmd_replicated=false) at /test/11.4_dbg/sql/sql_admin.cc:640
      #11 0x000059d4ad435593 in Sql_cmd_check_table::execute (this=0x6d80fc01a3c0, thd=0x6d80fc000d58) at /test/11.4_dbg/sql/sql_admin.cc:1619
      #12 0x000059d4ad26e48e in mysql_execute_command (thd=0x6d80fc000d58, is_called_from_prepared_stmt=false) at /test/11.4_dbg/sql/sql_parse.cc:5901
      #13 0x000059d4ad25f778 in mysql_parse (thd=0x6d80fc000d58, rawbuf=0x6d80fc019bf0 "CHECK TABLE t1", length=14, parser_state=0x7581efec1a30) at /test/11.4_dbg/sql/sql_parse.cc:7928
      #14 0x000059d4ad25d02a in dispatch_command (command=COM_QUERY, thd=0x6d80fc000d58, packet=0x6d80fc00afe9 "", packet_length=14, blocking=true) at /test/11.4_dbg/sql/sql_parse.cc:1925
      #15 0x000059d4ad2601fa in do_command (thd=0x6d80fc000d58, blocking=true)at /test/11.4_dbg/sql/sql_parse.cc:1433
      #16 0x000059d4ad41d69e in do_handle_one_connection (connect=0x59d4d5e38c58, put_in_cache=true) at /test/11.4_dbg/sql/sql_connect.cc:1508
      #17 0x000059d4ad41d485 in handle_one_connection (arg=0x59d4d5f21b38)at /test/11.4_dbg/sql/sql_connect.cc:1420
      #18 0x000075821d49cb84 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
      #19 0x000075821d529ecc in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Bug Detection Matrix

          Rel    o/d  Build   Commit                                    UniqueID observed             
      CS  10.11  dbg  250926  307a82c97316ea0ed3fde318d19c0770ab898d89  No bug found                  
      CS  10.11  opt  250926  307a82c97316ea0ed3fde318d19c0770ab898d89  No bug found                  
      CS  11.4   dbg  250926  511d7527eb356aab52fa183456333c5ba9741bcf  SIGSEGV|engine_option_value::engine_option_value|merge_engine_options|parse_engine_part_options|open_table_from_share
      CS  11.4   opt  250926  511d7527eb356aab52fa183456333c5ba9741bcf  No bug found                  
      CS  11.8   dbg  250926  e87b958d2e411af8e088d1716f99d06534e932f3  SIGSEGV|engine_option_value::engine_option_value|merge_engine_options|parse_engine_part_options|open_table_from_share
      CS  11.8   opt  250926  e87b958d2e411af8e088d1716f99d06534e932f3  No bug found                  
      CS  12.3   dbg  250926  881b64e8add374802e1871814dd0a3a673a9b3e6  No bug found                  
      CS  12.3   opt  250926  881b64e8add374802e1871814dd0a3a673a9b3e6  No bug found                  
      CS  13.0   dbg  250926  620a4b5624222048fece7fe1789978ae0675cae2  No bug found                  
      CS  13.0   opt  250926  620a4b5624222048fece7fe1789978ae0675cae2  No bug found                  
      CS  13.2   dbg  250926  45717ef4c736a6a92e0acf49399ce677bfcaea89  No bug found                  
      CS  13.2   opt  250926  45717ef4c736a6a92e0acf49399ce677bfcaea89  No bug found                  
      ES  10.6   dbg  250926  aa3fb9800c358182ee2a1f8cca8ffbdd6d0a37eb  No bug found                  
      ES  10.6   opt  250926  aa3fb9800c358182ee2a1f8cca8ffbdd6d0a37eb  No bug found                  
      ES  11.4   dbg  250926  5fa1ee1c7342644dda74ff137ff55c4df79939cf  No bug found                  
      ES  11.4   opt  250926  5fa1ee1c7342644dda74ff137ff55c4df79939cf  No bug found                  
      ES  11.8   dbg  250926  1eae6f8f0c743cbff67675ae3e5cf9d25a5d8f61  SIGSEGV|engine_option_value::engine_option_value|merge_engine_options|parse_engine_part_options|open_table_from_share
      ES  11.8   opt  250926  1eae6f8f0c743cbff67675ae3e5cf9d25a5d8f61  No bug found                  
      ES  12.3   dbg  250926  f46597716bc5fbf9081c0fa17bd3e0d6c9e9db1d  No bug found                  
      ES  12.3   opt  250926  f46597716bc5fbf9081c0fa17bd3e0d6c9e9db1d  No bug found                  
      

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            saahil Saahil Alam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Time Spent - 1h Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - 1h Remaining Estimate - 0.5h
                1h

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.