On 08/07/2012 04:43 PM, Jacob Goldstein wrote:
> I created a new Xcode Cocoa project, built and ran it under Valgrind, and the 
> following leaks are reported.  Is this expected?  Could this be a bug?
> 
> 
> 
> MacOS> valgrind --num-callers=200 ./valgrindtest2
> ==22925== Memcheck, a memory error detector
> ==22925== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
> ==22925== Using Valgrind-3.8.0.SVN and LibVEX; rerun with -h for copyright 
> info
> ==22925== Command: ./valgrindtest2
> ==22925== 
> --22925:0:schedule VG_(sema_down): read returned -4

That unexpected behavior of sema_down should be investigated.

> ==22925== 
> ==22925== HEAP SUMMARY:
> ==22925==     in use at exit: 2,377,584 bytes in 11,686 blocks

I'd be more concerned about 2.4 MB in use (11686 blocks, average 0.21 KB)
than I would about 40 bytes (18 + 22) leaked.

-- 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to