Re: [dtn-users] Has anyone tried running DTN2 under valgrind lately?
Alex McMahon <alex.mcmahon@cs.tcd.ie> Mon, 12 November 2012 17:56 UTC
Return-Path: <alex.mcmahon@cs.tcd.ie>
X-Original-To: dtn-users@ietfa.amsl.com
Delivered-To: dtn-users@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 65AEC21F874A for <dtn-users@ietfa.amsl.com>; Mon, 12 Nov 2012 09:56:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QCQIP2hj2XRJ for <dtn-users@ietfa.amsl.com>; Mon, 12 Nov 2012 09:56:12 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) by ietfa.amsl.com (Postfix) with ESMTP id BC6D321F8748 for <dtn-users@irtf.org>; Mon, 12 Nov 2012 09:56:12 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 11F60BE50; Mon, 12 Nov 2012 17:55:51 +0000 (GMT)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id itxy3snJzmSi; Mon, 12 Nov 2012 17:55:48 +0000 (GMT)
Received: from [134.226.36.242] (oblong.dsg.cs.tcd.ie [134.226.36.242]) by mercury.scss.tcd.ie (Postfix) with ESMTPA id 665C5BE2F; Mon, 12 Nov 2012 17:55:48 +0000 (GMT)
From: Alex McMahon <alex.mcmahon@cs.tcd.ie>
To: Amy Alford <aloomis@sarn.org>
In-Reply-To: <CAB9rx+9nor+Lpxm3y0bfHghS7SddHH4PoE5tgvFo4mRKk5E0zA@mail.gmail.com>
References: <CAB9rx+9nor+Lpxm3y0bfHghS7SddHH4PoE5tgvFo4mRKk5E0zA@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Organization: Trinity College Dublin
Date: Mon, 12 Nov 2012 17:55:48 +0000
Message-ID: <1352742948.4741.92.camel@oblong>
Mime-Version: 1.0
X-Mailer: Evolution 2.28.3
Content-Transfer-Encoding: 7bit
Cc: dtn-users@irtf.org
Subject: Re: [dtn-users] Has anyone tried running DTN2 under valgrind lately?
X-BeenThere: dtn-users@irtf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: alex.mcmahon@cs.tcd.ie
List-Id: "The Delay-Tolerant Networking Research Group \(DTNRG\) - Users." <dtn-users.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/dtn-users>, <mailto:dtn-users-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/dtn-users>
List-Post: <mailto:dtn-users@irtf.org>
List-Help: <mailto:dtn-users-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 12 Nov 2012 17:56:14 -0000
Hi Amy, If you export them mercurial changesets for oasys/DTN2 and post to the list we could test on our flamebox (which runs nightly unit tests for DTN2 and oasys under valgrind). All the best, Alex On Mon, 2012-11-12 at 11:10 -0500, Amy Alford wrote: > I've been trying to do this, but I get a lot of spurious output. Most > of it falls into the following couple of categories: > > > 1) Threads shutdown uncleanly. Sometimes one thread is accessing > variables another thread has already freed. > 2) Lots of memory is intentionally freed by the OS on exit. This > wouldn't be such a problem, since valgrind classifies this as "still > reachable" rather than a memory leak. However, the gcc STL > implementation uses an internal pointer to the block of memory it has > allocated (rather than a pointer to the beginning of the block). This > causes valgrind to classify this memory as "possibly lost" instead of > "still reachable". > > > I discovered an environment variable "OASYS_CLEANUP_SINGLETONS" that > causes oasys to delete classes that inherit from Singleton on exit. > This helps with the valgrind output, but actually causes dtnd to > segfault since some Singletons are already manually deleted. > > > I have a slew of changes that got the valgrind output down from about > 2000 lines to 500, but I'm not sure that my changes don't have > unintended effects. > > > - Amy > _______________________________________________ > dtn-users mailing list > dtn-users@irtf.org > https://www.irtf.org/mailman/listinfo/dtn-users
- [dtn-users] Has anyone tried running DTN2 under v… Amy Alford
- Re: [dtn-users] Has anyone tried running DTN2 und… Alex McMahon