Skip to content

Removing the ASAN_SHADOW_SIZE setting #12135

@tlively

Description

@tlively

Currently ASAN_SHADOW_SIZE defaults to 32MiB, which supports 256 MiB of real memory, but this can cause problems when users opt into larger memories (e.g. #12125). As far as I can tell, there's no reason not to remove this setting and calculate the necessary shadow memory from INITIAL_MEMORY, ALLOW_MEMORY_GROWTH and MAXIMUM_MEMORY. I'm not sure how to handle back-compat, though. Currently ASAN_SHADOW_SIZE can be set to basically any value, but the LEGACY_SETTINGS mechanism expects legacy settings to accept at most a handful of values. What is the best path forward?

  1. Keep ASAN_SHADOW_SIZE but emit warnings when its value isn't optimal.
  2. Make the LEGACY_SETTINGS mechanism more robust and complicated.
  3. Ignore ASAN_SHADOW_SIZE and emit a warning when it is used without going through the LEGACY_SETTINGS mechanism
  4. Something else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions