Bug 244677 - Helgrind crash hg_main.c:616 (map_threads_lookup): Assertion 'thr' failed.
Summary: Helgrind crash hg_main.c:616 (map_threads_lookup): Assertion 'thr' failed.
Status: RESOLVED DUPLICATE of bug 216837
Alias: None
Product: valgrind
Classification: Developer tools
Component: helgrind (show other bugs)
Version: 3.6 SVN
Platform: Unlisted Binaries macOS
: NOR crash
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-14 23:28 UTC by Dave MacLachlan
Modified: 2011-03-06 18:55 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 Dave MacLachlan 2010-07-14 23:28:16 UTC
Version:           3.6 SVN
OS:                OS X

Mac OS X 10.6.4
Valgrind rev 11212
VEX rev 1986

Running Helgrind on a UI based app.

Helgrind: hg_main.c:616 (map_threads_lookup): Assertion 'thr' failed.
==35596==    at 0x13801FCB7: ???
==35596==    by 0x13801FEF4: ???
==35596==    by 0x13800A93C: ???
==35596==    by 0x13807CC39: ???
==35596==    by 0x13807E0B8: ???
==35596==    by 0x1380A4C6D: ???
==35596==    by 0x1380A4EFA: ???

sched status:
  running_tid=2

Thread 1: status = VgTs_WaitSys
==35596==    at 0x101BCA2FA: mach_msg_trap (in /usr/lib/libSystem.B.dylib)
==35596==    by 0x105788141: _scsclient_CreateCacheableFromFrameworkSymbol (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==35596==    by 0x105787FDE: SCClientSession::createCacheable(SCCacheableName, char const*) (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==35596==    by 0x105787EB3: SCSession::findOrCreateCacheable(SCCacheableName, char const*) (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==35596==    by 0x10578783A: scCreateSystemCacheable (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==35596==    by 0x1057877FC: _CLV_GetCacheableOnce() (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==35596==    by 0x101BE27F9: pthread_once (in /usr/lib/libSystem.B.dylib)
==35596==    by 0x105787657: _standalone_CopyCheckFixForBundleID (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==35596==    by 0x105787504: GetBugsForOurBundleIDFromCoreservicesd (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==35596==    by 0x1057871DE: _CSCheckFix (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==35596==    by 0x105ECF756: AEDisposeDesc (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE)
==35596==    by 0x10067E8F5: -[NSAppleEventDescriptor dealloc] (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==35596==    by 0x101F18CC5: _CFAutoreleasePoolPop (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==35596==    by 0x1006402EB: -[NSAutoreleasePool drain] (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==35596==    by 0x10012DA51: +[NSAppleScript(GTMAppleScriptHandlerAdditions) load] (GTMNSAppleScript+Handler.m:140)
==35596==    by 0x101E1E2DF: call_load_methods (in /usr/lib/libobjc.A.dylib)
==35596==    by 0x101E1DF3F: load_images (in /usr/lib/libobjc.A.dylib)
==35596==    by 0x7FFF5FC03159: dyld::notifySingle(dyld_image_states, ImageLoader const*) (in /usr/lib/dyld)
==35596==    by 0x7FFF5FC0BCDC: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) (in /usr/lib/dyld)
==35596==    by 0x7FFF5FC0BC9C: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) (in /usr/lib/dyld)
==35596==    by 0x7FFF5FC0BC9C: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) (in /usr/lib/dyld)
==35596==    by 0x7FFF5FC0BC9C: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) (in /usr/lib/dyld)
==35596==    by 0x7FFF5FC0BDA5: ImageLoader::runInitializers(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==35596==    by 0x7FFF5FC0210D: dyld::initializeMainExecutable() (in /usr/lib/dyld)
==35596==    by 0x7FFF5FC06980: dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**) (in /usr/lib/dyld)
==35596==    by 0x7FFF5FC016D1: dyldbootstrap::start(macho_header const*, int, char const**, long) (in /usr/lib/dyld)
==35596==    by 0x7FFF5FC01051: _dyld_start (in /usr/lib/dyld)
==35596==    by 0xFFFFFFFF: ???

Thread 2: status = VgTs_Runnable
==35596==    at 0x101BE3F18: start_wqthread (in /usr/lib/libSystem.B.dylib)


Reproducible: Always
Comment 1 Dave MacLachlan 2010-07-14 23:42:32 UTC
Patches in https://bugs.kde.org/show_bug.cgi?id=216837 don't help.
Comment 2 Dave MacLachlan 2010-07-14 23:44:00 UTC
drd gives similar output:


drd: drd_thread.c:584 (vgDrd_thread_set_vg_running_tid): Assertion 'vg_tid != VG_INVALID_THREADID' failed.
==38747==    at 0x13801E337: ???
==38747==    by 0x13801E574: ???
==38747==    by 0x13800C6D9: ???
==38747==    by 0x1380144FE: ???
==38747==    by 0x1380A6969: ???

sched status:
  running_tid=0

Thread 1: status = VgTs_WaitSys
==38747==    at 0x101BD42FA: mach_msg_trap (in /usr/lib/libSystem.B.dylib)
==38747==    by 0x101BEF68D: mach_port_insert_right (in /usr/lib/libSystem.B.dylib)
==38747==    by 0x101BEF55B: _dispatch_main_q_port_init (in /usr/lib/libSystem.B.dylib)
==38747==    by 0x101BECB84: dispatch_once_f (in /usr/lib/libSystem.B.dylib)
==38747==    by 0x101BEF517: _dispatch_queue_wakeup_main (in /usr/lib/libSystem.B.dylib)
==38747==    by 0x101BED0FC: _dispatch_wakeup (in /usr/lib/libSystem.B.dylib)
==38747==    by 0x101D073BA: _dispatch_queue_push_list_slow (in /usr/lib/libSystem.B.dylib)
==38747==    by 0x101BED11B: _dispatch_wakeup (in /usr/lib/libSystem.B.dylib)
==38747==    by 0x101BEE3FB: _dispatch_source_create2 (in /usr/lib/libSystem.B.dylib)
==38747==    by 0x10579192C: _initSharedCache() (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==38747==    by 0x101BEC7F9: pthread_once (in /usr/lib/libSystem.B.dylib)
==38747==    by 0x1000C5B95: pthread_once (drd_pthread_intercepts.c:516)
==38747==    by 0x10579187F: getSystemSession() (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==38747==    by 0x10579182C: scCreateSystemCacheable (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==38747==    by 0x1057917FC: _CLV_GetCacheableOnce() (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==38747==    by 0x101BEC7F9: pthread_once (in /usr/lib/libSystem.B.dylib)
==38747==    by 0x1000C5B95: pthread_once (drd_pthread_intercepts.c:516)
==38747==    by 0x105791657: _standalone_CopyCheckFixForBundleID (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==38747==    by 0x105791504: GetBugsForOurBundleIDFromCoreservicesd (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==38747==    by 0x1057911DE: _CSCheckFix (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore)
==38747==    by 0x105ED9756: AEDisposeDesc (in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE)
==38747==    by 0x1006888F5: -[NSAppleEventDescriptor dealloc] (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==38747==    by 0x101F22CC5: _CFAutoreleasePoolPop (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==38747==    by 0x10064A2EB: -[NSAutoreleasePool drain] (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==38747==    by 0x100137A51: +[NSAppleScript(GTMAppleScriptHandlerAdditions) load] (GTMNSAppleScript+Handler.m:140)
==38747==    by 0x101E282DF: call_load_methods (in /usr/lib/libobjc.A.dylib)
==38747==    by 0x101E27F3F: load_images (in /usr/lib/libobjc.A.dylib)
==38747==    by 0x7FFF5FC03159: dyld::notifySingle(dyld_image_states, ImageLoader const*) (in /usr/lib/dyld)
==38747==    by 0x7FFF5FC0BCDC: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) (in /usr/lib/dyld)
==38747==    by 0x7FFF5FC0BC9C: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) (in /usr/lib/dyld)
==38747==    by 0x7FFF5FC0BC9C: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) (in /usr/lib/dyld)
==38747==    by 0x7FFF5FC0BC9C: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) (in /usr/lib/dyld)
==38747==    by 0x7FFF5FC0BDA5: ImageLoader::runInitializers(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38747==    by 0x7FFF5FC0210D: dyld::initializeMainExecutable() (in /usr/lib/dyld)
==38747==    by 0x7FFF5FC06980: dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**) (in /usr/lib/dyld)
==38747==    by 0x7FFF5FC016D1: dyldbootstrap::start(macho_header const*, int, char const**, long) (in /usr/lib/dyld)
==38747==    by 0x7FFF5FC01051: _dyld_start (in /usr/lib/dyld)
==38747==    by 0xFFFFFFFF: ???

Thread 2: status = VgTs_Init
==38747==    at 0x101BEDF18: start_wqthread (in /usr/lib/libSystem.B.dylib)
Comment 3 Bart Van Assche 2011-03-06 18:37:24 UTC
Still happens with trunk r11595.
Comment 4 Bart Van Assche 2011-03-06 18:55:51 UTC

*** This bug has been marked as a duplicate of bug 216837 ***