Skip to content

Support ASAN on Windows with MSVC #13703

Closed

Description

@ndossche

Description

Very nasty surprise: --enable-sanitizer silently doesn't do anything when using a VS toolchain on Windows instead of a Clang toolchain. I had to patch the configure script manually to add the necessary flags.

Activity

  1. iluuu1994 commented on Mar 13, 2024

    @iluuu1994
    Member

    Did you get it to work? I tried back when we migrated from AppVeyor to GitHub, but I ran into various issues.

  2. ndossche commented on Mar 13, 2024

    @ndossche
    MemberAuthor

    I've used it to debug a mysqlnd Windows bug a few days ago and it works, but I don't run all extensions when debugging Windows bugs. I could imagine opcache issues but I haven't tried that yet.

  3. cmb69 commented on Jul 7, 2024

    @cmb69
    Member

    See #6964 for an unfinished attempt; maybe that can be somewhat helpful.

  4. iluuu1994 commented on Jul 8, 2024

    @iluuu1994
    Member

    @cmb69 It's great to have you back! I don't remember the details (and the log is gone now) but I think the failures I referenced were the same ones you observed:

    I'm getting a lot of 0xc0000028 (STATUS_BAD_STACK, i.e. "An invalid or unaligned stack was encountered during an unwind operation."), e.g. for Zend/tests/030.phpt. I think this is bogus, but I wouldn't know how to suppress it (note that this is from MSVC, not from ASan).

  5. ndossche commented on May 6, 2025

    @ndossche
    MemberAuthor

    This has been fixed already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions