AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20070925170839.0f9421fb@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<maxim.kozlovsky@onstor.com>,<dl-cougar>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
X-Sylpheed-End-Special-Headers: 1
Date: Tue, 25 Sep 2007 17:09:30 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Maxim Kozlovsky" <maxim.kozlovsky@onstor.com>
Cc: dl-cougar
Subject: Re: using dmalloc library on bobcat linux
Message-ID: <20070925170930.02f04bd5@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E05B46B76@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E05B46B76@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

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.
> 
> Larry - could you please add the package to the toolchain and root
> filesystem.
> 
> 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. 
> 
> Max
> 

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
