Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63548

Determine why using SCons.Object affects initializers

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Server Development Platform
    • ALL

    Description

      While investigating SERVER-63400, we discovered that using SCons.Object to create an object file and then using it as a source file in a builder has a different result than letting SCons chain builders on its own. Specifically, the resulting binary worked with SCons.Object but produced this error when using standard chained builders:

      Attempt to add global initializer failed, status: CannotMutateObject: Initializer dependency graph is frozen
      [1]    14751 abort (core dumped)  build/install/bin/mongo_csfle_shlib_test
      

      We should investigate why this is happening and determine whether it's a problem to be fixed or is simply behavior to be documented.

      Attachments

        Activity

          People

            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            ryan.egesdahl@mongodb.com Ryan Egesdahl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: