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

Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed from mysql_sql_stmt_prepare

    XMLWordPrintable

Details

    Description

      SET @@max_statement_time=0.0001;
      PREPARE p FROM 'CALL sys.statement_performance_analyzer(NULL,NULL,NULL);';  # Repeat till crash is seen (~5-10 tries)
      

      Leads to:

      11.5.0 e4afa610539ae01164485554e2de839bea9de816 (Debug)

      mariadbd: /test/11.5_dbg/sql/sql_error.cc:335: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed.
      

      11.5.0 e4afa610539ae01164485554e2de839bea9de816 (Debug)

      Core was generated by `/test/MD170524-mariadb-11.5.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=<optimized out>)at ./nptl/pthread_kill.c:44
      Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/pthread_kill.c.
      [Current thread is 1 (LWP 3010602)]
      (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  0x0000152a69042866 in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
      #4  0x0000152a690268b7 in __GI_abort () at ./stdlib/abort.c:79
      #5  0x0000152a690267db in __assert_fail_base (fmt=0x152a691c5168 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x561398b26cf0 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=file@entry=0x561398b26bd0 "/test/11.5_dbg/sql/sql_error.cc", line=line@entry=335, function=function@entry=0x561398b26d28 "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at ./assert/assert.c:92
      #6  0x0000152a69039186 in __assert_fail (assertion=0x561398b26cf0 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=0x561398b26bd0 "/test/11.5_dbg/sql/sql_error.cc", line=335, function=0x561398b26d28 "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at ./assert/assert.c:101
      #7  0x0000561397e5b802 in Diagnostics_area::set_ok_status (this=0x152a1c006e90, affected_rows=affected_rows@entry=0, last_insert_id=last_insert_id@entry=0, message=message@entry=0x561398abd303 "Statement prepared")at /test/11.5_dbg/sql/sql_error.cc:335
      #8  0x0000561397edb71a in my_ok (message=0x561398abd303 "Statement prepared", id=0, affected_rows_arg=0, thd=0x152a1c000d58)at /test/11.5_dbg/sql/sql_class.h:4665
      #9  mysql_sql_stmt_prepare (thd=thd@entry=0x152a1c000d58)at /test/11.5_dbg/sql/sql_prepare.cc:2834
      #10 0x0000561397ea877d in mysql_execute_command (thd=thd@entry=0x152a1c000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false)at /test/11.5_dbg/sql/sql_parse.cc:3953
      #11 0x0000561397eaf0a5 in mysql_parse (thd=thd@entry=0x152a1c000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x152a4c368230)at /test/11.5_dbg/sql/sql_parse.cc:7815
      #12 0x0000561397eb1593 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x152a1c000d58, packet=packet@entry=0x152a1c00b1e9 "PREPARE p FROM 'CALL sys.statement_performance_analyzer(NULL,NULL,NULL);'", packet_length=packet_length@entry=73, blocking=blocking@entry=true) at /test/11.5_dbg/sql/sql_class.h:254
      #13 0x0000561397eb3861 in do_command (thd=0x152a1c000d58, blocking=blocking@entry=true) at /test/11.5_dbg/sql/sql_parse.cc:1405
      #14 0x00005613980281ce in do_handle_one_connection (connect=<optimized out>, connect@entry=0x56139bcd2678, put_in_cache=put_in_cache@entry=true)at /test/11.5_dbg/sql/sql_connect.cc:1445
      #15 0x00005613980284ce in handle_one_connection (arg=arg@entry=0x56139bcd2678)at /test/11.5_dbg/sql/sql_connect.cc:1347
      #16 0x000056139846c980 in pfs_spawn_thread (arg=0x56139bc527e8)at /test/11.5_dbg/storage/perfschema/pfs.cc:2201
      #17 0x0000152a69097ada in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:444
      #18 0x0000152a6912847c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Attachments

        Issue Links

          Activity

            People

              rucha174 Rucha Deodhar
              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.