AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20070925165958.51777c1d@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<maxim.kozlovsky@onstor.com>,<cl-cougar>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E05B46B76@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Tue, 25 Sep 2007 17:00:20 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Maxim Kozlovsky" <maxim.kozlovsky@onstor.com>
Cc: cl-cougar
Subject: Re: using dmalloc library on bobcat linux
Message-ID: <20070925170020.29f3eb33@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
> 

On linux 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.

Cheers,

a
