Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

ASAN log parsing fails to parse "AddressSanitizer CHECK failed" logs #343

Closed
bmc-msft opened this issue Nov 24, 2020 · 0 comments · Fixed by #358
Closed

ASAN log parsing fails to parse "AddressSanitizer CHECK failed" logs #343

bmc-msft opened this issue Nov 24, 2020 · 0 comments · Fixed by #358
Labels
bug Something isn't working

Comments

@bmc-msft
Copy link
Contributor

In the linux-radamsa integration test using the ASAN instrumented "trivial-crash" binary, I saw the following log message:

unable to parse asan log /tmp/.tmpVZ5iqh/asan-log.13614:
=================================================================
==13614==AddressSanitizer CHECK failed: /build/llvm-toolchain-10-yegZYJ/llvm-toolchain-10-10.0.0/compiler-rt/lib/asan/asan_descriptions.cpp:80 "((0 && "Address is not in memory and not in shadow?")) != (0)" (0x0, 0x0)
    #0 0x49bbee in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/onefuzz/blob-containers/oft-setup-3a9daf5d852453d4af5680a55b21d482/fuzz.exe+0x49bbee)
    #1 0x4b010f in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/onefuzz/blob-containers/oft-setup-3a9daf5d852453d4af5680a55b21d482/fuzz.exe+0x4b010f)
    #2 0x423c3e in __asan::GetShadowAddressInformation(unsigned long, __asan::ShadowAddressDescription*) (/onefuzz/blob-containers/oft-setup-3a9daf5d852453d4af5680a55b21d482/fuzz.exe+0x423c3e)
    #3 0x424ca6 in __asan::AddressDescription::AddressDescription(unsigned long, unsigned long, bool) (/onefuzz/blob-containers/oft-setup-3a9d...<truncated>

There are two issues here.

  1. We should differentiate no error and unable to parse error when handling ASAN log files.
  2. We should fix the support for CHECK failed testing to indicate there is something wrong with the test.
@bmc-msft bmc-msft added the bug Something isn't working label Nov 24, 2020
@ghost ghost added the Needs: triage label Nov 24, 2020
ghost pushed a commit that referenced this issue Dec 1, 2020
This differentiates parsing ASAN log parse failures from ASAN logs not existing, fixing the first part of #343.
@ghost ghost locked as resolved and limited conversation to collaborators Jan 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant