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

Build error with MSAN use-of-uninitialized-value comp_err.c:734:10

    XMLWordPrintable

Details

    Description

      clang version 10.0.1, 11.0.0
      configured with cmake . -DBUILD_CONFIG=enterprise -DWITH_MSAN=ON

      Uninitialized bytes in __interceptor_strcmp at offset 3 inside [0x702000000b78, 4)
      ==22890==WARNING: MemorySanitizer: use-of-uninitialized-value
          #0 0x5584db in find_message /home/abychko/GitHub/MariaDB/MariaDBEnterprise/extra/comp_err.c:734:10
          #1 0x5584db in parse_input_file /home/abychko/GitHub/MariaDB/MariaDBEnterprise/extra/comp_err.c:585:11
          #2 0x5584db in main /home/abychko/GitHub/MariaDB/MariaDBEnterprise/extra/comp_err.c:183:22
          #3 0x7f29e377ee8a in __libc_start_main (/lib64/libc.so.6+0x23e8a)
          #4 0x4daa59 in _start (/home/abychko/GitHub/MariaDB/MariaDBEnterprise/extra/comp_err+0x4daa59)
       
        Uninitialized value was created by a heap allocation
          #0 0x5088cd in malloc (/home/abychko/GitHub/MariaDB/MariaDBEnterprise/extra/comp_err+0x5088cd)
          #1 0x5674d7 in my_malloc /home/abychko/GitHub/MariaDB/MariaDBEnterprise/mysys/my_malloc.c:88:29
          #2 0x56782b in my_strndup /home/abychko/GitHub/MariaDB/MariaDBEnterprise/mysys/my_malloc.c:242:21
          #3 0x55803a in parse_message_string /home/abychko/GitHub/MariaDB/MariaDBEnterprise/extra/comp_err.c:927:2
          #4 0x55803a in parse_input_file /home/abychko/GitHub/MariaDB/MariaDBEnterprise/extra/comp_err.c:579:12
          #5 0x55803a in main /home/abychko/GitHub/MariaDB/MariaDBEnterprise/extra/comp_err.c:183:22
          #6 0x7f29e377ee8a in __libc_start_main (/lib64/libc.so.6+0x23e8a)
       
      SUMMARY: MemorySanitizer: use-of-uninitialized-value /home/abychko/GitHub/MariaDB/MariaDBEnterprise/extra/comp_err.c:734:10 in find_message
      Exiting
      make[2]: *** [extra/CMakeFiles/GenError.dir/build.make:82: include/mysqld_error.h.tmp] Error 77
      make[1]: *** [CMakeFiles/Makefile2:10565: extra/CMakeFiles/GenError.dir/all] Error 2
      make[1]: *** Waiting for unfinished jobs....
      

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              abychko Alexey Bychko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 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.