Qt 6.11 is out! See what's new in the release
blog
Build Qt5.15.18 for address sanitizer
-
Hello,
I'm trying to compile Qt 5.15.18 with and without the QtWebEngine for the Address Sanitizer. Unfortunately, it's not working. I added the two parameters
-platform win32-clang-msvc
-sanitize address
to the configure command. I set the flags the same way before the build.
QMAKE_CFLAGS+=-fsanitize=address
QMAKE_CXXFLAGS+=-fsanitize=address
Unfortunately, nothing has worked so far. Can you help me? What am I doing wrong? -
Check that the flags (
-fsanitize=address) also reach the linker and that the runtime is dynamic (/MD), try to isolate whether the problem is in QtWebEngine or the underlying qtbase, and make sure they are set before configure with a full distclean if necessary.