Hi to all,

I'm very interested in using Valgrind and it has already given me some useful 
help. But after a few successful uses, now it keeps on crashing with:

--37110:0:aspacem  Valgrind: FATAL: aspacem assertion failed:
--37110:0:aspacem    addr <= addr + len - 1
--37110:0:aspacem    at m_aspacemgr/aspacemgr-linux.c:3440 
(add_mapping_callback)
--37110:0:aspacem  Exiting now.

I'm calling the default memcheck tool and the only options are --num-callers=30 
and --log-file=…

The log gives me a pretty long list of:
Conditional jump or move depends on uninitialised value(s)

But they seem to be all related to library code outside of my control (system 
libraries or standard c++ lib), for example:

==37110== Conditional jump or move depends on uninitialised value(s)
==37110==    at 0x1717D7C: pthread_mutex_unlock (in /usr/lib/libSystem.B.dylib)
==37110==    by 0x250F: __gthread_mutex_unlock(_opaque_pthread_mutex_t*) 
(gthr-default.h:528)
==37110==    by 0x2E03: std::tr1::_Sp_counted_base::weak_release() 
(boost_shared_ptr.h:166)
==37110==    by 0x2E76: std::tr1::_Sp_counted_base::release() 
(boost_shared_ptr.h:150)
==37110==    by 0x2E9B: std::tr1::shared_count::~shared_count() 
(boost_shared_ptr.h:266)
….

I'm assuming they're not problematic.
If I inhibit this errors with the proper option, at the time of crash the log 
is empty ( no errors ).
I believe my application is currently fully functioning so I don't think it is 
the cause of the crash.

Here are some relevant infos:
OS: Mac OS X 10.6
Processor: Intel Core 2 Duo
Application: Cocoa app written in C++ and Objective-C++ (HEAVY C++ templates 
going on, look at the example at the end...), built only for 32bit x86
Compiler: apple-gcc4.2
Built: no optimization, debug: DWARF with DSYM

Thanks in advance for any help,
Francesco

P.S.
If you wonder why I run the app in valgrind even if it works properly:
I used Valgrind (and other tools, not at the same time: guard malloc,NSZombies 
) to find some dangling pointer errors, it has been useful and I would like to 
be sure that I can rely on it when i need it.

-----------------------------

==37110== Conditional jump or move depends on uninitialised value(s)
==37110==    at 0x1717D7C: pthread_mutex_unlock (in /usr/lib/libSystem.B.dylib)
==37110==    by 0x250F: __gthread_mutex_unlock(_opaque_pthread_mutex_t*) 
(gthr-default.h:528)
==37110==    by 0x2E03: std::tr1::_Sp_counted_base::weak_release() 
(boost_shared_ptr.h:166)
==37110==    by 0x2E76: std::tr1::_Sp_counted_base::release() 
(boost_shared_ptr.h:150)
==37110==    by 0x2E9B: std::tr1::shared_count::~shared_count() 
(boost_shared_ptr.h:266)
==37110==    by 0x29993D: 
std::tr1::shared_ptr<nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > 
>::CInsertChildAtData>::~shared_ptr() (boost_shared_ptr.h:474)
==37110==    by 0x29995A: std::tr1::_Bind<std::tr1::_Mem_fn<void 
(nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > 
>::*)(std::tr1::shared_ptr<nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > 
>::CInsertChildAtData>)> 
()(std::tr1::shared_ptr<nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > > >, 
std::tr1::shared_ptr<nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > 
>::CInsertChildAtData>)>::~_Bind() (functional:696)
==37110==    by 0x2999CB: 
std::tr1::_Function_base::_Base_manager<std::tr1::_Bind<std::tr1::_Mem_fn<void 
(nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > 
>::*)(std::tr1::shared_ptr<nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > 
>::CInsertChildAtData>)> 
()(std::tr1::shared_ptr<nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > > >, 
std::tr1::shared_ptr<nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > 
>::CInsertChildAtData>)> >::_M_destroy(std::tr1::_Any_data&, 
std::tr1::integral_constant<bool, false>) (functional:889)
==37110==    by 0x2AA872: 
std::tr1::_Function_base::_Base_manager<std::tr1::_Bind<std::tr1::_Mem_fn<void 
(nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > 
>::*)(std::tr1::shared_ptr<nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > 
>::CInsertChildAtData>)> 
()(std::tr1::shared_ptr<nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > > >, 
std::tr1::shared_ptr<nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > 
>::CInsertChildAtData>)> >::_M_manager(std::tr1::_Any_data&, 
std::tr1::_Any_data const&, std::tr1::_Manager_operation) (functional:911)
==37110==    by 0x25A2: std::tr1::_Function_base::~_Function_base() 
(functional:1005)
==37110==    by 0x183C6: std::tr1::function<void ()()>::~function() 
(functional:826)
==37110==    by 0x23C392: nrg::CChildsManagModel<nrg::CPlayerGroup, 
std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::vector<std::tr1::shared_ptr<nrg::CPlayerGroup>, 
std::allocator<std::tr1::shared_ptr<nrg::CPlayerGroup> > >, 
nrg::CStatesManagModel<nrg::CSection, std::tr1::shared_ptr<nrg::CSection>, 
std::vector<std::tr1::shared_ptr<nrg::CSection>, 
std::allocator<std::tr1::shared_ptr<nrg::CSection> > > > 
>::InsertChildAt_GN(int, std::tr1::shared_ptr<nrg::CPlayerGroup> const&) 
(NrgChildsManag.cpp:224)
==37110==    by 0x15F789: nrg::CArrang::InsertGroupAt_GN(int, 
std::tr1::shared_ptr<nrg::CGroup>) (NrgArrang.cpp:370)
==37110==    by 0x16132C: nrg::CArrang::InsertGroupAt(int) (NrgArrang.cpp:438)
==37110==    by 0x7CAB9: -[QCstArrangPlayersCntrl addPlayer:] 
(CstArrangPlayersCntrl.mm:531)
==37110==    by 0x78077: -[QCstArrangPlayersCntrl segCntrlAction:] 
(CstArrangPlayersCntrl.mm:648)
==37110==    by 0x207DC45: -[NSApplication sendAction:to:from:] (in 
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==37110==    by 0x215D464: -[NSControl sendAction:to:] (in 
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==37110==    by 0x2158F11: -[NSCell _sendActionFrom:] (in 
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==37110==    by 0x2158E5F: -[NSSegmentedCell _sendActionFrom:] (in 
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==37110==    by 0x2158208: -[NSCell trackMouse:inRect:ofView:untilMouseUp:] (in 
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==37110==    by 0x21577C2: -[NSSegmentedCell 
trackMouse:inRect:ofView:untilMouseUp:] (in 
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==37110==    by 0x2156C5E: -[NSControl mouseDown:] (in 
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==37110==    by 0x2154C67: -[NSWindow sendEvent:] (in 
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==37110==    by 0x1107E5: -[QCstWind sendEvent:] (CstWind.mm:25)
==37110==    by 0x206D816: -[NSApplication sendEvent:] (in 
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==37110==    by 0x20012A6: -[NSApplication run] (in 
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==37110==    by 0x1FF92D8: NSApplicationMain (in 
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==37110==    by 0x16F0F: main (main.mm:13)

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to