Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-40216

Assertion `thd->is_error() || thd->killed' failed in bool do_execute_sp(THD *, sp_head *)

    XMLWordPrintable

Details

    • Not for Release Notes
    • Q3/2026 Server Maintenance

    Description

      MTR Test

      SET sql_mode=ORACLE;
      CREATE TABLE tb (c_int INT);
      DELIMITER $$;
      CREATE PACKAGE pk AS
        TYPE rec IS RECORD (f tb.c_int%TYPE);
        TYPE aa IS TABLE OF INT INDEX BY INTEGER;
      END;$$
      CREATE PROCEDURE p AS r pk.rec; v pk.aa;
      BEGIN r.f := 5; v(r.f) := 99; SELECT v(5); END;$$
      DELIMITER ;$$
      CALL p;
      

      MDEV-39587 CS 13.1.0 667959df058b5179e737f103d78abef77f1bca5e (Debug, Clang 18.1.3-11) Build 22/06/2026

      mariadbd: /test/mtest/MDEV-39587/bb-13.1-bar-MDEV-39587_dbg/sql/sql_parse.cc:3091: bool do_execute_sp(THD *, sp_head *): Assertion `thd->is_error() || thd->killed' failed.
      

      MDEV-39587 CS 13.1.0 667959df058b5179e737f103d78abef77f1bca5e (Debug, Clang 18.1.3-11) Build 22/06/2026

      Core was generated by `/test/mtest/MDEV-39587/MD220626-mariadb-13.1.0-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 1675305)]
      (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  0x000072840644527e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
      #4  0x00007284064288ff in __GI_abort () at ./stdlib/abort.c:79
      #5  0x000072840642881b in __assert_fail_base (fmt=0x7284065d01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5b98e4399a01 "thd->is_error() || thd->killed", file=file@entry=0x5b98e43a536b "/test/mtest/MDEV-39587/bb-13.1-bar-MDEV-39587_dbg/sql/sql_parse.cc", line=line@entry=3091, function=function@entry=0x5b98e43a6bc2 "bool do_execute_sp(THD *, sp_head *)") at ./assert/assert.c:96
      #6  0x000072840643b517 in __assert_fail (assertion=0x5b98e4399a01 "thd->is_error() || thd->killed", file=0x5b98e43a536b "/test/mtest/MDEV-39587/bb-13.1-bar-MDEV-39587_dbg/sql/sql_parse.cc", line=3091, function=0x5b98e43a6bc2 "bool do_execute_sp(THD *, sp_head *)")at ./assert/assert.c:105
      #7  0x00005b98e32431e2 in do_execute_sp (thd=0x6a82d0000d60, sp=0x6a82d004f0b0)at /test/mtest/MDEV-39587/bb-13.1-bar-MDEV-39587_dbg/sql/sql_parse.cc:3091
      #8  0x00005b98e3242bd8 in Sql_cmd_call::execute (this=0x6a82d001a680, thd=0x6a82d0000d60)at /test/mtest/MDEV-39587/bb-13.1-bar-MDEV-39587_dbg/sql/sql_parse.cc:3322
      #9  0x00005b98e324f008 in mysql_execute_command (thd=0x6a82d0000d60, is_called_from_prepared_stmt=false)at /test/mtest/MDEV-39587/bb-13.1-bar-MDEV-39587_dbg/sql/sql_parse.cc:5905
      #10 0x00005b98e323e184 in mysql_parse (thd=0x6a82d0000d60, rawbuf=0x6a82d001a3e0 "CALL p", length=6, parser_state=0x6a83c3911ab0)at /test/mtest/MDEV-39587/bb-13.1-bar-MDEV-39587_dbg/sql/sql_parse.cc:7945
      #11 0x00005b98e323b4cd in dispatch_command (command=COM_QUERY, thd=0x6a82d0000d60, packet=0x6a82d000b611 "CALL p", packet_length=6, blocking=true)at /test/mtest/MDEV-39587/bb-13.1-bar-MDEV-39587_dbg/sql/sql_parse.cc:1903
      #12 0x00005b98e323ed33 in do_command (thd=0x6a82d0000d60, blocking=true)at /test/mtest/MDEV-39587/bb-13.1-bar-MDEV-39587_dbg/sql/sql_parse.cc:1437
      #13 0x00005b98e343d2e9 in do_handle_one_connection (connect=0x5b99182f85e0, put_in_cache=true)at /test/mtest/MDEV-39587/bb-13.1-bar-MDEV-39587_dbg/sql/sql_connect.cc:1503
      #14 0x00005b98e343d08e in handle_one_connection (arg=0x5b9918280820)at /test/mtest/MDEV-39587/bb-13.1-bar-MDEV-39587_dbg/sql/sql_connect.cc:1415
      #15 0x000072840649caa4 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
      #16 0x0000728406529c6c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              ramesh Ramesh Sivaraman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0d
                  0d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 0.5h
                  0.5h

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.