Skip to content

ASAN reports a memory error when running AzCore.Test #18471

Closed
@djfos

Description

Describe the bug
Address sanitizer reports a memory error when running AzCore.Test. This is a konwn bug of google test.

[Bug]: ASAN heap-buffer-overflow in ParseGoogleTestFlagsOnlyImpl() in gtest.cc · Issue #4532 · google/googletest

It prevents us to debug code using ASAN through unit tests.

Assets required
None.

Steps to reproduce
Steps to reproduce the behavior:

  1. Config project with -DLY_BUILD_WITH_ADDRESS_SANITIZER=ON.
  2. Build and run AzCore.Test in debug configration.
  3. See error.

Expected behavior
Test start successfully.

Actual behavior
Test crash.

Found in Branch
latest commit on development branch.

Desktop/Device:

  • Device: PC
  • OS: Windows
  • Version 11
  • CPU 12th Gen Intel(R) Core(TM) i7-12700KF
  • GPU NVIDIA GeForce RTX 3080
  • Memory 64GB

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/coreCategorizes an issue or PR as relevant to SIG Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions