From owner-freebsd-ports-bugs@freebsd.org Sun Oct 14 10:06:48 2018 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7F9610CD32C for ; Sun, 14 Oct 2018 10:06:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 2F95281CC3 for ; Sun, 14 Oct 2018 10:06:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E949B10CD329; Sun, 14 Oct 2018 10:06:47 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF43D10CD326 for ; Sun, 14 Oct 2018 10:06:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C69781CC0 for ; Sun, 14 Oct 2018 10:06:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 8098E1151E for ; Sun, 14 Oct 2018 10:06:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w9EA6khZ002626 for ; Sun, 14 Oct 2018 10:06:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w9EA6kMZ002625 for ports-bugs@FreeBSD.org; Sun, 14 Oct 2018 10:06:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 232235] valgrind doesn't find trivial leak on head anymore, works on stable/11 Date: Sun, 14 Oct 2018 10:06:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tuexen@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter attachments.mimetype attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2018 10:06:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232235 Bug ID: 232235 Summary: valgrind doesn't find trivial leak on head anymore, works on stable/11 Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Keywords: regression Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: tuexen@freebsd.org Attachment #198117 text/plain mime type: Created attachment 198117 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D198117&action= =3Dedit Sample program leaking 1KB When testing valgrind on a stable/11 amd64 system with the attached test program leak.c results in what is expected: tuexen@stable11:~ % cc -o leak leak.c tuexen@stable11:~ % valgrind --leak-check=3Dfull ./leak =3D=3D56478=3D=3D Memcheck, a memory error detector =3D=3D56478=3D=3D Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward = et al. =3D=3D56478=3D=3D Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyr= ight info =3D=3D56478=3D=3D Command: ./leak =3D=3D56478=3D=3D=20 =3D=3D56478=3D=3D=20 =3D=3D56478=3D=3D HEAP SUMMARY: =3D=3D56478=3D=3D in use at exit: 1,024 bytes in 1 blocks =3D=3D56478=3D=3D total heap usage: 1 allocs, 0 frees, 1,024 bytes alloca= ted =3D=3D56478=3D=3D=20 =3D=3D56478=3D=3D 1,024 bytes in 1 blocks are definitely lost in loss recor= d 1 of 1 =3D=3D56478=3D=3D at 0x4C255B5: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so) =3D=3D56478=3D=3D by 0x4007BA: main (in /usr/home/tuexen/leak) =3D=3D56478=3D=3D=20 =3D=3D56478=3D=3D LEAK SUMMARY: =3D=3D56478=3D=3D definitely lost: 1,024 bytes in 1 blocks =3D=3D56478=3D=3D indirectly lost: 0 bytes in 0 blocks =3D=3D56478=3D=3D possibly lost: 0 bytes in 0 blocks =3D=3D56478=3D=3D still reachable: 0 bytes in 0 blocks =3D=3D56478=3D=3D suppressed: 0 bytes in 0 blocks =3D=3D56478=3D=3D=20 =3D=3D56478=3D=3D For counts of detected and suppressed errors, rerun with:= -v =3D=3D56478=3D=3D ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 fr= om 0) whereas on a head system (r339354) amd64 I get: tuexen@epyc:~ % cc -o leak leak.c tuexen@epyc:~ % valgrind ./leak =3D=3D1760=3D=3D Memcheck, a memory error detector =3D=3D1760=3D=3D Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward e= t al. =3D=3D1760=3D=3D Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyri= ght info =3D=3D1760=3D=3D Command: ./leak =3D=3D1760=3D=3D=20 =3D=3D1760=3D=3D=20 =3D=3D1760=3D=3D HEAP SUMMARY: =3D=3D1760=3D=3D in use at exit: 0 bytes in 0 blocks =3D=3D1760=3D=3D total heap usage: 0 allocs, 0 frees, 0 bytes allocated =3D=3D1760=3D=3D=20 =3D=3D1760=3D=3D All heap blocks were freed -- no leaks are possible =3D=3D1760=3D=3D=20 =3D=3D1760=3D=3D For counts of detected and suppressed errors, rerun with: = -v =3D=3D1760=3D=3D ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 fro= m 0) --=20 You are receiving this mail because: You are the assignee for the bug.=