Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-14148

Compiler error (possible compiler bug) when compiling ASAN with v5 toolchain

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Evergreen
    • Storage Engines
    • StorEng - Defined Pipeline

      While investigating WT-14121, I detected a Clang error when running our ASAN tests. The build currently fails during compilation, and the error message is included below.
      I first tried limiting the number of parallel jobs to one based on online suggestions, but the build still failed with the same error. To speed up debugging, I worked with  jeremy.thorp@mongodb.com on a spawn host instead of using Evergreen. We mimicked the Evergreen environment by setting up the files and paths matching with the Clang command, then running this build command to see if we can reproduce the failure.

      To narrow down the issue, we started removing individual compiler flags one by one. After testing different configurations, we found that removing `-fsanitize=address` allows the build to compile successfully, regardless of what other flags are present. This makes it pretty clear that the issue is related to ASAN configuration.
      At this point, we’re also wondering if this could be a compiler bug as the output from the compiler suggests "PLEASE submit a bug report" (see failure logs in the comment below).

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            jasmine.bi@mongodb.com Jasmine Bi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: