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

Look into disabling self-move assignment assertion in g++

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Development Platform

      Currently when we do a self-move assignment or a self-swap with std::swap, our code will fail in debug mode.
      For example: https://jira.mongodb.org/browse/BF-26598

      There is a detailed discussion about this assertion on StackOverflow: https://stackoverflow.com/questions/22915325/avoiding-self-assignment-in-stdshuffle

      We should research a possibility to disable it with `__glibcxx_check_self_move_assign`.

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: