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

Server crash or ASAN errors in rpl_binlog_state::drop_domain

    XMLWordPrintable

Details

    • Can result in hang or crash
    • Hide
      Fixed a problem where the server would crash with a segfault when trying to drop duplicate domain ids in the same command, e.g.
      FLUSH BINARY LOGS DELETE_DOMAIN_ID=(0), BINARY LOGS DELETE_DOMAIN_ID=(0)
      Show
      Fixed a problem where the server would crash with a segfault when trying to drop duplicate domain ids in the same command, e.g. FLUSH BINARY LOGS DELETE_DOMAIN_ID=(0), BINARY LOGS DELETE_DOMAIN_ID=(0)
    • Q4/2025 Server Maintenance

    Description

      --source include/have_log_bin.inc
       
      RESET MASTER;
       
      CREATE USER u;
      FLUSH BINARY LOGS;
      PURGE BINARY LOGS TO 'master-bin.000002';
      FLUSH BINARY LOGS DELETE_DOMAIN_ID=(0), BINARY LOGS DELETE_DOMAIN_ID=(0);
       
      DROP USER u;
      

      11.4 b2c1ba820b6cda723c58f2ba01ccf2e379b7f313 plain debug

      #3  <signal handler called>
      #4  0x000055e42d1f9876 in my_hash_free_elements (hash=0x7f9e38214b80) at /data/bld/11.4-debug/mysys/hash.c:135
      #5  0x000055e42d1f9906 in my_hash_free (hash=0x7f9e38214b80) at /data/bld/11.4-debug/mysys/hash.c:157
      #6  0x000055e42c6f6903 in rpl_binlog_state::drop_domain (this=0x55e42e21e160 <rpl_global_gtid_binlog_state>, ids=0x7f9e38006d88, glev=0x7f9e38229448, errbuf=0x7f9e562df780 "") at /data/bld/11.4-debug/sql/rpl_gtid.cc:2429
      #7  0x000055e42c9df3f6 in do_delete_gtid_domain (domain_drop_lex=0x7f9e38006d88) at /data/bld/11.4-debug/sql/log.cc:7922
      #8  0x000055e42c9df556 in MYSQL_BIN_LOG::rotate_and_purge (this=0x55e42e21c0e0 <mysql_bin_log>, force_rotate=true, domain_drop_lex=0x7f9e38006d88) at /data/bld/11.4-debug/sql/log.cc:7966
      #9  0x000055e42c67ae54 in reload_acl_and_cache (thd=0x7f9e38000dc8, options=1024, tables=0x0, write_to_binlog=0x7f9e562dfdf0) at /data/bld/11.4-debug/sql/sql_reload.cc:180
      #10 0x000055e42c433ae3 in mysql_execute_command (thd=0x7f9e38000dc8, is_called_from_prepared_stmt=false) at /data/bld/11.4-debug/sql/sql_parse.cc:5343
      #11 0x000055e42c43bf3a in mysql_parse (thd=0x7f9e38000dc8, rawbuf=0x7f9e38015a80 "FLUSH BINARY LOGS DELETE_DOMAIN_ID=(0), BINARY LOGS DELETE_DOMAIN_ID=(0)", length=72, parser_state=0x7f9e562e0370) at /data/bld/11.4-debug/sql/sql_parse.cc:7900
      #12 0x000055e42c428265 in dispatch_command (command=COM_QUERY, thd=0x7f9e38000dc8, packet=0x7f9e3800be79 "FLUSH BINARY LOGS DELETE_DOMAIN_ID=(0), BINARY LOGS DELETE_DOMAIN_ID=(0)", packet_length=72, blocking=true) at /data/bld/11.4-debug/sql/sql_parse.cc:1905
      #13 0x000055e42c426b99 in do_command (thd=0x7f9e38000dc8, blocking=true) at /data/bld/11.4-debug/sql/sql_parse.cc:1418
      #14 0x000055e42c62c68e in do_handle_one_connection (connect=0x55e46336f438, put_in_cache=true) at /data/bld/11.4-debug/sql/sql_connect.cc:1497
      #15 0x000055e42c62c40f in handle_one_connection (arg=0x55e463353838) at /data/bld/11.4-debug/sql/sql_connect.cc:1409
      #16 0x000055e42cb94b3c in pfs_spawn_thread (arg=0x55e46326dda8) at /data/bld/11.4-debug/storage/perfschema/pfs.cc:2201
      #17 0x00007f9e5c4a81c4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #18 0x00007f9e5c52885c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Attachments

        Activity

          People

            bnestere Brandon Nesterenko
            elenst Elena Stepanova
            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.