Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

t-8ch
Copy link
Member

@t-8ch t-8ch commented Oct 3, 2023

ASan as DSO seems to be the recommended way to run sanitized libraries in unsanitized binaries as indicated in the ASan FAQ [0] and the emitted error message:

ASan runtime does not come first in initial library list; you should
either link runtime to your application or manually preload it with
LD_PRELOAD.

The wikipage (slightly) discouraging this use [1] has not been updated since 2015.

[0] https://github.com/google/sanitizers/wiki/AddressSanitizer
[1] https://github.com/google/sanitizers/wiki/AddressSanitizerAsDso

ASan as DSO seems to be the recommended way to run sanitized libraries
in unsanitized binaries as indicated in the ASan FAQ [0] and the emitted
error message:

    ASan runtime does not come first in initial library list; you should
    either link runtime to your application or manually preload it with
    LD_PRELOAD.

The wikipage (slightly) discouraging this use [1] has not been updated
since 2015.

[0] https://github.com/google/sanitizers/wiki/AddressSanitizer
[1] https://github.com/google/sanitizers/wiki/AddressSanitizerAsDso

Signed-off-by: Thomas Weißschuh <[email protected]>
@t-8ch t-8ch force-pushed the libmount/py-asan branch from 8a7d1bb to 8f2ca9c Compare October 3, 2023 09:45
@karelzak
Copy link
Collaborator

karelzak commented Apr 3, 2024

It would be nice to finalize this. Can we rebase it (to rerun the test)?

@t-8ch
Copy link
Member Author

t-8ch commented Apr 3, 2024

It will need some more work for clang.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants