Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Cannot get valgrind to work in Qt Creator 4.0.1 on OS X 10.11.5
Forum Update on Monday, May 27th 2025

Cannot get valgrind to work in Qt Creator 4.0.1 on OS X 10.11.5

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
valgrindqt creatoros x
1 Posts 1 Posters 1.0k Views
  • 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.
  • Guy GizmoG Offline
    Guy GizmoG Offline
    Guy Gizmo
    wrote on last edited by
    #1

    I need to profile my Qt project and I cannot get valgrind to work. It always crashes shortly after I pick Analyze > Valgrind Function Profiler.

    My copy of valgrind was installed using homebrew and is version 3.11.0. I am using Qt Creator 4.0.1.

    Truthfully, valgrind has never worked for me in Qt Creator. But I was hoping that version 4 would fix whatever issue was plaguing me.

    Here is the output I get in Qt Creator when I attempt to use it:

    ==8452== Callgrind, a call-graph generating cache profiler
    ==8452== Copyright (C) 2002-2015, and GNU GPL'd, by Josef Weidendorfer et al.
    ==8452== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
    ==8452== Command: /path/to/executable
    ==8452== 
    ==8452== For interactive control, run 'callgrind_control -h'.
    --8452-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option
    --8452-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 2 times)
    --8452-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 4 times)
    --8452-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 8 times)
    
    valgrind: m_syswrap/syswrap-amd64-darwin.c:507 (void wqthread_hijack(Addr, Addr, Addr, Addr, Int, Addr)): Assertion 'tst->os_state.pthread - magic_delta == self' failed.
    
    host stacktrace:
    ==8452==    at 0x2380256FC: ???
    ==8452==    by 0x238025B07: ???
    ==8452==    by 0x238025AEA: ???
    ==8452==    by 0x2380C42E9: ???
    
    sched status:
      running_tid=0
    
    Thread 1: status = VgTs_WaitSys (lwpid 2567)
    ==8452==    at 0x106DF0302: shm_open (in /usr/lib/system/libsystem_kernel.dylib)
    ==8452==    by 0x106F27244: notify_register_check (in /usr/lib/system/libsystem_notify.dylib)
    ==8452==    by 0x106D9BB34: __si_module_static_ds_block_invoke (in /usr/lib/system/libsystem_info.dylib)
    ==8452==    by 0x106BED40A: _dispatch_client_callout (in /usr/lib/system/libdispatch.dylib)
    ==8452==    by 0x106BED302: dispatch_once_f (in /usr/lib/system/libdispatch.dylib)
    ==8452==    by 0x106D9BAC3: si_module_static_ds (in /usr/lib/system/libsystem_info.dylib)
    ==8452==    by 0x106D9B53B: si_module_with_name (in /usr/lib/system/libsystem_info.dylib)
    ==8452==    by 0x106D9B99F: si_module_config_modules_for_category (in /usr/lib/system/libsystem_info.dylib)
    ==8452==    by 0x106D9B694: __si_module_static_search_block_invoke (in /usr/lib/system/libsystem_info.dylib)
    ==8452==    by 0x106BED40A: _dispatch_client_callout (in /usr/lib/system/libdispatch.dylib)
    ==8452==    by 0x106BED302: dispatch_once_f (in /usr/lib/system/libdispatch.dylib)
    ==8452==    by 0x106D9B63B: si_module_static_search (in /usr/lib/system/libsystem_info.dylib)
    ==8452==    by 0x106D9B53B: si_module_with_name (in /usr/lib/system/libsystem_info.dylib)
    ==8452==    by 0x106D9B4B9: getpwuid (in /usr/lib/system/libsystem_info.dylib)
    ==8452==    by 0x102F2037B: CFCopyHomeDirectoryURLForUser (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F20143: __71+[CFPrefsSource withSourceForIdentifier:user:byHost:container:perform:]_block_invoke63 (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F1F3E9: +[CFPrefsSource withSourceForIdentifier:user:byHost:container:perform:] (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F1F00F: -[CFPrefsSearchListSource addSourceForIdentifier:user:byHost:container:] (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F18EA9: __73+[CFPrefsSearchListSource withSearchListForIdentifier:container:perform:]_block_invoke (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F18AF2: +[CFPrefsSearchListSource withSearchListForIdentifier:container:perform:] (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F18866: _CFPreferencesCopyAppValueWithContainer (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F388C2: ___CFBundleCopyUserLanguages_block_invoke (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x106BED40A: _dispatch_client_callout (in /usr/lib/system/libdispatch.dylib)
    ==8452==    by 0x106BED302: dispatch_once_f (in /usr/lib/system/libdispatch.dylib)
    ==8452==    by 0x102F37E2A: _CFBundleCopyLanguageSearchListInBundle (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F37A82: _copyQueryTable (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F37371: _copyResourceURLsFromBundle (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F368C5: _CFBundleCopyFindResources (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F363FF: CFBundleCopyResourceURL (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F362A2: CFBundleGetLocalInfoDictionary (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x102F4E2B0: CFBundleGetValueForInfoDictionaryKey (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
    ==8452==    by 0x100CC310B: QCoreApplicationPrivate::macMenuBarName() (in /usr/local/qt-5.5.1-x64/lib/QtCore.framework/Versions/5/QtCore)
    ==8452==    by 0x100CC31D7: QCoreApplicationPrivate::appName() const (in /usr/local/qt-5.5.1-x64/lib/QtCore.framework/Versions/5/QtCore)
    ==8452==    by 0x100CC4CDD: QCoreApplication::init() (in /usr/local/qt-5.5.1-x64/lib/QtCore.framework/Versions/5/QtCore)
    ==8452==    by 0x100CC4C66: QCoreApplication::QCoreApplication(QCoreApplicationPrivate&) (in /usr/local/qt-5.5.1-x64/lib/QtCore.framework/Versions/5/QtCore)
    ==8452==    by 0x10052B87D: QGuiApplication::QGuiApplication(QGuiApplicationPrivate&) (in /usr/local/qt-5.5.1-x64/lib/QtGui.framework/Versions/5/QtGui)
    ==8452==    by 0x10111C01D: QApplication::QApplication(int&, char**, int) (in /usr/local/qt-5.5.1-x64/lib/QtWidgets.framework/Versions/5/QtWidgets)
    ==8452==    by 0x10001F32C: main (main.cpp:117)
    
    Thread 2: status = VgTs_Yielding (lwpid 5123)
    ==8452==    at 0x106BF30BA: _dispatch_mgr_invoke (in /usr/lib/system/libdispatch.dylib)
    ==8452==    by 0x106BF2DCC: _dispatch_mgr_thread (in /usr/lib/system/libdispatch.dylib)
    
    Thread 3: status = VgTs_WaitSys (lwpid 4099)
    ==8452==    at 0x106DF05E2: __workq_kernreturn (in /usr/lib/system/libsystem_kernel.dylib)
    ==8452==    by 0x2380C42E9: ???
    ==8452==    by 0x238A1015F: ???
    ==8452==    by 0x227: ???
    ==8452==    by 0x7000001104E7: ???
    
    
    Note: see also the FAQ in the source distribution.
    It contains workarounds to several common problems.
    In particular, if Valgrind aborted or crashed after
    identifying problems in your program, there's a good chance
    that fixing those problems will prevent Valgrind aborting or
    crashing, especially if it happened in m_mallocfree.c.
    
    If that doesn't help, please report this bug to: www.valgrind.org
    
    In the bug report, send all the above text, the valgrind
    version, and what OS and version you are using.  Thanks.
    
    Analyzing finished.
    ** Unknown error **
    

    What can I do to fix this?

    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