On Tue, Apr 12, 2022 at 4:17 AM Peng He <[email protected]> wrote:
>
> Hi,
>
> with make check -C build-asan TESTSUITEFLAGS="-k meter -d"
> the ovs is build with asan enabled, is this feature already in current
> building system?
>
> I did not find it. Can anyone give some hint?
> Thanks !

I used a similar configuration to what is in run in GHA.

See .ci/linux-build.sh:

    # This will override default option configured in tests/atlocal.in.
    export ASAN_OPTIONS='detect_leaks=1'
    # -O2 generates few false-positive memory leak reports in test-ovsdb
    # application, so lowering optimizations to -O1 here.
    CFLAGS_ASAN="-O1 -fno-omit-frame-pointer -fno-common -fsanitize=address"
    CFLAGS_FOR_OVS="${CFLAGS_FOR_OVS} ${CFLAGS_ASAN}"

Then, those CFLAGS can be passed at ./configure time.


-- 
David Marchand

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to