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

Enable detect_stack_use_after_return=1 for ASAN options in sanitizer builds

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Correctness
    • 0

      We have written bugs that this feature can detect, so it may be useful to enable it for our sanitizer builds. The stack_use_after_scope detector is enabled by default and detects very similar bugs, but there are certain cases where the return-detector is required when references to stack memory are saved but become invalidated due to the function defining the stack memory returning rather than simply exiting scope. See https://github.com/google/sanitizers/wiki/AddressSanitizerUseAfterReturn for more details. 

            Assignee:
            trevor.guidry@mongodb.com Trevor Guidry
            Reporter:
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: