Skip to content

[doc] perlhacktips: address sanitizer (asan) config doesn't work #23579

@mauke

Description

@mauke

Where

perlhacktips

Description

https://perldoc.perl.org/blead/perlhacktips#AddressSanitizer says:

To build perl with AddressSanitizer, your Configure invocation should look like:

sh Configure -des -Dcc=clang \
   -Accflags=-fsanitize=address -Aldflags=-fsanitize=address \
   -Alddlflags=-shared\ -fsanitize=address \
   -fsanitize-blacklist=`pwd`/asan_ignore

If you do that, you get a Configure error:

Configure: cannot read config file sanitize-blacklist=.../perl5/asan_ignore.
Usage: Configure [-dehrsEKOSV] [-f config.sh] [-D symbol] [-D symbol=value]
                 [-U symbol] [-U symbol=] [-A command:symbol...]
...

The instructions to add -fsanitize-blacklist=... to the Configure invocation were added in commit 6babf54.

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