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

Spider: Assertion `!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())' failed upon SHOW CREATE TABLE

    XMLWordPrintable

Details

    Description

      INSTALL PLUGIN Spider SONAME 'ha_spider.so';
      CREATE SERVER srv FOREIGN DATA WRAPPER MYSQL OPTIONS (SOCKET '../socket.sock',DATABASE'',USER'',PASSWORD'');
      CREATE TABLE t (c1 INT,c2 INT) ENGINE=InnoDB;
      CREATE TABLE t1 (c1 INT,c2 INT) ENGINE=Spider COMMENT='WRAPPER "mysql",SRV "srv",TABLE "t"';
      SET GLOBAL init_connect="foo";
      XA START 'a';
      INSERT INTO t1 VALUES (0);
      SET GLOBAL init_connect='SELECT 1';
      SHOW CREATE TABLE t1;
      

      Leads to:

      11.2.5 a21e49cbcc5f4adb1a1b4970ceead6a85e968063 (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.5 a21e49cbcc5f4adb1a1b4970ceead6a85e968063 (Debug)

      Core was generated by `/test/MD190624-mariadb-11.2.5-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 3130783)]
      (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  0x0000149764242866 in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
      #4  0x00001497642268b7 in __GI_abort () at ./stdlib/abort.c:79
      #5  0x00001497642267db in __assert_fail_base (fmt=0x1497643c5168 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55ab5240b560 "!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())", file=file@entry=0x55ab5240b3c0 "/test/11.2_dbg/sql/sql_error.cc", line=line@entry=375, function=function@entry=0x55ab5240b598 "void Diagnostics_area::set_eof_status(THD*)") at ./assert/assert.c:92
      #6  0x0000149764239186 in __assert_fail (assertion=0x55ab5240b560 "!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())", file=0x55ab5240b3c0 "/test/11.2_dbg/sql/sql_error.cc", line=375, function=0x55ab5240b598 "void Diagnostics_area::set_eof_status(THD*)")at ./assert/assert.c:101
      #7  0x000055ab5169f19d in Diagnostics_area::set_eof_status (this=0x149714006f40, thd=thd@entry=0x149714000d58)at /test/11.2_dbg/sql/sql_error.cc:375
      #8  0x000055ab5179afdb in my_eof (thd=0x149714000d58)at /test/11.2_dbg/sql/sql_class.h:4535
      #9  mysqld_show_create (thd=thd@entry=0x149714000d58, table_list=table_list@entry=0x149714013708)at /test/11.2_dbg/sql/sql_show.cc:1379
      #10 0x000055ab516ec906 in mysql_execute_command (thd=thd@entry=0x149714000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false)at /test/11.2_dbg/sql/sql_parse.cc:4409
      #11 0x000055ab516f2010 in mysql_parse (thd=thd@entry=0x149714000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14974c1af2e0)at /test/11.2_dbg/sql/sql_parse.cc:7920
      #12 0x000055ab516f43d3 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x149714000d58, packet=packet@entry=0x14971400b2f9 "", packet_length=packet_length@entry=20, blocking=blocking@entry=true)at /test/11.2_dbg/sql/sql_class.h:247
      #13 0x000055ab516f676c in do_command (thd=0x149714000d58, blocking=blocking@entry=true) at /test/11.2_dbg/sql/sql_parse.cc:1407
      #14 0x000055ab5185dc49 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55ab5402a7e8, put_in_cache=put_in_cache@entry=true)at /test/11.2_dbg/sql/sql_connect.cc:1439
      #15 0x000055ab5185df3e in handle_one_connection (arg=arg@entry=0x55ab5402a7e8)at /test/11.2_dbg/sql/sql_connect.cc:1341
      #16 0x000055ab51cb052c in pfs_spawn_thread (arg=0x55ab53f8d4c8)at /test/11.2_dbg/storage/perfschema/pfs.cc:2201
      #17 0x0000149764297ada in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:444
      #18 0x000014976432847c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Bug confirmed present in:
      MariaDB: 10.5.26 (dbg), 10.6.19 (dbg), 10.11.9 (dbg), 11.1.6 (dbg), 11.2.5 (dbg), 11.4.3 (dbg), 11.5.2 (dbg), 11.6.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.5.26 (opt), 10.6.19 (opt), 10.11.9 (opt), 11.1.6 (opt), 11.2.5 (opt), 11.4.3 (opt), 11.5.2 (opt), 11.6.0 (opt)

      Attachments

        Activity

          People

            ycp Yuchen Pei
            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.