monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Platform quirks - darwin


From: Rick Robino
Subject: Re: Platform quirks - darwin
Date: Thu, 4 Sep 2003 01:09:18 -0700
User-agent: Mutt/1.4i

> On Thu, Sep 04, 2003 at 01:53:47AM +0200, Jan-Henrik Haukeland wrote:
> Rick Robino <address@hidden> writes:
[...] 
> Please download efence from: ftp://ftp.perens.com/pub/ElectricFence/
> and put the following in your $HOME/.gdbinit
[...]

I will do this.  Curious, what type *is* create_socket() supposed to
be fed for its first argument?  Mine seemed to get null, expect an
address, and had a string as a backup.  So I'm confused.

Just FYI, Apple's runtime environment has some builtin support for
a few magic malloc variables, including one that turns on fencing
nibble space.  I had these turned on during the quoted gdb session,
stepping by calls to fprintf, and I did also run some utilities
they have for checking leaks.  Both tools positively reported none.

Here is the output from them in case there are any "real" mac
developers who read this, I'm not very familiar with these tools
and this may help others in case I have used them incorrectly:

$ leaks 7359
malloc[7412]: recording stacks using standard recorder
malloc[7412]: enabling scribbling to detect mods to free blocks
Process 7359: 84 nodes malloced
Process 7359: 0 leaks
malloc[7413]: recording stacks using standard recorder
malloc[7413]: enabling scribbling to detect mods to free blocks

$ heap 7359
malloc[7414]: recording stacks using standard recorder
malloc[7414]: enabling scribbling to detect mods to free blocks
Process 7359: 1 zones
Zone DefaultMallocZone_0x1972c0: Overall size: 276KB; 84 nodes malloced for 
33KB (11% of capacit
y); largest unused: [0x0019b04e-239KB]
All zones: 84 nodes malloced - 33KB

Zone DefaultMallocZone_0x1972c0: 84 nodes - Sizes: 20KB[1] 7KB[1] 638[1] 606[1] 
286[3] 270[2] 19
0[2] 78[1] 62[2] 46[12] 30[18] 14[40]

All zones: 84 nodes malloced - Sizes: 20KB[1] 7KB[1] 638[1] 606[1] 286[3] 
270[2] 190[2] 78[1] 62
[2] 46[12] 30[18] 14[40]

Can't get the ObjC classes for 7359
-----------------------------------------------------------------------
Zone DefaultMallocZone_0x1972c0: 84 nodes (33258 bytes)

<not Objective C object>        = 84 (33258 bytes)


--Rick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]