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. MacOS Valgrind alternative. Which one?
Forum Updated to NodeBB v4.3 + New Features

MacOS Valgrind alternative. Which one?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.2k Views 2 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by bogong
    #1

    Hello all!

    What is the best Valgrind alternative for MacOS? Valgrind isn't working on MacOS Monterey:

    • https://ports.macports.org/port/valgrind-macos-devel/details/
    • https://ports.macports.org/port/valgrind/

    Need to check applications for memory leaks.

    There are ability to check by MacOS Leak application. In this case is there any option to use it with Qt Creator?

    SGaistS D 2 Replies Last reply
    0
    • B bogong

      Hello all!

      What is the best Valgrind alternative for MacOS? Valgrind isn't working on MacOS Monterey:

      • https://ports.macports.org/port/valgrind-macos-devel/details/
      • https://ports.macports.org/port/valgrind/

      Need to check applications for memory leaks.

      There are ability to check by MacOS Leak application. In this case is there any option to use it with Qt Creator?

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From memory, Leaks is the correct tool. As for Qt Creator integration, you would likely need a custom plugin so for the time being, you will have to run in separately.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B bogong

        Hello all!

        What is the best Valgrind alternative for MacOS? Valgrind isn't working on MacOS Monterey:

        • https://ports.macports.org/port/valgrind-macos-devel/details/
        • https://ports.macports.org/port/valgrind/

        Need to check applications for memory leaks.

        There are ability to check by MacOS Leak application. In this case is there any option to use it with Qt Creator?

        D Offline
        D Offline
        DerReisende
        wrote on last edited by DerReisende
        #3

        @bogong Why don't you use clang's address/leak sanitizer on macOS?
        with CMake it would be something like this:
        set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O1 -fsanitize=address -g -fno-omit-frame-pointer")

        1 Reply Last reply
        0

        • Login

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