Skip to content

ASan on Mac arm64 clang only showing stack trace from violating file #55964

@j-p-c

Description

@j-p-c

I asked about this on Stack Overflow thinking it was user error, but I'm thinking it might be a bug.

However, I also note that this is not a supported platform, so I'm prepared for this being a wontfix.

The stack trace only shows those functions that are in the same source file as the function that violated ASan.

New M1 Mac, LLVM installed from Homebrew:

$ /opt/homebrew/opt/llvm/bin/clang --version
Homebrew clang version 13.0.1
Target: arm64-apple-darwin21.5.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin

Simplest repro I could come up with is in the Stack Overflow question above.

I'm happy to try to help debug this, but not currently familiar with the LLVM codebase.

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