Run WT ASAN tests with debug mode options to detect use after free of cursor data

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Test Format
    • None
    • Storage Engines, Storage Engines - Foundations
    • SE Foundations - Q3+ Backlog
    • 2

      This comes from looking at WT-15588, where ASAN causes mongod to enable the cursor_copy debug option.  It's a powerful combination that can catch a "use-after-reposition" of a cursor.   It's similar to use-after-free, but is not normally detected by ASAN.

      To my knowledge, we're don't specifically set this.  Once easy way might be to alter

        - &format-stress-asan-test
          exec_timeout_secs: 25200
          commands:
            - func: "get project"
            - func: "compile wiredtiger"
              vars:
                <<: *configure_flags_asan_mongodb_stable_clang_with_builtins
                additional_san_vars: export ASAN_OPTIONS="$COMMON_SAN_OPTIONS:unmap_shadow_on_exit=1"
            - func: "format test script"
              vars:
                format_test_script_args: -t 360 

      changing the script args to -t 360 - -C "debug_mode=(cursor_copy=true)".

      It would be good to have disagg ASAN runs of test/format doing this too.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: