Opened 11 years ago

Closed 11 years ago

#40387 closed defect (invalid)

Valgrind fails running on large project

Reported by: barto@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: raimue (Rainer Müller)
Port: valgrind

Description

Valgrind on Linux (without the dsymutil=yes line) runs successfully.

Running valgrind with:

valgrind --tool=memcheck \
    --leak-check=full \
    --leak-resolution=high \
    --read-var-info=yes \
    --track-origins=yes \
    --dsymutil=yes \
    host/ui3/ui3 -j

generates the following error.

UNKNOWN workq_ops option 32

valgrind: m_syswrap/syswrap-amd64-darwin.c:460 (void wqthread_hijack(Addr, Addr, Addr, Addr, Int, Addr)): Assertion 'VG_(is_valid_tid)(tid)' failed.
==92625==    at 0x238034A9C: ???
==92625==    by 0x238034A50: ???
==92625==    by 0x2380BDD4E: ???

sched status:
  running_tid=0

Thread 1: status = VgTs_WaitSys
==92625==    at 0x11E93686: mach_msg_trap (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x15CF5C24: _scsclient_FindService (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x15CF5AF7: SCClientSession::createService(char const*, unsigned int) (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x15CF59D3: SCSession::findOrCreateService(char const*, unsigned int) (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x15CF51D7: scCreateSystemServiceVersion (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x15CF8AE6: FileIDTreeGetCachedPort (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x15CF8938: FSNodeStorageGetAndLockCurrentUniverse (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x15CF87C8: FileIDTreeGetAndLockVolumeEntryForDeviceID (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x15CFC413: FSMount::FSMount(unsigned int, FSMountNumberType, short*, unsigned int const*) (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x15CFADE7: PathGetObjectInfo(char const*, unsigned int, unsigned int, short*, unsigned int*, unsigned int*, char*, unsigned int*, unsigned char*) (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x15CFAC2C: FSPathMakeRefInternal(unsigned char const*, unsigned int, unsigned int, FSRef*, unsigned char*) (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x13AA9AD1: _CFGetFSRefFromURL (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==92625==    by 0x13AA99D8: CFURLGetFSRef (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==92625==    by 0x13AB1B06: _CFBundleCopyInfoDictionaryInResourceForkWithAllocator (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==92625==    by 0x15CF6185: GetBugsForOurBundleIDFromCoreservicesd (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x15CF5EFB: _CSCheckFix (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x15D09F5B: _Gestalt_SystemVersion (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x15D09D53: Gestalt (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==92625==    by 0x1229CB55: global constructors keyed to qVersion() (in /opt/local/QtSDK/Desktop/Qt/4.8.3/gcc/lib/QtCore.framework/Versions/4/QtCore)
==92625==    by 0x7FFF5FC13377: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==92625==    by 0x7FFF5FC13761: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==92625==    by 0x7FFF5FC1006D: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==92625==    by 0x7FFF5FC0FFC3: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==92625==    by 0x7FFF5FC0FFC3: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==92625==    by 0x7FFF5FC0FEB9: ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==92625==    by 0x7FFF5FC01FBF: dyld::initializeMainExecutable() (in /usr/lib/dyld)
==92625==    by 0x7FFF5FC05B03: dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) (in /usr/lib/dyld)
==92625==    by 0x7FFF5FC01396: dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) (in /usr/lib/dyld)
==92625==    by 0x7FFF5FC0105D: _dyld_start (in /usr/lib/dyld)
==92625==    by 0x1: ???
==92625==    by 0x10556A206: ???
==92625==    by 0x10556A213: ???

Thread 2: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 3: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 4: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 5: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 6: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 7: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 8: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 9: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 10: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 11: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 12: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 13: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 14: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Thread 15: status = VgTs_WaitSys
==92625==    at 0x11E950FA: __psynch_cvwait (in /usr/lib/system/libsystem_kernel.dylib)
==92625==    by 0x11AF9FEB: std::condition_variable::wait(std::unique_lock<std::mutex>&) (in /opt/local/lib/gcc48/libstdc++.6.dylib)
==92625==    by 0x11D2C7A1: _pthread_start (in /usr/lib/system/libsystem_c.dylib)
==92625==    by 0x11D191E0: thread_start (in /usr/lib/system/libsystem_c.dylib)

Change History (3)

comment:1 Changed 11 years ago by raimue (Rainer Müller)

Thank you for this report. However, I doubt this is related to the way valgrind is packaged in MacPorts. I won't be able to look into this due to lack of knowledge of valgrind internals. Please take this issue to the upstream support and discuss this bug directly with the valgrind developers.

comment:2 Changed 11 years ago by barto@…

Officially, Valgrind is not supported on MacOS Mt. Lion at this time.

So I was checking if the ports folks had some 'magic' that I could throw at it.

Close this at this time.

comment:3 Changed 11 years ago by larryv (Lawrence Velázquez)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.