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

[Draft] translog_variable_length_header: Assertion `body_len >= length' failed upon mariabackup prepare

    XMLWordPrintable

Details

    Description

      Reproducible, although poorly, needs further work.

      The stack trace below was obtained on a customized build, 11.4 + patch for MDEV-36860. The patch doesn't cause the failure, it can happen without it, but it helps to reproduce it because without the patch the failure from MDEV-36860 usually happens first.

      11.4 1c09b5eadb40a2d0bc95c4c658455179549f950f + patch for MDEV-36860

      recovered pages: 0%mariabackup: /data/bld/bb-MDEV-24-monty-baseline-debug/storage/maria/ma_loghandler.c:7149: translog_variable_length_header: Assertion `body_len >= length' failed.
      250526 16:52:48 [ERROR] /data/bld/bb-MDEV-24-monty-baseline-debug/bin/mariabackup got signal 6 ;
      Sorry, we probably made a mistake, and this is a bug.
       
      Your assistance in bug reporting will enable us to fix this for the next release.
      To report this bug, see https://mariadb.com/kb/en/reporting-bugs about how to report
      a bug on https://jira.mariadb.org/.
       
      Please include the information from the server start above, to the end of the
      information below.
       
      Server version: 11.4.6-MariaDB-debug source revision: 1c09b5eadb40a2d0bc95c4c658455179549f950f
       
      The information page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mariadbd/
      contains instructions to obtain a better version of the backtrace below.
      Following these instructions will help MariaDB developers provide a fix quicker.
       
      Attempting backtrace. Include this in the bug report.
      (note: Retrieving this information may fail)
       
      Thread pointer: 0x0
      stack_bottom = 0x0 thread_stack 0x49000
      mysys/stacktrace.c:215(my_print_stacktrace)[0x5629b86bf904]
      sql/signal_handler.cc:230(handle_fatal_signal)[0x5629b7d807c5]
      libc_sigaction.c:0(__restore_rt)[0x7f5e6be5b050]
      nptl/pthread_kill.c:44(__pthread_kill_implementation)[0x7f5e6bea9ebc]
      posix/raise.c:27(__GI_raise)[0x7f5e6be5afb2]
      stdlib/abort.c:81(__GI_abort)[0x7f5e6be45472]
      intl/loadmsgcat.c:1177(_nl_load_domain)[0x7f5e6be45395]
      /lib/x86_64-linux-gnu/libc.so.6(+0x34eb2)[0x7f5e6be53eb2]
      maria/ma_loghandler.c:7150(translog_variable_length_header)[0x5629b7f96623]
      maria/ma_loghandler.c:7203(translog_read_record_header_from_buffer)[0x5629b7f969dc]
      maria/ma_loghandler.c:7303(translog_read_record_header_scan)[0x5629b7f96f17]
      maria/ma_loghandler.c:7375(translog_read_next_record_header)[0x5629b7f972c1]
      maria/ma_recovery.c:2804(run_redo_phase)[0x5629b7fb6dfd]
      maria/ma_recovery.c:353(maria_apply_log)[0x5629b7fb0dc9]
      maria/ma_recovery.c:240(maria_recovery_from_log)[0x5629b7fb0968]
      mariabackup/aria_backup_client.cc:1003(aria::prepare(char const*))[0x5629b7708db7]
      mariabackup/xtrabackup.cc:7011(xtrabackup_prepare_func(char**))[0x5629b76ad4ac]
      mariabackup/xtrabackup.cc:7837(main_low(char**))[0x5629b76afcd2]
      mariabackup/xtrabackup.cc:7631(main)[0x5629b76af40b]
      x86/libc-start.c:74(__libc_start_call_main)[0x7f5e6be4624a]
      csu/libc-start.c:128(call_init)[0x7f5e6be46305]
      /data/bld/bb-MDEV-24-monty-baseline-debug/bin/mariabackup(_start+0x21)[0x5629b7698941]
      Writing a core file...
      Working directory at /dev/shm/var-rqg1c/trial.1/s1/backup_0
      Resource Limits (excludes unlimited resources):
      Limit                     Soft Limit           Hard Limit           Units     
      Max stack size            8388608              unlimited            bytes     
      Max core file size        0                    unlimited            bytes     
      Max processes             514196               514196               processes 
      Max open files            1024                 1048576              files     
      Max locked memory         16854077440          16854077440          bytes     
      Max pending signals       514196               514196               signals   
      Max msgqueue size         819200               819200               bytes     
      Max nice priority         0                    0                    
      Max realtime priority     0                    0                    
      Core pattern: core
       
      Kernel version: Linux version 6.1.0-27-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01)
      

      rangen 947f3fb6d7464f290c9fe15b2a3704577ad5f2d0

      perl ./run.pl --compatibility=110499 --mysqld=--aria_force_start_after_recovery_failures=1 --mysqld=--aria_pagecache_division_limit=1 --scenario=MariaBackupIncremental --grammar=conf/yy/all_selects.yy:0.0001 --grammar=conf/yy/trx_stress.yy --grammar=conf/yy/dbt3-dml.yy --gendata=data/dbt3/dbt3-s0.001.dump --filter=conf/ff/restrict_dynamic_vars.ff --mysqld=--aria_checkpoint_log_activity=65536 --mysqld=--aria_block_size=8192 --mysqld=--aria_sync_log_dir=NEVER --mysqld=--aria_repair_threads=1 --mysqld=--aria_group_commit=none --mysqld=--aria_pagecache_buffer_size=16M --mysqld=--aria_sort_buffer_size=134217728 --threads=3 --duration=600 --mysqld=--max-statement-time=60 --mysqld=--lock-wait-timeout=30 --mysqld=--innodb-lock-wait-timeout=15 --vcols --mysqld=--aria_log_purge_type=external --mysqld=--aria_log_file_size=1048576 --mysqld=--aria_recover=QUICK --mysqld=--aria_page_checksum=on  --queries=1000000 --reporters=Backtrace,Deadlock,MemoryUsage,FeatureUsage --mysqld=--plugin-maturity=experimental --gendata=conf/zz/temporal.zz --gendata=conf/zz/dyncol_dml.zz --gendata=conf/zz/outer_join.zz --gendata=advanced --gendata=simple --mysqld=--aria_stats_method=nulls_unequal --mysqld=--large_pages=on --mysqld=--loose-aria_pagecache_segments=1 --engine=Aria --mysqld=--default-storage-engine=Aria --mysqld=--aria_checkpoint_interval=1 --mysqld=--aria_group_commit_interval=1000 --mysqld=--aria_pagecache_age_threshold=10000 --mysqld=--aria_max_sort_file_size=900719925 --base-port=22000 --basedir=/data/bld/bb-MDEV-24-monty-baseline-debug --vardir=/dev/shm/var-rqg1c --seed=1748142402 --trials=3
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.