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

Assertion `!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())' failed on SHOW CREATE PROCEDURE sys.statement_performance_analyzer

    XMLWordPrintable

Details

    Description

      Sporadic, repeat till it crashes, a few attempts may suffice.

      SET max_statement_time=0.0001;
      SHOW CREATE PROCEDURE sys.statement_performance_analyzer;
      

      Leads to:

      11.4.0 9b1ea6904965dd345478dedd80e181ad54c767da (Debug)

      mariadbd: /test/11.4_dbg/sql/sql_error.cc:375: void Diagnostics_area::set_eof_status(THD*): Assertion `!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())' failed.
      

      11.4.0 9b1ea6904965dd345478dedd80e181ad54c767da (Debug)

      Core was generated by `/test/MD060224-mariadb-11.4.0-linux-x86_64-dbg/bin/mariadbd --no-defaults --max'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=22524152448576)
          at ./nptl/pthread_kill.c:44
      [Current thread is 1 (LWP 2010237)]
      (gdb) bt
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=22524152448576) at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=22524152448576) at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=22524152448576, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      #3  0x0000147c66842476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      #4  0x0000147c668287f3 in __GI_abort () at ./stdlib/abort.c:79
      #5  0x0000147c6682871b in __assert_fail_base (fmt=0x147c669dd130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5649fd41bf40 "!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())", file=0x5649fd41bda0 "/test/11.4_dbg/sql/sql_error.cc", line=375, function=<optimized out>) at ./assert/assert.c:92
      #6  0x0000147c66839e96 in __GI___assert_fail (assertion=0x5649fd41bf40 "!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())", file=0x5649fd41bda0 "/test/11.4_dbg/sql/sql_error.cc", line=375, function=0x5649fd41bf78 "void Diagnostics_area::set_eof_status(THD*)") at ./assert/assert.c:101
      #7  0x00005649fc7bdef9 in Diagnostics_area::set_eof_status (this=0x147c10006e78, thd=thd@entry=0x147c10000d58) at /test/11.4_dbg/sql/sql_error.cc:375
      #8  0x00005649fc74d9e9 in my_eof (thd=0x147c10000d58) at /test/11.4_dbg/sql/sql_class.h:4592
      #9  sp_head::show_create_routine (this=<optimized out>, thd=thd@entry=0x147c10000d58, sph=sph@entry=0x5649fddbe690 <sp_handler_procedure>) at /test/11.4_dbg/sql/sp_head.cc:3105
      #10 0x00005649fccb1ab7 in Sp_handler::sp_show_create_routine (this=0x5649fddbe690 <sp_handler_procedure>, thd=thd@entry=0x147c10000d58, name=0x147c10018ef8) at /test/11.4_dbg/sql/sp.cc:1975
      #11 0x00005649fc80f153 in mysql_execute_command (thd=thd@entry=0x147c10000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/11.4_dbg/sql/sql_parse.cc:5545
      #12 0x00005649fc810e39 in mysql_parse (thd=thd@entry=0x147c10000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x147c501af1e0) at /test/11.4_dbg/sql/sql_parse.cc:7798
      #13 0x00005649fc8131fc in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x147c10000d58, packet=packet@entry=0x147c1000b1c9 "", packet_length=packet_length@entry=56, blocking=blocking@entry=true) at /test/11.4_dbg/sql/sql_class.h:254
      #14 0x00005649fc815333 in do_command (thd=0x147c10000d58, blocking=blocking@entry=true) at /test/11.4_dbg/sql/sql_parse.cc:1406
      #15 0x00005649fc97b9fd in do_handle_one_connection (connect=<optimized out>, connect@entry=0x564a004ec5f8, put_in_cache=put_in_cache@entry=true) at /test/11.4_dbg/sql/sql_connect.cc:1417
      #16 0x00005649fc97bcf2 in handle_one_connection (arg=arg@entry=0x564a004ec5f8) at /test/11.4_dbg/sql/sql_connect.cc:1319
      #17 0x00005649fcdc8e9a in pfs_spawn_thread (arg=0x564a0045d768) at /test/11.4_dbg/storage/perfschema/pfs.cc:2201
      #18 0x0000147c66894ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #19 0x0000147c66926850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Bug confirmed present in:
      MariaDB: 11.4.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.4.33 (dbg), 10.4.33 (opt), 10.5.24 (dbg), 10.5.24 (opt), 10.6.17 (dbg), 10.6.17 (opt), 10.11.7 (dbg), 10.11.7 (opt), 11.0.5 (dbg), 11.0.5 (opt), 11.1.4 (dbg), 11.1.4 (opt), 11.2.3 (dbg), 11.2.3 (opt), 11.3.2 (dbg), 11.3.2 (opt), 11.4.0 (opt)

      Attachments

        Activity

          People

            shulga Dmitry Shulga
            Roel Roel Van de Paar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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