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

Assertion `!((f->flags & 4096U) && f->vcol_info)' upon RBR with NOBLOB and unique blob

    XMLWordPrintable

Details

    • Q2/2026 Server Maintenance

    Description

      --source include/have_binlog_format_row.inc
      --source include/master-slave.inc
       
      SET binlog_row_image = NOBLOB;
      CREATE TABLE t (pk INT PRIMARY KEY, a BLOB NOT NULL, UNIQUE(a));
      INSERT IGNORE INTO t (pk) VALUES (1),(2);
       
      --sync_slave_with_master
       
      --connection master
      DROP TABLE t;
      --source include/rpl_end.inc
      

      12.3 576c47fc74fdc319269cb8838f1d6814a3dcd423

      mariadbd: /data/bld/12.3-asan-ubsan/sql/rpl_record.cc:587: int prepare_record(TABLE*): Assertion `!((f->flags & 4096U) && f->vcol_info)' failed.
      260224 20:42:29 [ERROR] /share8t/bld/12.3-asan-ubsan/sql/mariadbd got signal 6 ;
       
      #10 0x00007f87e3c53eb2 in __GI___assert_fail (assertion=0x56369c7ada20 "!((f->flags & 4096U) && f->vcol_info)", file=0x56369c7aca80 "/data/bld/12.3-asan-ubsan/sql/rpl_record.cc", line=587, function=0x56369c7ad9e0 "int prepare_record(TABLE*)") at ./assert/assert.c:101
      #11 0x0000563699ee1c61 in prepare_record (table=table@entry=0x6190000a1498) at /data/bld/12.3-asan-ubsan/sql/rpl_record.cc:587
      #12 0x0000563699e97512 in Write_rows_log_event::write_row (this=this@entry=0x6130000a0258, rgi=rgi@entry=0x61d0002af880, overwrite=overwrite@entry=false) at /data/bld/12.3-asan-ubsan/sql/log_event_server.cc:7604
      #13 0x0000563699e996de in Write_rows_log_event::do_exec_row (this=0x6130000a0258, rgi=0x61d0002af880) at /data/bld/12.3-asan-ubsan/sql/log_event_server.cc:7768
      #14 0x0000563699e7f9f0 in Rows_log_event::do_apply_event (this=<optimized out>, rgi=0x61d0002af880) at /data/bld/12.3-asan-ubsan/sql/log_event_server.cc:5487
      #15 0x0000563699dfbcb7 in Log_event::apply_event (this=this@entry=0x6130000a0258, rgi=rgi@entry=0x61d0002af880) at /data/bld/12.3-asan-ubsan/sql/log_event.cc:4247
      #16 0x00005636974d516a in apply_event_and_update_pos_apply (ev=ev@entry=0x6130000a0258, thd=thd@entry=0x62c000230218, rgi=rgi@entry=0x61d0002af880, reason=reason@entry=0) at /data/bld/12.3-asan-ubsan/sql/slave.cc:3518
      #17 0x00005636974e80b0 in apply_event_and_update_pos (ev=ev@entry=0x6130000a0258, thd=thd@entry=0x62c000230218, rgi=rgi@entry=0x61d0002af880) at /data/bld/12.3-asan-ubsan/sql/slave.cc:3695
      #18 0x00005636974eb602 in exec_relay_log_event (thd=<optimized out>, rli=rli@entry=0x62b00004f408, serial_rgi=serial_rgi@entry=0x61d0002af880) at /data/bld/12.3-asan-ubsan/sql/slave.cc:4137
      #19 0x00005636974f4da6 in handle_slave_sql (arg=0x62b00004d200) at /data/bld/12.3-asan-ubsan/sql/slave.cc:5369
      #20 0x000056369a4fce4d in pfs_spawn_thread (arg=0x61700003ae18) at /data/bld/12.3-asan-ubsan/storage/perfschema/pfs.cc:2198
      #21 0x00007f87e3ca81c4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #22 0x00007f87e3d2885c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      No obvious immediate problem on a non-debug build.

      The failure started happening after this commit in 12.3.1:

      commit be237b3b0e30dbc2ec91246b7c5ed476e7bc0583
      Author: Monty
      Date:   Sat May 10 14:07:28 2025 +0300
       
          MDEV-36290: Improved support of replication between tables of different structure
          
          One can have data loss in multi-master setups when 1) both masters
      

      However, the commit added the assertion in question, so I'm not sure whether it is a regression, or an old bug revealed by the new assertion, or a bogus assertion.

      Attachments

        Issue Links

          Activity

            People

              gkodinov Georgi Kodinov
              elenst Elena Stepanova
              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.