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

clang-19 + CMAKE_BUILD_TYPE=Debug generates checksum failing binlogs

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Incomplete
    • 10.5.27, 10.11.10
    • N/A
    • Replication

    Description

      ***Warnings generated in error logs during shutdown after running tests: main.rpl_mysqldump_slave
       
      2024-12-18 18:19:04 7 [ERROR] Error in Log_event::read_log_event(): 'Replication event checksum verification failed while reading from a log file', data_len: 252, event_type: 15
      2024-12-18 18:19:04 6 [ERROR] Could not use ./slave-relay-bin.000002 for logging (error 11). Turning logging off for the whole duration of the MariaDB server process. To turn it on again: fix the cause, shutdown the MariaDB server and restart it.
      2024-12-18 18:19:04 6 [ERROR] Slave I/O: Relay log write failure: could not queue event from master, Internal MariaDB error code: 1595
       
      $    $CXX --version
      clang version 19.1.5 (Fedora 19.1.5-1.fc41)
      Target: x86_64-redhat-linux-gnu
      Thread model: posix
      InstalledDir: /usr/bin
      Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang++.cfg
      

      Same with pretty much any binary log related test.

      Attachments

        Activity

          knielsen Kristian Nielsen added a comment - - edited

          Hm, wasn't able to reproduce. Tried with clang 19 in debian unstable, and then again in the same quay.io/mariadb-foundation/bb-worker:fedora41 container that Daniel told me he was using:

            docker run -it --user root --rm quay.io/mariadb-foundation/bb-worker:fedora41 bash
           
            dnf install -y clang
            su - buildbot
           
            mkdir knielsen
            cd knielsen
            git clone https://github.com/MariaDB/server.git
            cd server
            git checkout 10.5
            git submodule update --init --recursive
            mkdir build
            cd build
            cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DPLUGIN_{MROONGA,CONNECT,OQGRAPH,ROCKSDB}=NO ../
            /usr/bin/time cmake --build . --parallel 16
            (cd mysql-test/ && ./mtr main.rpl_mysqldump_slave)
          

          Logging: /home/buildbot/knielsen/server/mysql-test/mysql-test-run.pl  main.rpl_mysqldump_slave
          VS config: 
          vardir: /home/buildbot/knielsen/server/build/mysql-test/var
          Removing old var directory...
          Creating var directory '/home/buildbot/knielsen/server/build/mysql-test/var'...
          Checking supported features...
          MariaDB Version 10.5.28-MariaDB-debug
           - SSL connections supported
           - binaries are debug compiled
           - binaries built with wsrep patch
          Collecting tests...
          Installing system database...
           
          ==============================================================================
           
          TEST                                      RESULT   TIME (ms) or COMMENT
          --------------------------------------------------------------------------
           
          worker[01] Using MTR_BUILD_THREAD 300, with reserved ports 19000..19029
          main.rpl_mysqldump_slave 'mix'           [ pass ]    965
          main.rpl_mysqldump_slave 'row'           [ pass ]   1116
          main.rpl_mysqldump_slave 'stmt'          [ pass ]   1026
          --------------------------------------------------------------------------
          The servers were restarted 2 times
          Spent 3.107 of 12 seconds executing testcases
           
          Completed: All 3 tests were successful.
          

          Not sure what's going on, it's somewhat concerning if there are these checksum failures, binlog checksum failures are notoriously fragile, but not sure what could be going on here?

          knielsen Kristian Nielsen added a comment - - edited Hm, wasn't able to reproduce. Tried with clang 19 in debian unstable, and then again in the same quay.io/mariadb-foundation/bb-worker:fedora41 container that Daniel told me he was using: docker run -it --user root --rm quay.io/mariadb-foundation/bb-worker:fedora41 bash   dnf install -y clang su - buildbot   mkdir knielsen cd knielsen git clone https://github.com/MariaDB/server.git cd server git checkout 10.5 git submodule update --init --recursive mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DPLUGIN_{MROONGA,CONNECT,OQGRAPH,ROCKSDB}=NO ../ /usr/bin/time cmake --build . --parallel 16 (cd mysql-test/ && ./mtr main.rpl_mysqldump_slave) Logging: /home/buildbot/knielsen/server/mysql-test/mysql-test-run.pl main.rpl_mysqldump_slave VS config: vardir: /home/buildbot/knielsen/server/build/mysql-test/var Removing old var directory... Creating var directory '/home/buildbot/knielsen/server/build/mysql-test/var'... Checking supported features... MariaDB Version 10.5.28-MariaDB-debug - SSL connections supported - binaries are debug compiled - binaries built with wsrep patch Collecting tests... Installing system database...   ==============================================================================   TEST RESULT TIME (ms) or COMMENT --------------------------------------------------------------------------   worker[01] Using MTR_BUILD_THREAD 300, with reserved ports 19000..19029 main.rpl_mysqldump_slave 'mix' [ pass ] 965 main.rpl_mysqldump_slave 'row' [ pass ] 1116 main.rpl_mysqldump_slave 'stmt' [ pass ] 1026 -------------------------------------------------------------------------- The servers were restarted 2 times Spent 3.107 of 12 seconds executing testcases   Completed: All 3 tests were successful. Not sure what's going on, it's somewhat concerning if there are these checksum failures, binlog checksum failures are notoriously fragile, but not sure what could be going on here?

          in buildbot? link?

          serg Sergei Golubchik added a comment - in buildbot? link?

          People

            Unassigned Unassigned
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.