Bug 322368 - Assertion failure in wqthread_hijack under OS X 10.8
Summary: Assertion failure in wqthread_hijack under OS X 10.8
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (show other bugs)
Version: 3.8.0
Platform: Compiled Sources macOS
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-14 22:03 UTC by Vadim Zeitlin
Modified: 2013-11-25 01:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim Zeitlin 2013-07-14 22:03:05 UTC
I know that 10.8 is not supposed to be fully supported but reporting this just in case it can be useful:

I'm running valgrind on the test suite of wxWidgets (http://www.wxwidgets.org) and it dies on one of the tests
with the messages below. I think the problem is actually not wxWidgets-specific but is just due to something
happening inside CFLocaleCopyCurrent() but I don't have any other code using this function so I'm not really
sure. If it can be useful and/or if you have trouble reproducing the bug, I could try to provide a minimal
example reproducing it, please let me know.

% valgrind --dsymutil=yes ./test DateTime
==55234== Memcheck, a memory error detector
==55234== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==55234== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==55234== Command: ./test DateTime
==55234==
==55234== WARNING: Support on MacOS 10.8 is experimental and mostly broken.
==55234== WARNING: Expect incorrect results, assertions and crashes.
==55234== WARNING: In particular, Memcheck on 32-bit programs will fail to
==55234== WARNING: detect any errors associated with heap-allocated data.
==55234==
Test program for wxWidgets non-GUI features
build: 2.9.5 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8)
running under Mac OS X (Darwin 12.2.0 x86_64) as zeitlin
......UNKNOWN workq_ops option 32
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.
==55234==    at 0x238032E5D: ???
==55234==    by 0x238032E07: ???
==55234==    by 0x2380BE90A: ???

sched status:
  running_tid=0

Thread 1: status = VgTs_WaitSys
==55234==    at 0xC596C2: semaphore_wait_trap (in /usr/lib/system/libsystem_kernel.dylib)
==55234==    by 0xD04E1E: xpc_connection_send_message_with_reply_sync (in /usr/lib/system/libxpc.dylib)
==55234==    by 0x11D883B: setUpDaemonConnectionIfNecessary (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==55234==    by 0x11D38A3: withDaemonConnection (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==55234==    by 0x11D3837: ___CFPreferencesIsManaged_block_invoke_0 (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==55234==    by 0xA730B5: _dispatch_client_callout (in /usr/lib/system/libdispatch.dylib)
==55234==    by 0xA73040: dispatch_once_f (in /usr/lib/system/libdispatch.dylib)
==55234==    by 0x10C906B: _CFPreferencesIsManaged (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==55234==    by 0x11D8427: -[CFPrefsManagedSource initWithDomain:user:byHost:] (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==55234==    by 0x11D831A: +[CFPrefsManagedSource withSourceForIdentifier:user:perform:] (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==55234==    by 0x11D57AB: -[CFPrefsSearchListSource addManagedSourceForIdentifier:user:] (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==55234==    by 0x11D52D4: +[CFPrefsSearchListSource withSnapshotSearchList:] (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==55234==    by 0x10C9868: __CFXPreferencesCopyCurrentApplicationState (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==55234==    by 0x10C948F: CFLocaleCopyCurrent (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==55234==    by 0x476A7F: wxLocale::GetInfo(wxLocaleInfo, wxLocaleCategory) (intl.cpp:1576)
==55234==    by 0x40D4AE: wxDateTime::Format(wxString const&, wxDateTime::TimeZone const&) const (datetimefmt.cpp:323)
==55234==    by 0x1000F5BAD: wxDateTime::FormatDate() const (datetime.h:1149)
==55234==    by 0x1000E5EF5: DateTimeTestCase::TestTimeDST() (datetimetest.cpp:646)
==55234==    by 0x1000FA84A: CppUnit::TestCaller<DateTimeTestCase>::runTest() (TestCaller.h:166)
==55234==    by 0x14567: CppUnit::TestCaseMethodFunctor::operator()() const (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x10000542F: wxUnitTestProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (test.cpp:202)
==55234==    by 0x1292E: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0xC8A5: CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x1292E: CppUnit::ProtectorChain::ProtectFunctor::operator()() const (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x1207B: CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x19803: CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::string const&) (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x141E7: CppUnit::TestCase::run(CppUnit::TestResult*) (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x1493E: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x14874: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x1493E: CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x14874: CppUnit::TestComposite::run(CppUnit::TestResult*) (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x1967F: CppUnit::TestResult::runTest(CppUnit::Test*) (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x1B0E1: CppUnit::TestRunner::run(CppUnit::TestResult&, std::string const&) (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x1CBFA: CppUnit::TextTestRunner::run(std::string, bool, bool, bool) (in /usr/local/Cellar/cppunit/1.12.1/lib/libcppunit-1.12.1.0.0.dylib)
==55234==    by 0x100003492: TestApp::RunTests() (test.cpp:706)
==55234==    by 0x100004EC8: TestApp::OnRun() (test.cpp:343)
==55234==    by 0x472A44: wxEntry(int&, wchar_t**) (init.cpp:493)
==55234==    by 0x472BAE: wxEntry(int&, char**) (init.cpp:505)
==55234==    by 0x1000011ED: main (test.cpp:416)
Comment 1 Julian Seward 2013-09-12 12:27:23 UTC
Fixed, r13523.  Note that the main "OSX 10.8 doesn't work" bug is
304259.
Comment 2 ryanmichaelclark 2013-11-25 01:07:47 UTC
Hello,

I'm having an issue that appears to be very similar to the one above.  I'm running Mac OSX 10.8 and just compiled the latest valgrind from svn.  Here's the output when I attempt to valgrind a game I'm working on:


valgrind --leak-check=yes --dsymutil=yes ./MonkeyGame
==61849== Memcheck, a memory error detector
==61849== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==61849== Using Valgrind-3.9.0.SVN and LibVEX; rerun with -h for copyright info
==61849== Command: ./MonkeyGame
==61849== 
==61849== WARNING: Support on MacOS 10.8 is experimental and mostly broken.
==61849== WARNING: Expect incorrect results, assertions and crashes.
==61849== WARNING: In particular, Memcheck on 32-bit programs will fail to
==61849== WARNING: detect any errors associated with heap-allocated data.
==61849== 
--61849-- run: /usr/bin/dsymutil "./MonkeyGame"
--61849-- run: /usr/bin/dsymutil "/Users/ryanclark/Desktop/MonkeyGame.app/Contents/Frameworks/libfmodex.dylib"
warning: no debug symbols in executable (-arch x86_64)
warning: no debug symbols in executable (-arch i386)
warning: no debug symbols in executable (-arch ppc7400)
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x436D8CF: ??? (in /usr/lib/system/libxpc.dylib)
==61849==    by 0x10E0C2F: ??? (in /usr/lib/libSystem.B.dylib)
==61849==    by 0x8FE13CD9: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE13FDD: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE10267: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE100B9: ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE01DD8: dyld::initializeMainExecutable() (in /usr/lib/dyld)
==61849==    by 0x8FE05ADA: dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) (in /usr/lib/dyld)
==61849==    by 0x8FE01375: dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) (in /usr/lib/dyld)
==61849==    by 0x8FE01076: _dyld_start (in /usr/lib/dyld)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x1131180: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x115E76E: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8FE13BBE: ImageLoaderMachO::doImageInit(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE13FD1: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE10267: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x10FEA57: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x10FF13E: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114703: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114680: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1131293: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113120B: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x115E8DD: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8FE13BBE: ImageLoaderMachO::doImageInit(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE13FD1: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE10267: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x10FEA57: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x10FF13E: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113F383: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113EFD0: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114724: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114680: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1131293: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113120B: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x115E8DD: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8FE13BBE: ImageLoaderMachO::doImageInit(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE13FD1: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x10FEA57: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113F3B1: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113EFD0: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114724: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114680: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1131293: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113120B: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x115E8DD: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8FE13BBE: ImageLoaderMachO::doImageInit(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE13FD1: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE10267: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x10FEA57: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x10FF13E: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113F188: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114724: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114680: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1131293: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113120B: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x115E8DD: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8FE13BBE: ImageLoaderMachO::doImageInit(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE13FD1: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE10267: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x1114748: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114680: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1131293: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113120B: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x115E8DD: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8FE13BBE: ImageLoaderMachO::doImageInit(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE13FD1: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE10267: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x11058EB: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x112687F: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114748: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114680: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1131293: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113120B: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x115E8DD: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8FE13BBE: ImageLoaderMachO::doImageInit(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE13FD1: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE10267: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x11173F0: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1106024: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x11058EB: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x112687F: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114748: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114680: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1131293: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113120B: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x115E8DD: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8FE13BBE: ImageLoaderMachO::doImageInit(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE13FD1: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x11093CE: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1126B31: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114748: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114680: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1131293: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113120B: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x115E8DD: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8FE13BBE: ImageLoaderMachO::doImageInit(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE13FD1: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE10267: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849==    by 0x8FE101CB: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x11173F0: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1106024: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x11093CE: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1126B31: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114748: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1114680: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1131293: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x113120B: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x115E8DD: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8FE13BBE: ImageLoaderMachO::doImageInit(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849==    by 0x8FE13FD1: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x10FEA57: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x10FF13E: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114086A: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114FC8B: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114F956: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8CF0: _glfwPlatformInit (cocoa_init.m:128)
==61849==    by 0x4BBE: glfwInit (init.c:64)
==61849==    by 0x34D5CA: main (main.cpp:72503)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x10FEA57: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x10FF13E: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114097D: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114FC8B: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114F9A2: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8CF0: _glfwPlatformInit (cocoa_init.m:128)
==61849==    by 0x4BBE: glfwInit (init.c:64)
==61849==    by 0x34D5CA: main (main.cpp:72503)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x114FCD2: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114F9A2: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8CF0: _glfwPlatformInit (cocoa_init.m:128)
==61849==    by 0x4BBE: glfwInit (init.c:64)
==61849==    by 0x34D5CA: main (main.cpp:72503)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x11058EB: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x112687F: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114FCD2: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114F9A2: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8CF0: _glfwPlatformInit (cocoa_init.m:128)
==61849==    by 0x4BBE: glfwInit (init.c:64)
==61849==    by 0x34D5CA: main (main.cpp:72503)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x11093CE: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1126B31: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114FCD2: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114F9A2: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8CF0: _glfwPlatformInit (cocoa_init.m:128)
==61849==    by 0x4BBE: glfwInit (init.c:64)
==61849==    by 0x34D5CA: main (main.cpp:72503)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A675: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x11173F0: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1105FE8: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x11093CE: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1126B31: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114FCD2: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114F9A2: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8CF0: _glfwPlatformInit (cocoa_init.m:128)
==61849==    by 0x4BBE: glfwInit (init.c:64)
==61849==    by 0x34D5CA: main (main.cpp:72503)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A64F: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x11173F0: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1106024: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x11093CE: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x1126B31: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114FCD2: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114F9A2: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8CF0: _glfwPlatformInit (cocoa_init.m:128)
==61849==    by 0x4BBE: glfwInit (init.c:64)
==61849==    by 0x34D5CA: main (main.cpp:72503)
==61849== 
==61849== Conditional jump or move depends on uninitialised value(s)
==61849==    at 0x417A64F: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x10FEA57: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x112986A: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x112950C: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114622C: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114FCF7: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x114F9A2: ??? (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==61849==    by 0x8CF0: _glfwPlatformInit (cocoa_init.m:128)
==61849==    by 0x4BBE: glfwInit (init.c:64)
==61849==    by 0x34D5CA: main (main.cpp:72503)
==61849== 

valgrind: m_syswrap/syswrap-x86-darwin.c:421 (wqthread_hijack): Assertion 'VG_(is_valid_tid)(tid)' failed.
==61849==    at 0x380368F2: ???
==61849==    by 0x38036BF4: ???
==61849==    by 0x380DAB78: ???

sched status:
  running_tid=0

Thread 1: status = VgTs_WaitSys
==61849==    at 0x42D18AA: swtch_pri (in /usr/lib/system/libsystem_kernel.dylib)
==61849==    by 0x418ED94: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0x418ED44: ??? (in /usr/lib/system/libsystem_c.dylib)
==61849==    by 0xAEFE2D: ??? (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==61849==    by 0x8D60: _glfwPlatformInit (cocoa_init.m:135)
==61849==    by 0x4BBE: glfwInit (init.c:64)
==61849==    by 0x34D5CA: main (main.cpp:72503)

Thread 2: status = VgTs_Init
==61849==    at 0x4178D2C: ??? (in /usr/lib/system/libsystem_c.dylib)


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.