Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
13.1
-
Not for Release Notes
Description
DELIMITER $$;
|
CREATE PROCEDURE p1() |
BEGIN
|
DECLARE nm VARBINARY(8) DEFAULT 0xFF; |
PREPARE LOCAL nm FROM 'SELECT 1'; |
END; |
$$
|
DELIMITER ;$$
|
CALL p1;
|
Leads to
|
MDEV-39022 CS 13.0.1 b93ad03edd00eec142e98f1eb3f43824c05e0e2c (Debug, Clang 18.1.3-11) Build 15/06/2026 |
mariadbd: /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/lex_ident_sys.h:40: void Lex_ident_sys_st::set_valid_utf8(const LEX_CSTRING *): Assertion `Well_formed_prefix(system_charset_info, name->str, name->length).length() == name->length' failed.
|
|
MDEV-39022 CS 13.0.1 b93ad03edd00eec142e98f1eb3f43824c05e0e2c (Debug, Clang 18.1.3-11) Build 15/06/2026 |
Core was generated by `/test/mtest/MDEV-39022/MD150626-mariadb-13.0.1-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 966146)]
|
(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 0x00007231cce4527e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
|
#4 0x00007231cce288ff in __GI_abort () at ./stdlib/abort.c:79
|
#5 0x00007231cce2881b in __assert_fail_base (fmt=0x7231ccfd01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x6051f7a96cbd "Well_formed_prefix(system_charset_info, name->str, name->length).length() == name->length", file=file@entry=0x6051f7a96c77 "/test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/lex_ident_sys.h", line=line@entry=40, function=function@entry=0x6051f7a96d17 "void Lex_ident_sys_st::set_valid_utf8(const LEX_CSTRING *)") at ./assert/assert.c:96
|
#6 0x00007231cce3b517 in __assert_fail (assertion=0x6051f7a96cbd "Well_formed_prefix(system_charset_info, name->str, name->length).length() == name->length", file=0x6051f7a96c77 "/test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/lex_ident_sys.h", line=40, function=0x6051f7a96d17 "void Lex_ident_sys_st::set_valid_utf8(const LEX_CSTRING *)") at ./assert/assert.c:105
|
#7 0x00006051f693de90 in Lex_ident_sys_st::set_valid_utf8 (this=0x7231cc1430a0, name=0x7231cc143008)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/lex_ident_sys.h:39
|
#8 0x00006051f6938981 in Lex_ident_sys::Lex_ident_sys (this=0x7231cc1430a0, name=0x7231cc143256 "\377", length=1)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/lex_ident_sys.h:61
|
#9 0x00006051f699fa13 in Lex_prepared_stmt::evaluate_name (this=0x72319c03a7d0, thd=0x72319c000d58, value_buffer=0x7231cc143298, converter_buffer=0x7231cc143238, op=0x6051f7a9123f "OPEN")at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sql_prepare.cc:2896
|
#10 0x00006051f6c3590f in sp_instr_copen_by_ref::exec_core (this=0x72319c0b9058, thd=0x72319c000d58, nextp=0x7231cc1437c8)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sp_instr.cc:2648
|
#11 0x00006051f6c2ed96 in sp_lex_keeper::reset_lex_and_exec_core (this=0x72319c0b9098, thd=0x72319c000d58, nextp=0x7231cc1437c8, open_tables=false, instr=0x72319c0b9058, rerun_the_same_instr=false)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sp_instr.cc:420
|
#12 0x00006051f6c2f51c in sp_lex_keeper::validate_lex_and_exec_core (this=0x72319c0b9098, thd=0x72319c000d58, nextp=0x7231cc1437c8, open_tables=false, instr=0x72319c0b9058)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sp_instr.cc:599
|
#13 0x00006051f6c3015a in sp_lex_keeper::cursor_reset_lex_and_exec_core (this=0x72319c0b9098, thd=0x72319c000d58, nextp=0x7231cc1437c8, open_tables=false, instr=0x72319c0b9058)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sp_instr.cc:654
|
#14 0x00006051f6c3563f in sp_instr_copen_by_ref::execute (this=0x72319c0b9058, thd=0x72319c000d58, nextp=0x7231cc1437c8)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sp_instr.cc:2628
|
#15 0x00006051f682ff1c in sp_head::execute (this=0x72319c0b76a8, thd=0x72319c000d58, merge_da_on_success=true)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sp_head.cc:1292
|
#16 0x00006051f683291e in sp_head::execute_procedure (this=0x72319c0b76a8, thd=0x72319c000d58, args=0x72319c006258)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sp_head.cc:2329
|
#17 0x00006051f695bd77 in do_execute_sp (thd=0x72319c000d58, sp=0x72319c0b76a8)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sql_parse.cc:3079
|
#18 0x00006051f695b898 in Sql_cmd_call::execute (this=0x72319c017090, thd=0x72319c000d58)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sql_parse.cc:3317
|
#19 0x00006051f6967c5d in mysql_execute_command (thd=0x72319c000d58, is_called_from_prepared_stmt=false)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sql_parse.cc:5902
|
#20 0x00006051f6956e44 in mysql_parse (thd=0x72319c000d58, rawbuf=0x72319c016e10 "CALL p1", length=7, parser_state=0x7231cc145ab0)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sql_parse.cc:7942
|
#21 0x00006051f695418d in dispatch_command (command=COM_QUERY, thd=0x72319c000d58, packet=0x72319c1cabd9 "CALL p1", packet_length=7, blocking=true)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sql_parse.cc:1898
|
#22 0x00006051f69579f3 in do_command (thd=0x72319c000d58, blocking=true)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sql_parse.cc:1432
|
#23 0x00006051f6b56c39 in do_handle_one_connection (connect=0x605228c60f98, put_in_cache=true)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sql_connect.cc:1503
|
#24 0x00006051f6b569de in handle_one_connection (arg=0x605228cd22a8)at /test/mtest/MDEV-39022/bb-13.0-bar-MDEV-39022_dbg/sql/sql_connect.cc:1415
|
#25 0x00007231cce9caa4 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
|
#26 0x00007231ccf29c6c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
|
Attachments
Issue Links
- is caused by
-
MDEV-39022 Add `LOCAL spvar` syntax for prepared statements and SYS_REFCURSORs
-
- In Testing
-