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

SIGSEGV in ha_mroonga::storage_index_first

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      INSTALL SONAME 'ha_mroonga';
      CREATE TABLE t1 (c1 INT,KEY(c1)) ENGINE=Mroonga;
      CHECK TABLE t1;
      ANALYZE TABLE t1 PERSISTENT FOR ALL;
      

      Leads to:

      CS 13.0.2 be111d2cd60d035d555b71da019765cfb42ea0d3 (Optimized, Clang 22.1.8-20260621) Build 21/08/2026

      Core was generated by `/test/MD210826-mariadb-13.0.2-linux-x86_64-opt/bin/mariadbd --no-defaults --loo'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  0x000070198d8b32e9 in ha_mroonga::storage_index_first (this=0x6818a73d3540, buf=0x6818a73d4a70 "\377")at /test/13.0_opt/storage/mroonga/ha_mroonga.cpp:8266
       
      [Current thread is 1 (LWP 226459)]
      (gdb) bt
      #0  0x000070198d8b32e9 in ha_mroonga::storage_index_first (this=0x6818a73d3540, buf=0x6818a73d4a70 "\377")at /test/13.0_opt/storage/mroonga/ha_mroonga.cpp:8266
      #1  0x0000591fbeb73897 in handler::ha_index_first (this=0x6818a73d3540, buf=0x6818a73d4a70 "\377") at /test/13.0_opt/sql/handler.cc:4265
      #2  0x0000591fbe9937f0 in collect_statistics_for_index (thd=0x6818a4000c70, table=0x6818a56cb5b0, index=0) at /test/13.0_opt/sql/sql_statistics.cc:2678
      #3  collect_statistics_for_table (thd=thd@entry=0x6818a4000c70, table=table@entry=0x6818a56cb5b0)at /test/13.0_opt/sql/sql_statistics.cc:2862
      #4  0x0000591fbea2b224 in mysql_admin_table (thd=thd@entry=0x6818a4000c70, tables=tables@entry=0x6818a4017c70, check_opt=check_opt@entry=0x6818a4006570, operator_name=0x591fbfa3a878 <msg_analyze>, lock_type=lock_type@entry=TL_READ_NO_INSERT, org_open_for_modify=true, no_errors_from_open=<optimized out>, extra_open_options=0, prepare_func=0x0, operator_func=(int (handler::*)(handler * const, THD *, HA_CHECK_OPT *)) 0x591fbeb76710 <handler::ha_analyze(THD*, st_ha_check_opt*)>, view_operator_func=0x0, is_cmd_replicated=<optimized out>)at /test/13.0_opt/sql/sql_admin.cc:1105
      #5  0x0000591fbea2b971 in Sql_cmd_analyze_table::execute (this=<optimized out>, thd=0x6818a4000c70)at /test/13.0_opt/sql/sql_admin.cc:1671
      #6  0x0000591fbe8f8040 in mysql_execute_command (thd=thd@entry=0x6818a4000c70, is_called_from_prepared_stmt=false) at /test/13.0_opt/sql/sql_parse.cc:5905
      #7  0x0000591fbe8f38fd in mysql_parse (thd=thd@entry=0x6818a4000c70, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x70198ff584f0)at /test/13.0_opt/sql/sql_parse.cc:7943
      #8  0x0000591fbe8f20cf in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x6818a4000c70, packet=packet@entry=0x6818a4008d91 "", packet_length=packet_length@entry=35, blocking=true)at /test/13.0_opt/sql/sql_parse.cc:1903
      #9  0x0000591fbe8f3d80 in do_command (thd=thd@entry=0x6818a4000c70, blocking=true) at /test/13.0_opt/sql/sql_parse.cc:1437
      #10 0x0000591fbea1c22d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x591ffb6ba540, put_in_cache=true)at /test/13.0_opt/sql/sql_connect.cc:1514
      #11 0x0000591fbea1c062 in handle_one_connection (arg=arg@entry=0x591ffb6ba540)at /test/13.0_opt/sql/sql_connect.cc:1426
      #12 0x0000591fbedbf323 in pfs_spawn_thread (arg=0x591ffb6da930)at /test/13.0_opt/storage/perfschema/pfs.cc:2198
      #13 0x00007019bde9cb84 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
      #14 0x00007019bdf29d6c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      CS 13.0.2 be111d2cd60d035d555b71da019765cfb42ea0d3 (Debug, Clang 22.1.8-20260621) Build 21/08/2026

      Core was generated by `/test/MD210826-mariadb-13.0.2-linux-x86_64-dbg/bin/mariadbd --no-defaults --loo'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  0x00007d8d570fa6f3 in ha_mroonga::storage_index_first (this=0x758c673e9150, buf=0x758c673ea900 "\377")at /test/13.0_dbg/storage/mroonga/ha_mroonga.cpp:8266
       
      [Current thread is 1 (LWP 222084)]
      (gdb) bt
      #0  0x00007d8d570fa6f3 in ha_mroonga::storage_index_first (this=0x758c673e9150, buf=0x758c673ea900 "\377")at /test/13.0_dbg/storage/mroonga/ha_mroonga.cpp:8266
      #1  0x00007d8d570fa8d3 in ha_mroonga::index_first (this=0x758c673e9150, buf=0x758c673ea900 "\377")at /test/13.0_dbg/storage/mroonga/ha_mroonga.cpp:8290
      #2  0x0000592dcf8e8954 in handler::ha_index_first (this=0x758c673e9150, buf=0x758c673ea900 "\377") at /test/13.0_dbg/sql/handler.cc:4265
      #3  0x0000592dcf5cd01a in collect_statistics_for_index (thd=0x758c64000d60, table=0x758c656dceb0, index=0) at /test/13.0_dbg/sql/sql_statistics.cc:2678
      #4  0x0000592dcf5cccd8 in collect_statistics_for_table (thd=0x758c64000d60, table=0x758c656dceb0) at /test/13.0_dbg/sql/sql_statistics.cc:2862
      #5  0x0000592dcf6bea19 in mysql_admin_table (thd=0x758c64000d60, tables=0x758c6401a4d0, check_opt=0x758c64006638, operator_name=0x592dd0dbe058 <msg_analyze>, lock_type=TL_READ_NO_INSERT, org_open_for_modify=true, no_errors_from_open=false, extra_open_options=0, prepare_func=0x0, operator_func=(int (handler::*)(handler * const, THD *, HA_CHECK_OPT *)) 0x592dcf8ec720 <handler::ha_analyze(THD*, st_ha_check_opt*)>, view_operator_func=0x0, is_cmd_replicated=true)at /test/13.0_dbg/sql/sql_admin.cc:1105
      #6  0x0000592dcf6c0a76 in Sql_cmd_analyze_table::execute (this=0x758c6401ac20, thd=0x758c64000d60) at /test/13.0_dbg/sql/sql_admin.cc:1671
      #7  0x0000592dcf4e2c06 in mysql_execute_command (thd=0x758c64000d60, is_called_from_prepared_stmt=false) at /test/13.0_dbg/sql/sql_parse.cc:5905
      #8  0x0000592dcf4d3d18 in mysql_parse (thd=0x758c64000d60, rawbuf=0x758c6401a3c0 "ANALYZE TABLE t1 PERSISTENT FOR ALL", length=35, parser_state=0x7d8d744c29f0) at /test/13.0_dbg/sql/sql_parse.cc:7943
      #9  0x0000592dcf4d146e in dispatch_command (command=COM_QUERY, thd=0x758c64000d60, packet=0x758c6400b5f1 "", packet_length=35, blocking=true) at /test/13.0_dbg/sql/sql_parse.cc:1903
      #10 0x0000592dcf4d479a in do_command (thd=0x758c64000d60, blocking=true)at /test/13.0_dbg/sql/sql_parse.cc:1437
      #11 0x0000592dcf6a675e in do_handle_one_connection (connect=0x592df5bd18b0, put_in_cache=true) at /test/13.0_dbg/sql/sql_connect.cc:1514
      #12 0x0000592dcf6a6541 in handle_one_connection (arg=0x592df5bb0210)at /test/13.0_dbg/sql/sql_connect.cc:1426
      #13 0x00007d8d8069cb84 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
      #14 0x00007d8d80729d6c 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  210826  6415902490b1b0a9a500cee9bc0a41c342190605  SIGSEGV|ha_mroonga::storage_index_first|ha_mroonga::index_first|handler::ha_index_first|collect_statistics_for_index
      CS  10.11  opt  210826  6415902490b1b0a9a500cee9bc0a41c342190605  SIGSEGV|ha_mroonga::storage_index_first|handler::ha_index_first|collect_statistics_for_index|collect_statistics_for_table
      CS  11.4   dbg  210826  1a052f27e374fc9b4cb5b1fd098cf10f0e1381cc  SIGSEGV|ha_mroonga::storage_index_first|ha_mroonga::index_first|handler::ha_index_first|collect_statistics_for_index
      CS  11.4   opt  210826  1a052f27e374fc9b4cb5b1fd098cf10f0e1381cc  SIGSEGV|ha_mroonga::storage_index_first|handler::ha_index_first|collect_statistics_for_index|collect_statistics_for_table
      CS  11.8   dbg  210826  d26f9ab217a7fcf9d4eccc62c01020ff275ff42e  SIGSEGV|ha_mroonga::storage_index_first|ha_mroonga::index_first|handler::ha_index_first|collect_statistics_for_index
      CS  11.8   opt  210826  d26f9ab217a7fcf9d4eccc62c01020ff275ff42e  SIGSEGV|ha_mroonga::storage_index_first|handler::ha_index_first|collect_statistics_for_index|collect_statistics_for_table
      CS  12.3   dbg  210826  add63991988734383c5e942de2a19c6c45f511f7  SIGSEGV|ha_mroonga::storage_index_first|ha_mroonga::index_first|handler::ha_index_first|collect_statistics_for_index
      CS  12.3   opt  210826  add63991988734383c5e942de2a19c6c45f511f7  SIGSEGV|ha_mroonga::storage_index_first|handler::ha_index_first|collect_statistics_for_index|collect_statistics_for_table
      CS  13.0   dbg  210826  be111d2cd60d035d555b71da019765cfb42ea0d3  SIGSEGV|ha_mroonga::storage_index_first|ha_mroonga::index_first|handler::ha_index_first|collect_statistics_for_index
      CS  13.0   opt  210826  be111d2cd60d035d555b71da019765cfb42ea0d3  SIGSEGV|ha_mroonga::storage_index_first|handler::ha_index_first|collect_statistics_for_index|collect_statistics_for_table
      CS  13.1   dbg  210826  ff09eefbe4e8b57846435ee4a928f17e49f0fdfc  SIGSEGV|ha_mroonga::storage_index_first|ha_mroonga::index_first|handler::ha_index_first|collect_statistics_for_index
      CS  13.1   opt  210826  ff09eefbe4e8b57846435ee4a928f17e49f0fdfc  SIGSEGV|ha_mroonga::storage_index_first|handler::ha_index_first|collect_statistics_for_index|collect_statistics_for_table
      ES  10.6   dbg  210826  fcecb2620f25965723d640decede7c018bcb1dcc  SIGSEGV|ha_mroonga::storage_index_first|ha_mroonga::index_first|handler::ha_index_first|collect_statistics_for_index
      ES  10.6   opt  210826  fcecb2620f25965723d640decede7c018bcb1dcc  SIGSEGV|ha_mroonga::storage_index_first|handler::ha_index_first|collect_statistics_for_index|collect_statistics_for_table
      ES  11.4   dbg  210826  3b34189bfe675c18c4ced3ef531d016ea74c76f4  SIGSEGV|ha_mroonga::storage_index_first|ha_mroonga::index_first|handler::ha_index_first|collect_statistics_for_index
      ES  11.4   opt  210826  3b34189bfe675c18c4ced3ef531d016ea74c76f4  SIGSEGV|ha_mroonga::storage_index_first|handler::ha_index_first|collect_statistics_for_index|collect_statistics_for_table
      ES  11.8   dbg  210826  4694e931d10fecf733c34f83ea2146d31b708eb3  SIGSEGV|ha_mroonga::storage_index_first|ha_mroonga::index_first|handler::ha_index_first|collect_statistics_for_index
      ES  11.8   opt  210826  4694e931d10fecf733c34f83ea2146d31b708eb3  SIGSEGV|ha_mroonga::storage_index_first|handler::ha_index_first|collect_statistics_for_index|collect_statistics_for_table
      ES  12.3   dbg  210826  f513f503feacabfb219d4a6f965b5f72b86d4db0  SIGSEGV|ha_mroonga::storage_index_first|ha_mroonga::index_first|handler::ha_index_first|collect_statistics_for_index
      ES  12.3   opt  210826  f513f503feacabfb219d4a6f965b5f72b86d4db0  SIGSEGV|ha_mroonga::storage_index_first|handler::ha_index_first|collect_statistics_for_index|collect_statistics_for_table
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 1.5h
                  1.5h

                  Git Integration

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