I'm using helgrind to look for lock order violations, and got one:

==14876== ----------------------------------------------------------------
==14876==
==14876== Thread #6: lock order "0xD13D7C8 before 0xCFA7BB4" violated
==14876==
==14876== Observed (incorrect) order is: acquisition of lock at 0xCFA7BB4
==14876==    (stack unavailable)
==14876==
==14876==  followed by a later acquisition of lock at 0xD13D7C8
==14876==    at 0x57748: pthread_mutex_lock (hg_intercepts.c:506)
==14876==    by 0x86F362E: osiSemaphore::Take(int) const (osiSemaphore.h:357)
==14876==    by 0x86F36D0: osiRWSemaphore::wTake(int) 
(osiSemaphoreLinux.cpp:423)
==14876==    by 0x86F377A: osiRWSemAutoP::osiRWSemAutoP(osiSemaphoreMode, 
osiRWSemaphore*) (osiSemaphoreLinux.cpp:503)
==14876==    by 0x862147F: pdbMirrorLink::CreateOutNotification(char const*, 
int, mirrorLinkNotifyIn*) (pdbMirrorLink.cpp:1264)
==14876==    by 0x8621E15: pdbMirrorLink::UpdateNotifications(bool, unsigned 
int) (pdbMirrorLink.cpp:1388)
==14876==    by 0x865A78C: pdbTreeCache::ActivateIndex(unsigned int) 
(pdbTreeCacheNode.cpp:1866)
==14876==    by 0x861737D: pdbMirrorLinkCacheHelper::_ActivateIndex(osiJQData*) 
(pdbMirrorLink.h:544)
==14876==    by 0x85E0D88: osiJobQueue::entry() (osiJob.cpp:119)
==14876==    by 0x86F0A88: osiThread::MyRun(void*) (osiThreadLinux.cpp:194)
==14876==    by 0x86EF814: threadMain(void*) (osiThreadLauncherLinux.cpp:50)
==14876==    by 0x5A608: mythread_wrapper (hg_intercepts.c:219)

What is the cause of "stack unavailable"?  This error message doesn't give me 
enough information to go on, since it doesn't tell me anything about what the 
first incorrectly locked mutex is or about the stacks establishing the correct 
locking order.

Phil
-----
Phil Longstaff
Senior Software Engineer
x2904

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to