Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
13.0, 13.1
-
Can result in hang or crash
Description
INSTALL SONAME 'ha_mroonga'; |
CREATE TABLE t1 (c1 INT,KEY(c1)) ENGINE=Mroonga; |
CHECK TABLE t1; |
ALTER TABLE t1 ENABLE KEYS; |
Leads to:
|
CS 13.0.2 b2c4e675049e23ce8c7346985f40840fcd4e583f (Optimized, Clang 22.1.8-20260621) Build 03/09/2026 |
Core was generated by `/test/MD030926-mariadb-13.0.2-linux-x86_64-opt/bin/mariadbd --no-defaults --loo'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 ha_mroonga::storage_enable_indexes (this=0x6d39af3d3540, map=..., persist=<optimized out>)at /test/13.0_opt/storage/mroonga/ha_mroonga.cpp:13892
|
|
|
[Current thread is 1 (LWP 884224)]
|
(gdb) bt
|
#0 ha_mroonga::storage_enable_indexes (this=0x6d39af3d3540, map={static BITS_PER_ELEMENT = 64, static ARRAY_ELEMENTS = 1, static ALL_BITS_SET = 18446744073709551615, buffer = {1}}, persist=<optimized out>)at /test/13.0_opt/storage/mroonga/ha_mroonga.cpp:13892
|
#1 0x0000589ff0f61b99 in alter_table_manage_keys (table=table@entry=0x6d39ad6cb5b0, indexes_were_disabled=<optimized out>, keys_onoff=keys_onoff@entry=Alter_info::ENABLE)at /test/13.0_opt/sql/sql_table.cc:7832
|
#2 0x0000589ff0f5ced9 in simple_rename_or_index_change (thd=thd@entry=0x6d39ac000c70, table_list=0x6d39ac017c70, keys_onoff=Alter_info::ENABLE, trigger_param=trigger_param@entry=0x753ae046d930, alter_ctx=alter_ctx@entry=0x753ae046cc08)at /test/13.0_opt/sql/sql_table.cc:10276
|
#3 0x0000589ff0f59a34 in mysql_alter_table (thd=thd@entry=0x6d39ac000c70, new_db=new_db@entry=0x6d39ac005ad8, new_name=new_name@entry=0x6d39ac005f70, create_info=create_info@entry=0x753ae046eca8, table_list=0x6d39ac017c70, recreate_info=recreate_info@entry=0x753ae046e3e0, alter_info=0x753ae046eb30, order_num=0, order=0x0, ignore=<optimized out>, if_exists=<optimized out>) at /test/13.0_opt/sql/sql_table.cc:11351
|
#4 0x0000589ff0fcfa83 in Sql_cmd_alter_table::execute (this=<optimized out>, thd=0x6d39ac000c70) at /test/13.0_opt/sql/sql_alter.cc:705
|
#5 0x0000589ff0ea5170 in mysql_execute_command (thd=thd@entry=0x6d39ac000c70, is_called_from_prepared_stmt=false) at /test/13.0_opt/sql/sql_parse.cc:5905
|
#6 0x0000589ff0ea0a2d in mysql_parse (thd=thd@entry=0x6d39ac000c70, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x753ae046f4f0)at /test/13.0_opt/sql/sql_parse.cc:7943
|
#7 0x0000589ff0e9f1ff in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x6d39ac000c70, packet=packet@entry=0x6d39ac008d91 "ALTER TABLE t1 ENABLE KEYS", packet_length=packet_length@entry=26, blocking=true)at /test/13.0_opt/sql/sql_parse.cc:1903
|
#8 0x0000589ff0ea0eb0 in do_command (thd=thd@entry=0x6d39ac000c70, blocking=true) at /test/13.0_opt/sql/sql_parse.cc:1437
|
#9 0x0000589ff0fc935d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x58a02820f560, put_in_cache=true)at /test/13.0_opt/sql/sql_connect.cc:1514
|
#10 0x0000589ff0fc9192 in handle_one_connection (arg=arg@entry=0x58a02820f560)at /test/13.0_opt/sql/sql_connect.cc:1426
|
#11 0x0000589ff136c453 in pfs_spawn_thread (arg=0x58a02822f950)at /test/13.0_opt/storage/perfschema/pfs.cc:2198
|
#12 0x0000753ae3a9cb84 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#13 0x0000753ae3b29d6c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
|
CS 13.0.2 b2c4e675049e23ce8c7346985f40840fcd4e583f (Debug, Clang 22.1.8-20260621) Build 03/09/2026 |
Core was generated by `/test/MD030926-mariadb-13.0.2-linux-x86_64-dbg/bin/mariadbd --no-defaults --loo'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 0x0000789ef0310435 in ha_mroonga::storage_enable_indexes (this=0x709e033e9150, map=..., persist=true)at /test/13.0_dbg/storage/mroonga/ha_mroonga.cpp:13892
|
|
|
[Current thread is 1 (LWP 883783)]
|
(gdb) bt
|
#0 0x0000789ef0310435 in ha_mroonga::storage_enable_indexes (this=0x709e033e9150, map={static BITS_PER_ELEMENT = 64, static ARRAY_ELEMENTS = 1, static ALL_BITS_SET = 18446744073709551615, buffer = {1}}, persist=true)at /test/13.0_dbg/storage/mroonga/ha_mroonga.cpp:13892
|
#1 0x0000789ef031090d in ha_mroonga::enable_indexes (this=0x709e033e9150, map={static BITS_PER_ELEMENT = 64, static ARRAY_ELEMENTS = 1, static ALL_BITS_SET = 18446744073709551615, buffer = {1}}, persist=true)at /test/13.0_dbg/storage/mroonga/ha_mroonga.cpp:13958
|
#2 0x00005fa334154af7 in handler::ha_enable_indexes (this=0x709e033e9150, map={static BITS_PER_ELEMENT = 64, static ARRAY_ELEMENTS = 1, static ALL_BITS_SET = 18446744073709551615, buffer = {1}}, persist=true)at /test/13.0_dbg/sql/handler.cc:5975
|
#3 0x00005fa333e64966 in alter_table_manage_keys (table=0x709e016dceb0, indexes_were_disabled=0, keys_onoff=Alter_info::ENABLE)at /test/13.0_dbg/sql/sql_table.cc:7832
|
#4 0x00005fa333e5d958 in simple_rename_or_index_change (thd=0x709e00000d60, table_list=0x709e0001a4d0, keys_onoff=Alter_info::ENABLE, trigger_param=0x789ef0b8bac0, alter_ctx=0x789ef0b8ad48)at /test/13.0_dbg/sql/sql_table.cc:10276
|
#5 0x00005fa333e57be6 in mysql_alter_table (thd=0x709e00000d60, new_db=0x709e00005ba0, new_name=0x709e00006038, create_info=0x789ef0b8cf90, table_list=0x709e0001a4d0, recreate_info=0x789ef0b8c6a8, alter_info=0x789ef0b8ce18, order_num=0, order=0x0, ignore=false, if_exists=false)at /test/13.0_dbg/sql/sql_table.cc:11351
|
#6 0x00005fa333f1937c in Sql_cmd_alter_table::execute (this=0x709e0001ac20, thd=0x709e00000d60) at /test/13.0_dbg/sql/sql_alter.cc:705
|
#7 0x00005fa333d4ac06 in mysql_execute_command (thd=0x709e00000d60, is_called_from_prepared_stmt=false) at /test/13.0_dbg/sql/sql_parse.cc:5905
|
#8 0x00005fa333d3bd18 in mysql_parse (thd=0x709e00000d60, rawbuf=0x709e0001a3c0 "ALTER TABLE t1 ENABLE KEYS", length=26, parser_state=0x789ef0b8e9f0) at /test/13.0_dbg/sql/sql_parse.cc:7943
|
#9 0x00005fa333d3946e in dispatch_command (command=COM_QUERY, thd=0x709e00000d60, packet=0x709e0000b5f1 "ALTER TABLE t1 ENABLE KEYS", packet_length=26, blocking=true) at /test/13.0_dbg/sql/sql_parse.cc:1903
|
#10 0x00005fa333d3c79a in do_command (thd=0x709e00000d60, blocking=true)at /test/13.0_dbg/sql/sql_parse.cc:1437
|
#11 0x00005fa333f0e75e in do_handle_one_connection (connect=0x5fa3594b7890, put_in_cache=true) at /test/13.0_dbg/sql/sql_connect.cc:1514
|
#12 0x00005fa333f0e541 in handle_one_connection (arg=0x5fa3594961f0)at /test/13.0_dbg/sql/sql_connect.cc:1426
|
#13 0x0000789f1949cb84 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#14 0x0000789f19529d6c 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 030926 1bc9eca856a32065fddce1db68edcfa6f4342578 No bug found
|
CS 10.11 opt 030926 1bc9eca856a32065fddce1db68edcfa6f4342578 No bug found
|
CS 11.4 dbg 030926 79f96bf15d2538cb78201cc85681571f56548957 No bug found
|
CS 11.4 opt 030926 79f96bf15d2538cb78201cc85681571f56548957 No bug found
|
CS 11.8 dbg 030926 e2e060ce3d8c3ce11b6c7ba28ced0f1a30c50a54 No bug found
|
CS 11.8 opt 030926 e2e060ce3d8c3ce11b6c7ba28ced0f1a30c50a54 No bug found
|
CS 12.3 dbg 030926 ab9657491197ac6a32f4f325388badda974f2fe2 No bug found
|
CS 12.3 opt 030926 ab9657491197ac6a32f4f325388badda974f2fe2 No bug found
|
CS 13.0 dbg 030926 b2c4e675049e23ce8c7346985f40840fcd4e583f SIGSEGV|ha_mroonga::storage_enable_indexes|ha_mroonga::enable_indexes|handler::ha_enable_indexes|alter_table_manage_keys
|
CS 13.0 opt 030926 b2c4e675049e23ce8c7346985f40840fcd4e583f SIGSEGV|ha_mroonga::storage_enable_indexes|alter_table_manage_keys|simple_rename_or_index_change|mysql_alter_table
|
CS 13.1 dbg 030926 b2a8c2234dbc276fe3947633c9ffea454badf48f SIGSEGV|ha_mroonga::storage_enable_indexes|ha_mroonga::enable_indexes|handler::ha_enable_indexes|alter_table_manage_keys
|
CS 13.1 opt 030926 b2a8c2234dbc276fe3947633c9ffea454badf48f SIGSEGV|ha_mroonga::storage_enable_indexes|alter_table_manage_keys|simple_rename_or_index_change|mysql_alter_table
|
ES 10.6 dbg 030926 47e099839c30841f59054ff738662d3fd5f58a08 No bug found
|
ES 10.6 opt 030926 47e099839c30841f59054ff738662d3fd5f58a08 No bug found
|
ES 11.4 dbg 030926 e953e9092e7e78da74eec4a80ead7b67d55f3772 No bug found
|
ES 11.4 opt 030926 e953e9092e7e78da74eec4a80ead7b67d55f3772 No bug found
|
ES 11.8 dbg 030926 72bfb892c8537baa3e0e5ea16e24e79171a9be22 No bug found
|
ES 11.8 opt 030926 72bfb892c8537baa3e0e5ea16e24e79171a9be22 No bug found
|
ES 12.3 dbg 030926 31a1c7393d7f943ff9e335c84923988876681b44 SIGSEGV|ha_mroonga::storage_enable_indexes|ha_mroonga::enable_indexes|handler::ha_enable_indexes|alter_table_manage_keys
|
ES 12.3 opt 030926 31a1c7393d7f943ff9e335c84923988876681b44 SIGSEGV|ha_mroonga::storage_enable_indexes|alter_table_manage_keys|simple_rename_or_index_change|mysql_alter_table
|
Attachments
Issue Links
- duplicates
-
MDEV-39556 SIGSEGV in ha_mroonga::storage_set_keys_in_use on SELECT
-
- Closed
-