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

Server crashes when binlog_space_limit is set to 1 after setting the binary log larger than the max limit

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 11.4, 11.5(EOL)
    • 11.4
    • Replication
    • None

    Description

      source include/master-slave.inc;
       
      --error ER_NO_UNIQUE_LOGFILE
      RESET MASTER TO 2147483648;
      SET GLOBAL binlog_space_limit=1;
      

      Leads to:

      11.5.2 40eb56b609458ffc180326dfd8e02b4a330e84ca (Optimized)

      Core was generated by `/test/MD270624-mariadb-11.5.2-linux-x86_64-opt/bin/mariadbd --no-defaults --max'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  my_b_gets (info=info@entry=0x55e62044a368 <mysql_bin_log+1512>, to=0x15012812712f "", to@entry=0x150128127050 "", max_length=511, max_length@entry=512) at /test/11.5_opt/mysys/mf_iocache2.c:263
      [Current thread is 1 (Thread 0x150128129700 (LWP 2047298))]
      (gdb) bt
      #0  my_b_gets (info=info@entry=0x55e62044a368 <mysql_bin_log+1512>, to=0x15012812712f "", to@entry=0x150128127050 "", max_length=511, max_length@entry=512) at /test/11.5_opt/mysys/mf_iocache2.c:263
      #1  0x000055e61f3f0750 in MYSQL_BIN_LOG::find_next_log (this=0x55e620449d80 <mysql_bin_log>, linfo=0x1501281279a0, need_lock=<optimized out>) at /test/11.5_opt/sql/log.cc:4353
      #2  0x000055e61f3f101b in MYSQL_BIN_LOG::count_binlog_space (this=this@entry=0x55e620449d80 <mysql_bin_log>) at /test/11.5_opt/sql/log.cc:5542
      #3  0x000055e61f194a18 in update_binlog_space_limit (type=<optimized out>) at /test/11.5_opt/sql/sys_vars.cc:1264
      #4  0x000055e61ef756ca in sys_var::update (this=0x55e620441de0 <Sys_binlog_space_limit>, thd=0x1500f0000c58, var=0x1500f00180c8) at /test/11.5_opt/include/mysql/psi/mysql_thread.h:795
      #5  0x000055e61ef75b4b in set_var::update (this=<optimized out>, thd=<optimized out>) at /test/11.5_opt/sql/set_var.cc:868
      #6  0x000055e61ef76d29 in sql_set_variables (thd=thd@entry=0x1500f0000c58, var_list=var_list@entry=0x1500f0005f18, free=free@entry=true) at /test/11.5_opt/sql/set_var.cc:750
      #7  0x000055e61f04ed91 in mysql_execute_command (thd=0x1500f0000c58, is_called_from_prepared_stmt=<optimized out>) at /test/11.5_opt/sql/sql_parse.cc:4841
      #8  0x000055e61f03cbf6 in mysql_parse (thd=0x1500f0000c58, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>) at /test/11.5_opt/sql/sql_parse.cc:7868
      #9  0x000055e61f0493dd in dispatch_command (command=COM_QUERY, thd=0x1500f0000c58, packet=<optimized out>, packet_length=<optimized out>, blocking=<optimized out>) at /test/11.5_opt/sql/sql_class.h:1638
      #10 0x000055e61f04b84e in do_command (thd=0x1500f0000c58, blocking=blocking@entry=true) at /test/11.5_opt/sql/sql_parse.cc:1405
      #11 0x000055e61f17f947 in do_handle_one_connection (connect=<optimized out>, put_in_cache=true) at /test/11.5_opt/sql/sql_connect.cc:1447
      #12 0x000055e61f17fc8d in handle_one_connection (arg=arg@entry=0x55e6231d6688) at /test/11.5_opt/sql/sql_connect.cc:1349
      #13 0x000055e61f536e8c in pfs_spawn_thread (arg=0x55e62317aed8) at /test/11.5_opt/storage/perfschema/pfs.cc:2201
      #14 0x000015013e256609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #15 0x000015013de42133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 11.4.2 (dbg), 11.4.2 (opt), 11.5.2 (dbg), 11.5.2 (opt)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.5.26 (dbg), 10.5.26 (opt), 10.6.18 (dbg), 10.6.18 (opt), 10.11.8 (dbg), 10.11.8 (opt), 10.11.9 (dbg), 10.11.9 (opt), 11.1.5 (dbg), 11.1.5 (opt), 11.1.6 (dbg), 11.1.6 (opt), 11.2.4 (dbg), 11.2.4 (opt)

      Attachments

        Issue Links

          Activity

            People

              Elkin Andrei Elkin
              ramesh Ramesh Sivaraman
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.