Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
Can result in hang or crash
Description
--source include/have_innodb.inc
|
--source include/have_partition.inc
|
CREATE TABLE t (a BINARY) PARTITION BY LIST COLUMNS (a) (PARTITION p VALUES IN (0xFF)); |
ALTER ONLINE IGNORE TABLE t MODIFY COLUMN IF EXISTS cX INT AFTER c,ALGORITHM=COPY,LOCK=SHARED; |
|
MDEV-36436 CS 10.11.17 9213303a1eed2b5fa0208a9832287dc1cfbd1f6e (Debug, Clang 18.1.3-11) Build 09/02/2026 |
mariadbd: /test/10.11-MDEV-36436_dbg/sql/ha_partition.cc:9499: virtual int ha_partition::extra(enum ha_extra_function): Assertion `0' failed.
|
|
MDEV-36436 CS 10.11.17 9213303a1eed2b5fa0208a9832287dc1cfbd1f6e (Debug, Clang 18.1.3-11) Build 09/02/2026 |
Core was generated by `/test/10.11-MDEV-36436-MD090226-mariadb-10.11.17-linux-x86_64-dbg/bin/mariadbd'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
 |
[Current thread is 1 (LWP 4177631)]
|
(gdb) bt
|
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
|
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:78
|
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ./nptl/pthread_kill.c:89
|
#3 0x000077a65904527e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
|
#4 0x000077a6590288ff in __GI_abort () at ./stdlib/abort.c:79
|
#5 0x000077a65902881b in __assert_fail_base (fmt=0x77a6591d01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x580ad34e0465 "0", file=file@entry=0x580ad3503265 "/test/10.11-MDEV-36436_dbg/sql/ha_partition.cc", line=line@entry=9499, function=function@entry=0x580ad3504815 "virtual int ha_partition::extra(enum ha_extra_function)") at ./assert/assert.c:96
|
#6 0x000077a65903b517 in __assert_fail (assertion=0x580ad34e0465 "0", file=0x580ad3503265 "/test/10.11-MDEV-36436_dbg/sql/ha_partition.cc", line=9499, function=0x580ad3504815 "virtual int ha_partition::extra(enum ha_extra_function)") at ./assert/assert.c:105
|
#7 0x0000580ad2ba9b96 in ha_partition::extra (this=0x77a56c0355d8, operation=HA_EXTRA_BEGIN_ALTER_IGNORE_COPY)at /test/10.11-MDEV-36436_dbg/sql/ha_partition.cc:9499
|
#8 0x0000580ad258a6a2 in copy_data_between_tables (thd=0x77a56c000d58, from=0x77a56c007fb8, to=0x77a56c013048, ignore=true, order_num=0, order=0x0, copied=0x77a6339571c0, deleted=0x77a6339571b8, alter_info=0x77a63395a060, alter_ctx=0x77a6339580f8)at /test/10.11-MDEV-36436_dbg/sql/sql_table.cc:12354
|
#9 0x0000580ad2580f5b in mysql_alter_table (thd=0x77a56c000d58, new_db=0x77a56c005908, new_name=0x77a56c005d68, create_info=0x77a63395a1d0, table_list=0x77a56c0135c8, recreate_info=0x77a6339598b0, alter_info=0x77a63395a060, order_num=0, order=0x0, ignore=true, if_exists=false)at /test/10.11-MDEV-36436_dbg/sql/sql_table.cc:11597
|
#10 0x0000580ad264078e in Sql_cmd_alter_table::execute (this=0x77a56c013e18, thd=0x77a56c000d58) at /test/10.11-MDEV-36436_dbg/sql/sql_alter.cc:688
|
#11 0x0000580ad2469789 in mysql_execute_command (thd=0x77a56c000d58, is_called_from_prepared_stmt=false)at /test/10.11-MDEV-36436_dbg/sql/sql_parse.cc:6201
|
#12 0x0000580ad24574c4 in mysql_parse (thd=0x77a56c000d58, rawbuf=0x77a56c013460 "ALTER ONLINE IGNORE TABLE t MODIFY COLUMN IF EXISTS cX INT AFTER c,ALGORITHM=COPY,LOCK=SHARED", length=93, parser_state=0x77a63395ba20)at /test/10.11-MDEV-36436_dbg/sql/sql_parse.cc:8223
|
#13 0x0000580ad2454969 in dispatch_command (command=COM_QUERY, thd=0x77a56c000d58, packet=0x77a56c00aee9 "ALTER ONLINE IGNORE TABLE t MODIFY COLUMN IF EXISTS cX INT AFTER c,ALGORITHM=COPY,LOCK=SHARED", packet_length=93, blocking=true)at /test/10.11-MDEV-36436_dbg/sql/sql_parse.cc:1924
|
#14 0x0000580ad2458073 in do_command (thd=0x77a56c000d58, blocking=true)at /test/10.11-MDEV-36436_dbg/sql/sql_parse.cc:1434
|
#15 0x0000580ad2635679 in do_handle_one_connection (connect=0x580afe5d79d8, put_in_cache=true) at /test/10.11-MDEV-36436_dbg/sql/sql_connect.cc:1475
|
#16 0x0000580ad2635412 in handle_one_connection (arg=0x580afe5d7b78)at /test/10.11-MDEV-36436_dbg/sql/sql_connect.cc:1387
|
#17 0x000077a65909caa4 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#18 0x000077a659129c6c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
I have checked the latest main branch aswell , this crash happens only in this current branch
Attachments
Issue Links
- is caused by
-
MDEV-36436 Assertion "unexpected references" == 0 after ALTER IGNORE TABLE
-
- In Review
-