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

innodb_log_checkpoint_now crashes when innodb_read_only is enabled

    XMLWordPrintable

Details

    Description

      --source include/have_innodb.inc
      --source include/have_debug.inc
      --let $restart_parameters=--innodb-read-only
      --source include/restart_mysqld.inc
      SET GLOBAL innodb_log_checkpoint_now=1;
      

      Leads to:

      10.6.19 f6fcfc1a6a058fd7cac6bf53216ea73f3a04b22d (Debug)

      mariadbd: /test/10.6_dbg/storage/innobase/fil/fil0fil.cc:1463: dberr_t fil_write_flushed_lsn(lsn_t): Assertion `!srv_read_only_mode' failed.
      

      10.6.19 f6fcfc1a6a058fd7cac6bf53216ea73f3a04b22d (Debug)

      Core was generated by `/test/MD030724-mariadb-10.6.19-linux-x86_64-dbg/bin/mariadbd --no-defaults --ma'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      [Current thread is 1 (Thread 0x15308020e700 (LWP 1012850))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x000015308b715859 in __GI_abort () at abort.c:79
      #2  0x000015308b715729 in __assert_fail_base (fmt=0x15308b8ab588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x555e366b60c2 "!srv_read_only_mode", file=0x555e367302e0 "/test/10.6_dbg/storage/innobase/fil/fil0fil.cc", line=1463, function=<optimized out>) at assert.c:92
      #3  0x000015308b726fd6 in __GI___assert_fail (assertion=assertion@entry=0x555e366b60c2 "!srv_read_only_mode", file=file@entry=0x555e367302e0 "/test/10.6_dbg/storage/innobase/fil/fil0fil.cc", line=line@entry=1463, function=function@entry=0x555e36731650 "dberr_t fil_write_flushed_lsn(lsn_t)") at assert.c:101
      #4  0x0000555e3617a5b4 in fil_write_flushed_lsn (lsn=8204) at /test/10.6_dbg/storage/innobase/fil/fil0fil.cc:1463
      #5  0x0000555e35e1de09 in checkpoint_now_set (save=<optimized out>) at /test/10.6_dbg/storage/innobase/handler/ha_innodb.cc:18366
      #6  0x0000555e3579c38f in sys_var_pluginvar::global_update (this=0x555e39677678, thd=0x153058000d48, var=0x153058013658) at /test/10.6_dbg/sql/sql_plugin.cc:3679
      #7  0x0000555e356a3cc4 in sys_var::update (this=0x555e39677678, thd=0x153058000d48, var=0x153058013658) at /test/10.6_dbg/sql/set_var.cc:207
      #8  0x0000555e356a4207 in set_var::update (this=<optimized out>, thd=<optimized out>) at /test/10.6_dbg/sql/set_var.cc:863
      #9  0x0000555e356a54cf in sql_set_variables (thd=thd@entry=0x153058000d48, var_list=var_list@entry=0x153058006098, free=free@entry=true) at /test/10.6_dbg/sql/set_var.cc:745
      #10 0x0000555e3579284f in mysql_execute_command (thd=thd@entry=0x153058000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_parse.cc:5118
      #11 0x0000555e3577c6c7 in mysql_parse (thd=thd@entry=0x153058000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x15308020d300) at /test/10.6_dbg/sql/sql_parse.cc:8163
      #12 0x0000555e3578aab2 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x153058000d48, packet=packet@entry=0x15305800afb9 "SET GLOBAL innodb_log_checkpoint_now=TRUE", packet_length=packet_length@entry=41, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1417
      #13 0x0000555e3578d438 in do_command (thd=0x153058000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1410
      #14 0x0000555e358e7753 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x555e39b7f3a8, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1417
      #15 0x0000555e358e7d08 in handle_one_connection (arg=arg@entry=0x555e39b7f3a8) at /test/10.6_dbg/sql/sql_connect.cc:1319
      #16 0x0000555e35d63cd2 in pfs_spawn_thread (arg=0x555e39b00048) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
      #17 0x000015308bc26609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #18 0x000015308b812133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.5.26 (dbg), 10.6.19 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.5.26 (opt), 10.6.19 (opt), 10.11.9 (dbg), 10.11.9 (opt), 11.1.6 (dbg), 11.1.6 (opt), 11.2.4 (dbg), 11.2.4 (opt), 11.4.2 (dbg), 11.4.2 (opt), 11.5.2 (dbg), 11.5.2 (opt)

      Attachments

        Activity

          People

            thiru Thirunarayanan Balathandayuthapani
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.