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

Diagnostics_area::set_eof_status(THD*): Assertion `!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())' failed on ANALYZE TABLE

    XMLWordPrintable

Details

    Description

      Somewhat similar to MDEV-34887, however different versions are affected.

      INSTALL PLUGIN Spider SONAME 'ha_spider.so';
      CREATE SERVER srv FOREIGN DATA WRAPPER MYSQL OPTIONS (SOCKET '../socket.sock',DATABASE'',USER'',PASSWORD'');
      CREATE TABLE t (c INT KEY,c1 BLOB,c2 TEXT) ENGINE=Spider COMMENT='WRAPPER "mysql",SRV "srv",TABLE "tm"';
      SET max_session_mem_used=1;
      SET GLOBAL init_connect="DROP foo";
      EXPLAIN SELECT * FROM t;
      ANALYZE TABLE t;
      

      Leads to:

      CS 11.2.6 e91a79945822def1452787f825e6047c6a64dbd9 (Debug)

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

      CS 11.2.6 e91a79945822def1452787f825e6047c6a64dbd9 (Debug)

      Core was generated by `/test/MD090924-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
       
      [Current thread is 1 (LWP 4132977)]
      (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  0x00001504f9a4526e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
      #4  0x00001504f9a288ff in __GI_abort () at ./stdlib/abort.c:79
      #5  0x00001504f9a2881b in __assert_fail_base (fmt=0x1504f9bd01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55caff249410 "!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())", file=file@entry=0x55caff249270 "/test/11.2_dbg/sql/sql_error.cc", line=line@entry=388, function=function@entry=0x55caff249448 "void Diagnostics_area::set_eof_status(THD*)") at ./assert/assert.c:94
      #6  0x00001504f9a3b507 in __assert_fail (assertion=0x55caff249410 "!is_set() || (m_status == DA_EOF_BULK && is_bulk_op())", file=0x55caff249270 "/test/11.2_dbg/sql/sql_error.cc", line=388, function=0x55caff249448 "void Diagnostics_area::set_eof_status(THD*)")at ./assert/assert.c:103
      #7  0x000055cafe4e949c in Diagnostics_area::set_eof_status (this=0x150498006f50, thd=thd@entry=0x150498000d58)at /test/11.2_dbg/sql/sql_error.cc:388
      #8  0x000055cafe6c114e in my_eof (thd=0x150498000d58)at /test/11.2_dbg/sql/sql_class.h:4559
      #9  mysql_admin_table (thd=thd@entry=0x150498000d58, tables=tables@entry=0x150498013708, check_opt=check_opt@entry=0x1504980065d8, operator_name=operator_name@entry=0x55caffacc910 <msg_analyze>, lock_type=lock_type@entry=TL_READ_NO_INSERT, org_open_for_modify=org_open_for_modify@entry=true, 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 0x000055cafe6c1776 in Sql_cmd_analyze_table::execute (this=<optimized out>, thd=0x150498000d58)at /test/11.2_dbg/sql/sql_admin.cc:1566
      #11 0x000055cafe53b427 in mysql_execute_command (thd=thd@entry=0x150498000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false)at /test/11.2_dbg/sql/sql_parse.cc:5883
      #12 0x000055cafe53cd26 in mysql_parse (thd=thd@entry=0x150498000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x1504f8bfe2a0)at /test/11.2_dbg/sql/sql_parse.cc:7929
      #13 0x000055cafe53f1bd in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x150498000d58, packet=packet@entry=0x15049800b309 "", packet_length=packet_length@entry=21, blocking=blocking@entry=true)at /test/11.2_dbg/sql/sql_class.h:248
      #14 0x000055cafe5413e3 in do_command (thd=0x150498000d58, blocking=blocking@entry=true) at /test/11.2_dbg/sql/sql_parse.cc:1407
      #15 0x000055cafe6ad35c in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55cb020a0f98, put_in_cache=put_in_cache@entry=true)at /test/11.2_dbg/sql/sql_connect.cc:1439
      #16 0x000055cafe6ad65c in handle_one_connection (arg=arg@entry=0x55cb020a0f98)at /test/11.2_dbg/sql/sql_connect.cc:1341
      #17 0x000055cafeaf462c in pfs_spawn_thread (arg=0x55cb020700e8)at /test/11.2_dbg/storage/perfschema/pfs.cc:2201
      #18 0x00001504f9a9ca94 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
      #19 0x00001504f9b29c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Bug confirmed present in:
      MariaDB: 10.11.10 (dbg), 11.2.6 (dbg), 11.4.4 (dbg), 11.6.2 (dbg), 11.7.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.5.27 (dbg), 10.5.27 (opt), 10.6.20 (dbg), 10.6.20 (opt), 10.11.10 (opt), 11.2.6 (opt), 11.4.4 (opt), 11.6.2 (opt), 11.7.0 (opt)

      Attachments

        Issue Links

          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.