Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Build Qt5.15.18 for address sanitizer
Qt 6.11 is out! See what's new in the release blog

Build Qt5.15.18 for address sanitizer

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 128 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alex_77
    wrote last edited by
    #1

    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?

    1 Reply Last reply
    0
    • Nils SjobergN Offline
      Nils SjobergN Offline
      Nils Sjoberg
      wrote last edited by
      #2

      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.

      "What's up, Doc?"

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved