Add testing with debug_mode=(cursor_copy=true) under ASAN

XMLWordPrintableJSON

    • Storage Engines - Foundations
    • None
    • 3

      https://jira.mongodb.org/browse/WT-17134 revealed that we might have cases when we use keys/values returned from cursors illegally (we don't own the memory returned, and using it after we call subsequent calls on this cursors may cause problems).

      `debug_mode=(cursor_copy=true)` is a special mode that forces memory free for the key/value buffers every time we access the cursor once more. In combination with ASAN it should give us clear picture on whether we do something like this in other places.

       

      Scope of this ticket:

      • Add a hook with `debug_mode=(cursor_copy=true)` for python tests
      • Add an option to run test/format with `debug_mode=(cursor_copy=true)`
      • Test all these new testing options for ASC and DisAgg in evergreen under ASAN

      If by doing so we discover too many issues it should be fine to create different tickets for them and suppress them first and then fix them one after another by assigning these ticket to different teams.

      We can also ask AI to search for similar issues in our code base, I think it should do a good job for a request like this.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Ivan Kochin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: