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

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

    XMLWordPrintableJSON

Details

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

    Description

      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`.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: