From: mike@summat.demon.co.uk (Mike Dodd)
Subject: Re: Has my Alpha got BSE ?
Date: 1996/09/18 [thread overview]
Message-ID: <2734.6835T1166T485@summat.demon.co.uk> (raw)
In-Reply-To: 51okqq$999@cronkite.d48.lilly.com
Mike staggered back from the pub and slurred to A McIntosh:
AM> At the >>> console prompt on a 4000-610 I hit Ctrl-T and got
AM> ID PCB Pri CPU Time Affinity CPU Program State
AM> -------- -------- --- -------- -------- --- ----------
AM> 0000010b 00139da0 3 3 00000001 0 shell ready
AM> 00000104 001224e0 5 148 00000001 0 pkd0_poll waiting on tqe
AM> [snip]
AM> 00000003 0002e280 2 707055 ffffffff 0 poll ready
AM> 00000002 0002d040 6 12 ffffffff 0 dead_eater waiting on dead_beef
AM>
AM> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AM> What is this dead_eater thing - And who has the warped sense of
AM> humour ??
Hehhee, strange, though I can't really help you.
A point of interest, though, the lowly home computer "Amiga" uses a
similar sounding thing for software debugging - the O/S calls can be
patched to store the 32-bit value "$DEADBEEF" in any memory de-allocated
and returned to the system stack, the idea being that if you ever
reference a pointer that points to this value that your program is running
a little fever.
Here's a little bit of info on what the miggy does, purely for interest...
(or not, as the case might be)
Memory munging:
- Except when Enforcer is running, location 0 is set to $C0DEDBAD, i.e.
programs referencing location zero will not f.e. find a null string.
- On startup all free memory is munged with $ABADCAFE. If this number
shows up, someone is referencing memory in the free list.
- Except when MEMF_CLEAR is set, memory is pre-munged on allocation with
$DEADFOOD. When this is used in an Enforcer report, the caller is
allocating memory and doesn't initialize it before using it. Note that
only memory which has a cookie attached will be pre-munged.
- Memory is filled with $DEADBEEF before it is freed, encouraging
programs reusing free'ed memory to crash.
Memory watching:
Mungwall places a magic cookie before the memory allocation.
Along with a wall of bytes on either side of the allocation to keep an
eye on the memory just before or after the allocation. If the
memory wall is trashed, mungwall complains and shows the damaged area.
If memory is trashed so bad that the cookie is completely gone, Mungwall
will not consider it a walled memory allocation and lets it go. Changes
are you'll be corrupting the memory list and/or overwriting other memory
allocation and crash soon after that. If a mungwall hit occurs, memory
will not be munged or free'ed, to give you a change to look at what was
written there.
--
Mike mailto : mike@summat.demon.co.uk
home page : http://www.summat.demon.co.uk/
fidonet : 2:2500/73.10
prev parent reply other threads:[~1996-09-18 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-18 4:00 Has my Alpha got BSE ? A McIntosh
1996-09-18 4:00 ` Mike Dodd [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox