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

Assertion `!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())' failed from mysql_admin_table on LOAD or CACHE INDEX

    XMLWordPrintable

Details

    Description

      INSTALL PLUGIN Spider SONAME 'ha_spider.so';
      CREATE SERVER srv FOREIGN DATA WRAPPER MYSQL OPTIONS (SOCKET '../socket.sock',DATABASE 'test',user 'Spider',PASSWORD'');
      CREATE TABLE t (c INT KEY) ENGINE=Spider;
      CREATE TABLE t2 (c INT KEY) ENGINE=Spider COMMENT='WRAPPER "mysql",SRV "srv",TABLE "t"';
      SET GLOBAL init_connect="a";
      INSERT INTO t2 VALUES (1);
      BEGIN;
      SELECT * FROM t2;
      SET max_statement_time=0.000001;
      CACHE INDEX t PARTITION (ALL) KEY(foo) IN DEFAULT;
      

      Leads to:

      11.2.6 a8517608894f43954e210035d357400b3d637195 (Debug)

      mariadbd: /test/11.2_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.2.6 a8517608894f43954e210035d357400b3d637195 (Debug)

      Core was generated by `/test/MD130824-mariadb-11.2.6-linux-x86_64-dbg/bin/mariadbd --no-defaults --max'.
      Program terminated with signal SIGABRT, Aborted.
      Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/pthread_kill.c.
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
       
      warning: 44	./nptl/pthread_kill.c: No such file or directory
      [Current thread is 1 (LWP 849645)]
      (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  0x0000145b52c4526e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
      #4  0x0000145b52c288ff in __GI_abort () at ./stdlib/abort.c:79
      #5  0x0000145b52c2881b in __assert_fail_base (fmt=0x145b52dd01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x556ab1b1a760 "!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())", file=file@entry=0x556ab1b1a5c0 "/test/11.2_dbg/sql/sql_error.cc", line=line@entry=375, function=function@entry=0x556ab1b1a798 "void Diagnostics_area::set_eof_status(THD*)") at ./assert/assert.c:94
      #6  0x0000145b52c3b507 in __assert_fail (assertion=0x556ab1b1a760 "!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())", file=0x556ab1b1a5c0 "/test/11.2_dbg/sql/sql_error.cc", line=375, function=0x556ab1b1a798 "void Diagnostics_area::set_eof_status(THD*)")at ./assert/assert.c:103
      #7  0x0000556ab0d9caa1 in Diagnostics_area::set_eof_status (this=0x145af0006f50, thd=thd@entry=0x145af0000d58)at /test/11.2_dbg/sql/sql_error.cc:375
      #8  0x0000556ab0f6fc1d in my_eof (thd=0x145af0000d58)at /test/11.2_dbg/sql/sql_class.h:4559
      #9  mysql_admin_table (thd=thd@entry=0x145af0000d58, tables=tables@entry=0x145af0013788, check_opt=check_opt@entry=0x145b505fdc80, operator_name=operator_name@entry=0x556ab23960e0 <msg_assign_to_keycache>, lock_type=lock_type@entry=TL_READ_NO_INSERT, org_open_for_modify=org_open_for_modify@entry=false, repair_table_use_frm=<optimized out>, extra_open_options=<optimized out>, prepare_func=<optimized out>, operator_func=<optimized out>, view_operator_func=<optimized out>, is_cmd_replicated=<optimized out>)at /test/11.2_dbg/sql/sql_admin.cc:1459
      #10 0x0000556ab0f70020 in mysql_assign_to_keycache (thd=thd@entry=0x145af0000d58, tables=tables@entry=0x145af0013788, key_cache_name=key_cache_name@entry=0x145af0006030)at /test/11.2_dbg/sql/sql_admin.cc:1516
      #11 0x0000556ab0dea184 in mysql_execute_command (thd=thd@entry=0x145af0000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false)at /test/11.2_dbg/sql/sql_parse.cc:4115
      #12 0x0000556ab0df0423 in mysql_parse (thd=thd@entry=0x145af0000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x145b505fe290)at /test/11.2_dbg/sql/sql_parse.cc:7922
      #13 0x0000556ab0df27aa in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x145af0000d58, packet=packet@entry=0x145af000b309 "", packet_length=packet_length@entry=49, blocking=blocking@entry=true)at /test/11.2_dbg/sql/sql_class.h:248
      #14 0x0000556ab0df4acf in do_command (thd=0x145af0000d58, blocking=blocking@entry=true) at /test/11.2_dbg/sql/sql_parse.cc:1407
      #15 0x0000556ab0f5bd1d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x556ab433cb68, put_in_cache=put_in_cache@entry=true)at /test/11.2_dbg/sql/sql_connect.cc:1439
      #16 0x0000556ab0f5c012 in handle_one_connection (arg=arg@entry=0x556ab433cb68)at /test/11.2_dbg/sql/sql_connect.cc:1341
      #17 0x0000556ab13b15c8 in pfs_spawn_thread (arg=0x556ab430bcb8)at /test/11.2_dbg/storage/perfschema/pfs.cc:2201
      #18 0x0000145b52c9ca94 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
      #19 0x0000145b52d29c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Presumed to be sporadic. Also see 1st comment.

      Bug confirmed present in:
      MariaDB: 10.5.27 (dbg), 10.6.20 (dbg), 10.11.10 (dbg), 11.1.7 (dbg), 11.2.6 (dbg), 11.4.4 (dbg), 11.5.2 (dbg), 11.6.1 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.5.27 (opt), 10.6.20 (opt), 10.11.10 (opt), 11.1.7 (opt), 11.2.6 (opt), 11.4.4 (opt), 11.5.2 (opt), 11.6.1 (opt)

      Attachments

        Issue Links

          Activity

            People

              ycp Yuchen Pei
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.