emscripten-core/emscripten

Sanitizers with dynamic linking

Open

#13,184 opened on Jan 4, 2021

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C++ (3,519 forks)batch import
help wantedwontfix

Repository metrics

Stars
 (27,361 stars)
PR merge metrics
 (Avg merge 19d 10h) (147 merged PRs in 30d)

Description

Hi,

it would be great if it would be possible to use sanitizers with dynamic linking. Currently, when I pass -fsanitize=leak (for example) to the emcc command of my MAIN_MODULE, Emscripten outputs:

emcc: error: LSan does not support dynamic linking

Specifically, I would like to test my application for memory leaks.

Thanks for your great work! :+1:

Contributor guide