Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.6, 10.11, 11.4, 11.8
-
Can result in hang or crash
Description
Assertion found while testing MDEV-37306 ,although does not related to code changes made in this branch
Leads to
|
origin/MDEV-37306 cea7feb6242b9114b543007348d8f8de0935853d |
# 2025-10-27T03:01:00 [849976] | mariadbd: /data/Server/MDEV-37306/storage/innobase/handler/handler0alter.cc:11778: virtual bool ha_innobase::commit_inplace_alter_table(TABLE*, Alter_inplace_info*, bool): Assertion `ctx0->old_table->get_ref_count() == 1' failed.
|
|
Stacktrace |
# 2025-10-27T03:06:32 [849976] | #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
|
# 2025-10-27T03:06:32 [849976] | #1 __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
|
# 2025-10-27T03:06:32 [849976] | #2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
|
# 2025-10-27T03:06:32 [849976] | #3 0x00007c5071a3a26e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
|
# 2025-10-27T03:06:32 [849976] | #4 0x00007c5071a1d8ff in __GI_abort () at ./stdlib/abort.c:79
|
# 2025-10-27T03:06:32 [849976] | #5 0x00007c5071a1d81b in __assert_fail_base (fmt=0x7c5071bc51e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x586e4b2f1c80 "ctx0->old_table->get_ref_count() == 1", file=file@entry=0x586e4b2edf50 "/data/Server/MDEV-37306/storage/innobase/handler/handler0alter.cc", line=line@entry=11778, function=function@entry=0x586e4b2f19b0 "virtual bool ha_innobase::commit_inplace_alter_table(TABLE*, Alter_inplace_info*, bool)") at ./assert/assert.c:94
|
# 2025-10-27T03:06:32 [849976] | #6 0x00007c5071a30507 in __assert_fail (assertion=0x586e4b2f1c80 "ctx0->old_table->get_ref_count() == 1", file=0x586e4b2edf50 "/data/Server/MDEV-37306/storage/innobase/handler/handler0alter.cc", line=11778, function=0x586e4b2f19b0 "virtual bool ha_innobase::commit_inplace_alter_table(TABLE*, Alter_inplace_info*, bool)") at ./assert/assert.c:103
|
# 2025-10-27T03:06:32 [849976] | #7 0x0000586e4ae94cf2 in ha_innobase::commit_inplace_alter_table (this=<optimized out>, altered_table=0x25531ee52230, ha_alter_info=0x25531ee52170, commit=<optimized out>) at /data/Server/MDEV-37306/storage/innobase/handler/handler0alter.cc:11778
|
# 2025-10-27T03:06:32 [849976] | #8 0x0000586e4ac13f25 in handler::ha_commit_inplace_alter_table (this=0x586e3c5edff8, altered_table=altered_table@entry=0x25531ee52230, ha_alter_info=ha_alter_info@entry=0x25531ee52170, commit=commit@entry=true) at /data/Server/MDEV-37306/sql/handler.cc:5439
|
# 2025-10-27T03:06:32 [849976] | #9 0x0000586e4aa609d2 in mysql_inplace_alter_table (thd=thd@entry=0x21348000d58, table_list=0x213480135b8, table=table@entry=0x586e3c612da8, altered_table=altered_table@entry=0x25531ee52230, ha_alter_info=ha_alter_info@entry=0x25531ee52170, target_mdl_request=target_mdl_request@entry=0x25531ee52af0, ddl_log_state=0x25531ee52130, trigger_param=0x25531ee52660, alter_ctx=0x25531ee536b0) at /data/Server/MDEV-37306/sql/sql_table.cc:7794
|
# 2025-10-27T03:06:32 [849976] | #10 0x0000586e4aa70f16 in mysql_alter_table (thd=thd@entry=0x21348000d58, new_db=new_db@entry=0x21348005800, new_name=<optimized out>, create_info=create_info@entry=0x25531ee54550, table_list=<optimized out>, table_list@entry=0x213480135b8, recreate_info=recreate_info@entry=0x25531ee543a0, alter_info=<optimized out>, order_num=<optimized out>, order=<optimized out>, ignore=<optimized out>, if_exists=<optimized out>) at /data/Server/MDEV-37306/sql/sql_table.cc:10851
|
# 2025-10-27T03:06:32 [849976] | #11 0x0000586e4aadeaec in Sql_cmd_alter_table::execute (this=<optimized out>, thd=0x21348000d58) at /data/Server/MDEV-37306/sql/sql_alter.cc:675
|
# 2025-10-27T03:06:32 [849976] | #12 0x0000586e4a9c5db3 in mysql_execute_command (thd=thd@entry=0x21348000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/MDEV-37306/sql/sql_parse.cc:6167
|
# 2025-10-27T03:06:32 [849976] | #13 0x0000586e4a9c68dc in mysql_parse (thd=thd@entry=0x21348000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x25531ee55410) at /data/Server/MDEV-37306/sql/sql_parse.cc:8200
|
# 2025-10-27T03:06:32 [849976] | #14 0x0000586e4a9c7f48 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x21348000d58, packet=packet@entry=0x2134800aec9 " ALTER TABLE t3 DROP COLUMN col_int_g /* E_R Thread1 QNO 6385 CON_ID 49 */ ", packet_length=packet_length@entry=76, blocking=blocking@entry=true) at /data/Server/MDEV-37306/sql/sql_parse.cc:1908
|
# 2025-10-27T03:06:32 [849976] | #15 0x0000586e4a9c93e6 in do_command (thd=thd@entry=0x21348000d58, blocking=blocking@entry=true) at /data/Server/MDEV-37306/sql/sql_parse.cc:1421
|
# 2025-10-27T03:06:32 [849976] | #16 0x0000586e4aad7859 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x586e4e39f2f8, put_in_cache=put_in_cache@entry=true) at /data/Server/MDEV-37306/sql/sql_connect.cc:1386
|
# 2025-10-27T03:06:32 [849976] | #17 0x0000586e4aad7a6a in handle_one_connection (arg=0x586e4e39f2f8) at /data/Server/MDEV-37306/sql/sql_connect.cc:1298
|
# 2025-10-27T03:06:32 [849976] | #18 0x00007c5071a91a94 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
|
# 2025-10-27T03:06:32 [849976] | #19 0x00007c5071b1ea34 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
|
RR trace is present on SDP:-
/data/results/1761549700/TBR-1569
Attachments
Issue Links
- relates to
-
MDEV-36122 Assertion failure ctx0->old_table->get_ref_count() == 1 in ha_innobase::commit_inplace_alter_table()
-
- Closed
-