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

Assertion `backup_stage <= BACKUP_WAIT_FOR_FLUSH || backup_stage >= BACKUP_END' failed

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      BACKUP STAGE START;
      BACKUP STAGE BLOCK_COMMIT;
      DROP TRIGGER IF EXISTS tr1;
      

      Leads to:

      CS 10.11.14 11d1ac7285221ab4df7d9ef7cc8ee949b01c9b32 (Debug, Clang) Build 09/06/2025

      mariadbd: /test/10.11_dbg/sql/backup.cc:651: void backup_log_ddl(const backup_log_info *): Assertion `backup_stage <= BACKUP_WAIT_FOR_FLUSH || backup_stage >= BACKUP_END' failed.
      

      CS 10.11.14 11d1ac7285221ab4df7d9ef7cc8ee949b01c9b32 (Debug, Clang) Build 09/06/2025

      Core was generated by `/test/MD090625-mariadb-10.11.14-linux-x86_64-dbg/bin/mariadbd --no-defaults --m'.
      Program terminated with signal SIGABRT, Aborted.
      Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/pthread_kill.c.
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
       
      [Current thread is 1 (LWP 394841)]
      (gdb) bt
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ./nptl/pthread_kill.c:89
      #3  0x00007a80c724527e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
      #4  0x00007a80c72288ff in __GI_abort () at ./stdlib/abort.c:79
      #5  0x00007a80c722881b in __assert_fail_base (fmt=0x7a80c73d01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x56d443570848 "backup_stage <= BACKUP_WAIT_FOR_FLUSH || backup_stage >= BACKUP_END", file=file@entry=0x56d443570703 "/test/10.11_dbg/sql/backup.cc", line=line@entry=651, function=function@entry=0x56d44357088c "void backup_log_ddl(const backup_log_info *)") at ./assert/assert.c:96
      #6  0x00007a80c723b517 in __assert_fail (assertion=0x56d443570848 "backup_stage <= BACKUP_WAIT_FOR_FLUSH || backup_stage >= BACKUP_END", file=0x56d443570703 "/test/10.11_dbg/sql/backup.cc", line=651, function=0x56d44357088c "void backup_log_ddl(const backup_log_info *)")at ./assert/assert.c:105
      #7  0x000056d4428587c6 in backup_log_ddl (info=0x7a80a05e2c20)at /test/10.11_dbg/sql/backup.cc:650
      #8  0x000056d44269410f in mysql_create_or_drop_trigger (thd=0x7a7fdc000d58, tables=0x0, create=false) at /test/10.11_dbg/sql/sql_trigger.cc:710
      #9  0x000056d4425645e3 in mysql_execute_command (thd=0x7a7fdc000d58, is_called_from_prepared_stmt=false)at /test/10.11_dbg/sql/sql_parse.cc:6005
      #10 0x000056d442552d14 in mysql_parse (thd=0x7a7fdc000d58, rawbuf=0x7a7fdc0134d0 "DROP TRIGGER IF EXISTS tr1", length=26, parser_state=0x7a80a05e4a30) at /test/10.11_dbg/sql/sql_parse.cc:8179
      #11 0x000056d4425501d4 in dispatch_command (command=COM_QUERY, thd=0x7a7fdc000d58, packet=0x7a7fdc00af59 "DROP TRIGGER IF EXISTS tr1", packet_length=26, blocking=true) at /test/10.11_dbg/sql/sql_parse.cc:1905
      #12 0x000056d4425538c3 in do_command (thd=0x7a7fdc000d58, blocking=true)at /test/10.11_dbg/sql/sql_parse.cc:1418
      #13 0x000056d44272e5a9 in do_handle_one_connection (connect=0x56d474e74bf8, put_in_cache=true) at /test/10.11_dbg/sql/sql_connect.cc:1386
      #14 0x000056d44272e342 in handle_one_connection (arg=0x56d474f86958)at /test/10.11_dbg/sql/sql_connect.cc:1298
      #15 0x00007a80c729caa4 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
      #16 0x00007a80c7329c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      Bug Detection Matrix

          Rel    o/d  Build   Commit                                    UniqueID observed             
      CS  10.6   dbg  090625  888663ce12647c5aefee5e18accd80843d726741  backup_stage <= BACKUP_WAIT_FOR_FLUSH || backup_stage >= BACKUP_END|SIGABRT|backup_log_ddl|mysql_create_or_drop_trigger|mysql_execute_command|mysql_parse
      CS  10.6   opt  090625  888663ce12647c5aefee5e18accd80843d726741  No bug found                  
      CS  10.11  dbg  090625  11d1ac7285221ab4df7d9ef7cc8ee949b01c9b32  backup_stage <= BACKUP_WAIT_FOR_FLUSH || backup_stage >= BACKUP_END|SIGABRT|backup_log_ddl|mysql_create_or_drop_trigger|mysql_execute_command|mysql_parse
      CS  10.11  opt  090625  11d1ac7285221ab4df7d9ef7cc8ee949b01c9b32  No bug found                  
      CS  11.4   dbg  090625  8c6cbb336081a5e1ad781df4a9778b61e3b4d73f  No bug found                  
      CS  11.4   opt  090625  8c6cbb336081a5e1ad781df4a9778b61e3b4d73f  No bug found                  
      CS  11.8   dbg  170625  c095283ea6f9ef25cd1bd731b6984c7cbc7e4c3f  No bug found                  
      CS  11.8   opt  170625  c095283ea6f9ef25cd1bd731b6984c7cbc7e4c3f  No bug found                  
      CS  12.0   dbg  090625  f1102da37a3dcdc8b92e0205f0a8bd878704b168  No bug found                  
      CS  12.0   opt  090625  f1102da37a3dcdc8b92e0205f0a8bd878704b168  No bug found                  
      CS  12.1   dbg  090625  6a2afb42ba86188ccda0972f9c2df363f34e10a0  No bug found                  
      CS  12.1   opt  090625  6a2afb42ba86188ccda0972f9c2df363f34e10a0  No bug found                  
      ES  10.6   dbg  090625  6111fbaf7bdcb6f1170f556ffd05d6e1a4159f62  No bug found                  
      ES  10.6   opt  090625  6111fbaf7bdcb6f1170f556ffd05d6e1a4159f62  No bug found                  
      ES  11.4   dbg  090625  9cd12544ebfd0d52d2158af66b5aced58121cf1f  No bug found                  
      ES  11.4   opt  090625  9cd12544ebfd0d52d2158af66b5aced58121cf1f  No bug found                  
      ES  11.8   dbg  170625  b9f97a5bc42a4f23889996d2891bcbb0cafcf0bc  No bug found                  
      ES  11.8   opt  170625  b9f97a5bc42a4f23889996d2891bcbb0cafcf0bc  No bug found                  
      

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            saahil Saahil Alam
            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.