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

MariaDB cannot be compiled with -fsanitize=pointer-compare due to two invalid pointer pairs

    XMLWordPrintable

Details

    Description

      MariaDB cannot currently be Clang, ASAN compiled with -fsanitize=address,pointer-compare

      During compilation with this flag, the following two invalid-pointer-pair issues are observed:

      CS 95975b921e900551240ac28457e28efb6d02c1bb (Debug, UBASAN, Clang)

      ==731607==ERROR: AddressSanitizer: invalid-pointer-pair: 0x7fff37f7cde8 0xfffffffffffffff0
          #0 0x55fb72d27fbb in main /test/10.11_opt_san/scripts/comp_sql.c:129:22
          #1 0x14c298e2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
          #2 0x14c298e2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
          #3 0x55fb72c4c5f4 in _start (/test/10.11_opt_san/scripts/comp_sql+0x2d5f4) (BuildId: 1e0b9f54a6ed127ec7099f41a54a19335c14cbe3)
       
      Address 0x7fff37f7cde8 is located in stack of thread T0
      Address 0xfffffffffffffff0 is a wild pointer inside of access range of size 0x000000000001.
      SUMMARY: AddressSanitizer: invalid-pointer-pair /test/10.11_opt_san/scripts/comp_sql.c:129:22 in main
      ==731607==ABORTING
      

      CS 95975b921e900551240ac28457e28efb6d02c1bb (Debug, UBASAN, Clang)

      ==731826==ERROR: AddressSanitizer: invalid-pointer-pair: 0x7ffe34af435c 0xfffffffffffffff2
          #0 0x5623a95a286d in process_option /test/10.11_opt_san/strings/uca-dump.c:422:31
          #1 0x5623a95a2e34 in process_options /test/10.11_opt_san/strings/uca-dump.c:468:11
          #2 0x5623a95a4010 in main /test/10.11_opt_san/strings/uca-dump.c:749:7
          #3 0x154b26c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
          #4 0x154b26c2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
          #5 0x5623a94c9364 in _start (/test/10.11_opt_san/strings/uca-dump+0x2f364) (BuildId: b782b0bf5d5e72a27b6ca829ad10a605170d96cf)
       
      Address 0x7ffe34af435c is located in stack of thread T0
      Address 0xfffffffffffffff2 is a wild pointer inside of access range of size 0x000000000001.
      SUMMARY: AddressSanitizer: invalid-pointer-pair /test/10.11_opt_san/strings/uca-dump.c:422:31 in process_option
      ==731826==ABORTING
      

      Likely affects other versions also.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Roel Roel Van de Paar
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.