Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
13.3
-
None
-
Not for Release Notes
-
Q1/2027 Server Maintenance
Description
CREATE TABLE t (c1 INT, c2 JSON, INDEX (CAST(c2 AS JSON ARRAY))); |
ALTER TABLE t ADD INDEX (c1); |
Leads to
|
MDEV-38740 CS 13.1.0 30b179125daa805fc47b3996d09a9263bb414ca9 (Optimized, Clang 18.1.3-11) Build 13/10/2026 |
Core was generated by `/test/mtest/MDEV-38740/MD131026-mariadb-13.1.0-linux-x86_64-opt/bin/mariadbd --'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 0x000058ef2a3e4543 in st_key::options (t=0x0, this=<optimized out>)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/sql/table.cc:11254
|
|
|
[Current thread is 1 (LWP 3775770)]
|
(gdb) bt
|
#0 0x000058ef2a3e4543 in st_key::options (t=0x0, this=<optimized out>)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/sql/table.cc:11254
|
#1 TABLE_SHARE::init_from_binary_frm_image (this=0x7f6740138ba8, thd=0x77662c000c70, write=true, frm_image=<optimized out>, frm_length=<optimized out>, par_image=0x0, par_length=0)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/sql/table.cc:3496
|
#2 0x000058ef2a583857 in ha_create_table (thd=thd@entry=0x77662c000c70, path=path@entry=0x7f674013a70b "./test/#sql-alter-399cfe-4-0", db=0x77662c017d20 "test", table_name=0x77662c017ce0 "t", create_info=create_info@entry=0x7f674013bca8, frm=frm@entry=0x7f6740139210, skip_frm_file=<optimized out>)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/sql/handler.cc:6776
|
#3 0x000058ef2a3b027b in mysql_alter_table (thd=thd@entry=0x77662c000c70, new_db=new_db@entry=0x77662c005b60, new_name=new_name@entry=0x77662c005ff8, create_info=create_info@entry=0x7f674013bca8, table_list=0x77662c017d40, recreate_info=recreate_info@entry=0x7f674013b3d0, alter_info=0x7f674013bb30, order_num=0, order=0x0, ignore=<optimized out>, if_exists=<optimized out>)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/sql/sql_table.cc:11906
|
#4 0x000058ef2a425c0f in Sql_cmd_alter_table::execute (this=<optimized out>, thd=0x77662c000c70)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/sql/sql_alter.cc:705
|
#5 0x000058ef2a2f7584 in mysql_execute_command (thd=thd@entry=0x77662c000c70, is_called_from_prepared_stmt=false)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/sql/sql_parse.cc:5911
|
#6 0x000058ef2a2f2ed2 in mysql_parse (thd=thd@entry=0x77662c000c70, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f674013c580)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/sql/sql_parse.cc:7968
|
#7 0x000058ef2a2f1490 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x77662c000c70, packet=packet@entry=0x77662c008e61 "ALTER TABLE t ADD INDEX (c1)", packet_length=packet_length@entry=28, blocking=true)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/sql/sql_parse.cc:1903
|
#8 0x000058ef2a2f3351 in do_command (thd=thd@entry=0x77662c000c70, blocking=true)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/sql/sql_parse.cc:1437
|
#9 0x000058ef2a41f40d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x58ef5f1425f0, put_in_cache=true)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/sql/sql_connect.cc:1514
|
#10 0x000058ef2a41f242 in handle_one_connection (arg=arg@entry=0x58ef5f1425f0)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/sql/sql_connect.cc:1426
|
#11 0x000058ef2a7cd5c3 in pfs_spawn_thread (arg=0x58ef5f162fe0)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_opt/storage/perfschema/pfs.cc:2198
|
#12 0x00007f674329cb84 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#13 0x00007f6743329ecc in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
|
MDEV-38740 CS 13.1.0 30b179125daa805fc47b3996d09a9263bb414ca9 (Debug, Clang 18.1.3-11) Build 13/10/2026 |
Core was generated by `/test/mtest/MDEV-38740/MD131026-mariadb-13.1.0-linux-x86_64-dbg/bin/mariadbd --'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 0x00005e4054b90ee5 in st_key::options (this=0x6ce730037ed0, t=0x0)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_dbg/sql/table.cc:11254
|
|
|
[Current thread is 1 (LWP 3828001)]
|
(gdb) bt
|
#0 0x00005e4054b90ee5 in st_key::options (this=0x6ce730037ed0, t=0x0)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_dbg/sql/table.cc:11254
|
#1 0x00005e4054b8bb96 in TABLE_SHARE::init_from_binary_frm_image (this=0x74e8440bcf50, thd=0x6ce730000d60, write=true, frm_image=0x6ce730033080 "\376\001\v\f\026", frm_length=1487, par_image=0x0, par_length=0)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_dbg/sql/table.cc:3496
|
#2 0x00005e4054e800dd in ha_create_table (thd=0x6ce730000d60, path=0x74e8440bf8cb "./test/#sql-alter-3a690b-4-0", db=0x6ce73001a580 "test", table_name=0x6ce73001a540 "t", create_info=0x74e8440c1020, frm=0x74e8440be010, skip_frm_file=false)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_dbg/sql/handler.cc:6776
|
#3 0x00005e4054b31aad in mysql_alter_table (thd=0x6ce730000d60, new_db=0x6ce730005c28, new_name=0x6ce7300060c0, create_info=0x74e8440c1020, table_list=0x6ce73001a5a0, recreate_info=0x74e8440c0728, alter_info=0x74e8440c0ea8, order_num=0, order=0x0, ignore=false, if_exists=false)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_dbg/sql/sql_table.cc:11906
|
#4 0x00005e4054c040b3 in Sql_cmd_alter_table::execute (this=0x6ce73001adf0, thd=0x6ce730000d60)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_dbg/sql/sql_alter.cc:705
|
#5 0x00005e4054a02a83 in mysql_execute_command (thd=0x6ce730000d60, is_called_from_prepared_stmt=false)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_dbg/sql/sql_parse.cc:5911
|
#6 0x00005e40549f1b94 in mysql_parse (thd=0x6ce730000d60, rawbuf=0x6ce73001a490 "ALTER TABLE t ADD INDEX (c1)", length=28, parser_state=0x74e8440c2a80)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_dbg/sql/sql_parse.cc:7968
|
#7 0x00005e40549eeebd in dispatch_command (command=COM_QUERY, thd=0x6ce730000d60, packet=0x6ce73000b6c1 "ALTER TABLE t ADD INDEX (c1)", packet_length=28, blocking=true)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_dbg/sql/sql_parse.cc:1903
|
#8 0x00005e40549f2743 in do_command (thd=0x6ce730000d60, blocking=true)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_dbg/sql/sql_parse.cc:1437
|
#9 0x00005e4054bf8459 in do_handle_one_connection (connect=0x5e409735a5f0, put_in_cache=true)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_dbg/sql/sql_connect.cc:1514
|
#10 0x00005e4054bf81fe in handle_one_connection (arg=0x5e4097447250)at /test/mtest/MDEV-38740/bb-serg-MDEV-25848-mvi_dbg/sql/sql_connect.cc:1426
|
#11 0x000074e84869cb84 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#12 0x000074e848729ecc in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
Attachments
Issue Links
- is caused by
-
MDEV-25848 Support for Multi-Valued Indexes
-
- Stalled
-
-
MDEV-38740 Implement a distinct data type for JSON
-
- In Testing
-