X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C7FFD9.B7D6998F@onstor-exch02.onstor.net>; Tue, 25 Sep 2007 17:08:16 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: using dmalloc library on bobcat linux
Date: Tue, 25 Sep 2007 17:08:16 -0800
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E056C910B@onstor-exch02.onstor.net>
In-Reply-To: <20070925170930.02f04bd5@ripper.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: using dmalloc library on bobcat linux
Thread-Index: Acf/0ZCnBaiWSxUgSxq57Mc0MPym6gAANjeA
From: "Larry Scheer" <larry.scheer@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>,
	"Maxim Kozlovsky" <maxim.kozlovsky@onstor.com>
Cc: <dl-cougar>

Mpatrol and efence are both in the rootfs. I will add dmalloc to the
rootfs and the toolchain.=20

Larry

-----Original Message-----
From: Andy Sharp=20
Sent: Tuesday, September 25, 2007 5:10 PM
To: Maxim Kozlovsky
Cc: dl-cougar
Subject: Re: using dmalloc library on bobcat linux

On Tue, 25 Sep 2007 16:45:53 -0700 "Maxim Kozlovsky"
<maxim.kozlovsky@onstor.com> wrote:

> I've checked in some code to support using dmalloc library with bobcat
> linux build, see
> http://wiki.onstor.net/wiki/Cougar:using_dmalloc_librarry for the how
> to.
>=20
> Larry - could you please add the package to the toolchain and root
> filesystem.
>=20
> Currently running with the dmalloc enabled produces lots of cores in
> various places. I'll appreciate if we will try to do this anyway and
> fix the crashes as we get them. Migrating from BSD to Linux can
> uncover a lot of latent bugs, it is better to find them proactively
> rather than expect them to show in testing.=20
>=20
> Max
>=20

Resending because I farkled the cougar list address the first time.


On linux (ie., the SSC on cougar) I think you will be a lot happier
using the mpatrol library, it's significantly more useful than the
dmalloc library, and covers more as well.  Things like this recent free
would have been caught by the mpatrol right off: freeing an address not
returned by malloc. Rather than producing just a bus error some time
later or whatever.

Somewhere sometime I believe I sent a URL for mpatrol around.  Didn't
I?  Hmm, people can google it.

I believe mpatrol is already in the rootfs.  You can link/run with it
dynamically, so you don't really need it in the toolchain.

Cheers,

a
