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

MSAN + galera - MemorySanitizer: SEGV on unknown address

    XMLWordPrintable

Details

    • Can result in unexpected behaviour

    Description

      from MDEV-37809

       galera.galera_sst_mariabackup_logarchive:
       
      2025-10-08  3:24:14 0 [Note] WSREP: MemPool(LocalTrxHandle): hit ratio: 0, misses: 1, in use: 0, in pool: 1
       
      2025-10-08  3:24:14 0 [Note] WSREP: trx map:
       
      conn query map:
       
       
       
       
       
      2025-10-08  3:24:14 0 [ERROR] WSREP: Failed to remove page file '/build/debug/mysql-test/var/8/mysqld.2/data/gcache.page.000000': 2 (No such file or directory)
       
      MemorySanitizer:DEADLYSIGNAL
       
      ==393778==ERROR: MemorySanitizer: SEGV on unknown address 0x7fca8bfc2000 (pc 0x7fca8bfc2000 bp 0x7fca8c7c0590 sp 0x7fca8c7c03a8 T398487)
       
      ==393778==The signal is caused by a READ memory access.
       
      ==393778==Hint: PC is at a non-executable region. Maybe a wild jump?
       
          #0 0x7fca8bfc2000  (<unknown module>)
       
          #1 0x7fca973d590b in __gxx_personality_v0 /msan-build/llvm-toolchain-20-20.1.8~++20250708063551+0c9f909b7976/libcxxabi/src/cxa_personality.cpp:957:5
       
          #2 0x7fca9721eab5  (/lib/x86_64-linux-gnu/libgcc_s.so.1+0x16ab5) (BuildId: 6f03384c2e3c38887dd3ba5a24b2e18c17e2f0e0)
       
       
       
      ==393778==Register values:
       
      rax = 0x00007fca8c7c09d8  rbx = 0x00007fca8c7c03d0  rcx = 0x00003fca8c7c0518  rdx = 0x0000000080002f8e  
       
      rdi = 0x00007fca8c7c08e0  rsi = 0x00007fca8c7c03d0  rbp = 0x00007fca8c7c0590  rsp = 0x00007fca8c7c03a8  
       
       r8 = 0x0000000080002f8e   r9 = 0x00007fca8c7c0d30  r10 = 0x0000000000000000  r11 = 0x00000f0000000000  
       
      r12 = 0x000000000000000a  r13 = 0x00007fca8c7c05a8  r14 = 0x00007fca8c7c08e0  r15 = 0x00002fca8c7c0510  
       
      MemorySanitizer can not provide additional info.
       
      SUMMARY: MemorySanitizer: SEGV (<unknown module>) 
      

      Tests faults on galera.galera_sst_encrypted galera.galera_sst_mariabackup_force_recovery galera.galera_sst_mariabackup_logarchive are segfaults and lacking in detail on a crash under debug/msan and might be the same issue.

      galera-2f7e06fbf64016e7e1c65c3474dba43d62715e2b
      mariadb-server

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              danblack Daniel Black
              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.