Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8324

Improve core dump handling for ASAN builds

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.0.0, 5.3.0, 5.2.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None
    • 5
    • Storage - Ra 2021-12-13

      ASAN allocates a huge amount of shadow memory when it runs. This make it impossible to dump core if an ASAN enabled test fails.  To ameliorate this issue and get more useful information in for these failures we should:

      1. Run ASAN tests with the unmap_shadow_on_exit=1 set in the ASAN_OPTIONS.  If ASAN detects an error, this should cause it to release its shadow memory before attempting to dump core.
      2. Update the hang analyzer so that it doesn't try to generate core files after attaching gdb to a ASAN binary.  (Or, better, figure out how to unmap the shadow memory via gdb so it can dump core.)

            Assignee:
            will.korteland@mongodb.com Will Korteland
            Reporter:
            keith.smith@mongodb.com Keith Smith
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: