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

Add check that one can't change general or slow log to a transactional engine

    XMLWordPrintable

    Details

      Description

      ALTER TABLE mysql.general_log ENGINE=Aria;
      SET GLOBAL log_output='TABLE';
      SET GLOBAL general_log=TRUE;
      SET SESSION OPTIMIZER_SWITCH="derived_merge=OFF";
      

      Leads to:

      10.5.4 8569dac1ec9f6853a0b2f3ea9bcbda67644ead24

      mysqld: /test/10.5_dbg/sql/sql_parse.cc:3361: int mysql_execute_command(THD*): Assertion `thd->transaction->stmt.is_empty() || thd->in_sub_stmt' failed.
      

      10.5.4 8569dac1ec9f6853a0b2f3ea9bcbda67644ead24

      Core was generated by `/test/MD260520-mariadb-10.5.4-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
          at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
      [Current thread is 1 (Thread 0x15086fee6700 (LWP 2274707))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
      #1  0x00005575bb63dd7a in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
      #2  0x00005575bade3385 in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:330
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
      #5  0x000015086e62a801 in __GI_abort () at abort.c:79
      #6  0x000015086e61a39a in __assert_fail_base (fmt=0x15086e7a17d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5575bb7bd538 "thd->transaction->stmt.is_empty() || thd->in_sub_stmt", file=file@entry=0x5575bb7bc568 "/test/10.5_dbg/sql/sql_parse.cc", line=line@entry=3361, function=function@entry=0x5575bb7bfc00 <mysql_execute_command(THD*)::__PRETTY_FUNCTION__> "int mysql_execute_command(THD*)") at assert.c:92
      #7  0x000015086e61a412 in __GI___assert_fail (assertion=assertion@entry=0x5575bb7bd538 "thd->transaction->stmt.is_empty() || thd->in_sub_stmt", file=file@entry=0x5575bb7bc568 "/test/10.5_dbg/sql/sql_parse.cc", line=line@entry=3361, function=function@entry=0x5575bb7bfc00 <mysql_execute_command(THD*)::__PRETTY_FUNCTION__> "int mysql_execute_command(THD*)") at assert.c:101
      #8  0x00005575bab3f89f in mysql_execute_command (thd=thd@entry=0x15084dc15088) at /test/10.5_dbg/sql/sql_parse.cc:3361
      #9  0x00005575bab4602e in mysql_parse (thd=thd@entry=0x15084dc15088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x15086fee53d0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:7991
      #10 0x00005575bab32b42 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x15084dc15088, packet=packet@entry=0x15084dc67089 "SET SESSION OPTIMIZER_SWITCH=\"derived_merge=OFF\"", packet_length=packet_length@entry=48, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:1874
      #11 0x00005575bab3131c in do_command (thd=0x15084dc15088) at /test/10.5_dbg/sql/sql_parse.cc:1355
      #12 0x00005575bac8b73f in do_handle_one_connection (connect=<optimized out>, connect@entry=0x15084e8453a8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1411
      #13 0x00005575bac8be5b in handle_one_connection (arg=arg@entry=0x15084e8453a8) at /test/10.5_dbg/sql/sql_connect.cc:1313
      #14 0x00005575bb0eb14e in pfs_spawn_thread (arg=0x15086d845888) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
      #15 0x000015086f30d6db in start_thread (arg=0x15086fee6700) at pthread_create.c:463
      #16 0x000015086e70b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.5.4 (dbg)

      Bug confirmed not present in:
      MariaDB: 10.1.46 (dbg), 10.1.46 (opt), 10.2.33 (dbg), 10.2.33 (opt), 10.3.24 (dbg), 10.3.24 (opt), 10.4.14 (dbg), 10.4.14 (opt), 10.5.4 (opt)
      MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.47 (dbg), 5.6.47 (opt), 5.7.29 (dbg), 5.7.29 (opt), 8.0.19 (dbg), 8.0.19 (opt)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serg Sergei Golubchik
              Reporter:
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: