Skip to content

research: MemorySanitizer or equivalent built in to debug mode #1471

Open

Description

@andrewrk

Here's an example bug #1446

This issue is to investigate MemorySanitizer and do something like it or an idea inspired by it. The idea is to detect loads and stores of undefined or otherwise invalid memory and treat them as safety violations.

Ideally the performance penalty would be small enough that we would include it in ReleaseSafe mode as well as Debug mode.

Activity

  1. added
    enhancement
    contributor friendly
    on Sep 4, 2018
  2. added this to the 0.4.0 milestone on Sep 4, 2018
  3. bmeh commented on Sep 8, 2018

    @bmeh

    Can the AddressSanitizer be used also, if you are not using it already? It would be nice to know if there's a way to know anything about both sanitizer's performance penalty in relation to Zig.

    I hope it will not be included in ReleaseFast though, or at the very least one should be able to disable those completely.

  4. andrewrk commented on Sep 9, 2018

    @andrewrk
    MemberAuthor

    It would certainly not be in ReleaseFast or ReleaseSmall builds.

    I think I was actually thinking of AddressSanitizer, not MemorySanitizer, but I'll let this issue be to investigate both of them.

  5. modified the milestones: 0.4.0, 0.5.0 on Sep 28, 2018
  6. modified the milestones: 0.5.0, 0.6.0 on Apr 12, 2019
  7. removed
    enhancement
    on Apr 12, 2019
  8. modified the milestones: 0.6.0, 0.7.0 on Dec 31, 2019
  9. removed
    contributor friendly
    on Oct 9, 2020
  10. modified the milestones: 0.7.0, 0.8.0 on Oct 9, 2020
  11. modified the milestones: 0.8.0, 0.9.0 on Nov 6, 2020
  12. added
    enhancement
    on Mar 20, 2021
  13. modified the milestones: 0.9.0, 0.10.0 on May 19, 2021
  14. added
    research
    on Aug 10, 2021
  15. moved this to To do in Safetyon Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementresearch

    Type

    No type

    Projects

    • Status
      To do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions