Bug 344543 - valgrind --leak-check=full memleak errors from system libraries in OS X 10.10.2
Summary: valgrind --leak-check=full memleak errors from system libraries in OS X 10.10.2
Status: RESOLVED DUPLICATE of bug 344702
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (show other bugs)
Version: unspecified
Platform: MacPorts macOS
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-25 00:12 UTC by jhi
Modified: 2015-05-01 09:11 UTC (History)
2 users (show)

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


Attachments
log from "valgrind --leak-check=full ./zero" (1.74 KB, application/x-gzip)
2015-02-25 00:17 UTC, jhi
Details
valgrind suppressions file (827 bytes, application/x-gzip)
2015-02-25 00:22 UTC, jhi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jhi 2015-02-25 00:12:05 UTC
I'm in OS X 10.10.2 (Yosemite), uname -r shows "14.1.0" for the kernel version.

I'm using the macports valgrind-devel, "port show valgrind-devel" shows:

valgrind-devel                 @3.11.0-r14960  devel/valgrind

Looks to be this version:

https://trac.macports.org/changeset/133271/trunk/dports/devel/valgrind/Portfile

My "cc -v" says:

Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix

My C program, "cat zero.c":

int main() { return 0; }

With "valgrind ./zero" I get no errors, but with "valgrind --leak-check=full" I get 17 memleak errors from system libraries.  Log attached (will attach log.gz).  I generated a suppressions file with --suppressions=all, attached.  (will attach supp.gz)



Reproducible: Always

Steps to Reproduce:
1. See the details.
2.
3.

Actual Results:  
Got errors from system libraries.


Expected Results:  
No errors from system libraries.  (Or if they have some, suppressed.)



I first reported this via macports:

https://trac.macports.org/ticket/46948

But they suggested reporting upstream, so here I am.

They also mentioned this: https://bugs.kde.org/show_bug.cgi?id=343663
Comment 1 jhi 2015-02-25 00:17:09 UTC
Created attachment 91281 [details]
log from "valgrind --leak-check=full ./zero"
Comment 2 jhi 2015-02-25 00:22:13 UTC
Created attachment 91282 [details]
valgrind suppressions file
Comment 3 Rhys Kidd 2015-03-06 15:22:20 UTC
This appears to be a duplicate of bz#344702. Resolved in r14972.

Can you please confirm SVN versions resolve the issue for you?
Comment 4 jhi 2015-03-06 17:00:10 UTC
> This appears to be a duplicate of bz#344702. Resolved in r14972.
>
> Can you please confirm SVN versions resolve the issue for you?

I have been using the MacPorts versions of valgrind, I will need to
ask the maintainers to pull and build that new version.


On Fri, Mar 6, 2015 at 10:22 AM,  <rhyskidd@gmail.com> wrote:
> https://bugs.kde.org/show_bug.cgi?id=344543
>
> --- Comment #3 from rhyskidd@gmail.com ---
> This appears to be a duplicate of bz#344702. Resolved in r14972.
>
> Can you please confirm SVN versions resolve the issue for you?
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 5 Julian Seward 2015-04-28 10:50:19 UTC
Ping.  Can this be closed as a dup, or is it still alive?
Comment 6 jhi 2015-04-28 11:09:49 UTC
On Tuesday-201504-28 6:50, Julian Seward wrote:
> https://bugs.kde.org/show_bug.cgi?id=344543
>
> --- Comment #5 from Julian Seward <jseward@acm.org> ---
> Ping.  Can this be closed as a dup, or is it still alive?

All I can do is to re-ping the macports people,
I will do that right now.

AFAICT the macports valgind-devel is based on r14960:

sudo port installed | grep valgrind-devel
   valgrind-devel @3.11.0-r14960_0 (active)

so not quite r14972.
Comment 7 Rhys Kidd 2015-05-01 08:18:58 UTC
Confirming this is a dup and has been resolved. jhi will need to follow up the macports team to pull a more current development version:

$ cat ../zero.c 
int main() { return 0; }
$ ./vg-in-place ../zero
==90288== Memcheck, a memory error detector
==90288== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==90288== Using Valgrind-3.11.0.SVN and LibVEX; rerun with -h for copyright info
==90288== Command: ../zero
==90288== 
==90288== 
==90288== HEAP SUMMARY:
==90288==     in use at exit: 34,717 bytes in 426 blocks
==90288==   total heap usage: 502 allocs, 76 frees, 40,741 bytes allocated
==90288== 
==90288== LEAK SUMMARY:
==90288==    definitely lost: 0 bytes in 0 blocks
==90288==    indirectly lost: 0 bytes in 0 blocks
==90288==      possibly lost: 0 bytes in 0 blocks
==90288==    still reachable: 0 bytes in 0 blocks
==90288==         suppressed: 34,717 bytes in 426 blocks
==90288== 
==90288== For counts of detected and suppressed errors, rerun with: -v
==90288== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
$ ./vg-in-place --leak-check=full ../zero
==90291== Memcheck, a memory error detector
==90291== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==90291== Using Valgrind-3.11.0.SVN and LibVEX; rerun with -h for copyright info
==90291== Command: ../zero
==90291== 
==90291== 
==90291== HEAP SUMMARY:
==90291==     in use at exit: 34,717 bytes in 426 blocks
==90291==   total heap usage: 502 allocs, 76 frees, 40,741 bytes allocated
==90291== 
==90291== LEAK SUMMARY:
==90291==    definitely lost: 0 bytes in 0 blocks
==90291==    indirectly lost: 0 bytes in 0 blocks
==90291==      possibly lost: 0 bytes in 0 blocks
==90291==    still reachable: 0 bytes in 0 blocks
==90291==         suppressed: 34,717 bytes in 426 blocks
==90291== 
==90291== For counts of detected and suppressed errors, rerun with: -v
==90291== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 15 from 15)
Comment 8 Mark Wielaard 2015-05-01 09:11:31 UTC

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