[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] "invalid S?_MAGIC!"
W dniu 29.09.2012 10:56, Lars Schmidbauer pisze:
Hi,
i get this "invalid invalid S?_MAGIC!" error on Falcon/CT6*/CTPCI at shutdown, too.
MP is off here, error occures randomly (most times not, sometimes while shutdown
of any partitions (FAT, VFAT or ext2)). A few times this error occured when starting
a program (QED or other), in this case errormessage was started with "pid** (QED):" or
"pid** (DESKTOP):"
It does not happen very often, but most times at shutdown.
I've seen invalid S?_MAGIC errors long time ago.
It means that kernel memory (kernel - not user) has been corrupted.
Longer explanation:
FreeMiNT memory allocation algos distinguish three types of allocations,
depending on allocation size. This allows much better handling of memory
fragmentation. In kernel structures, allocation type is described by few
constants (from kmemory.c):
# define MR_MAGIC (0x5330)
# define S1_MAGIC (0x5331)
# define S2_MAGIC (0x5332)
# define LB_MAGIC (0x5333)
# define ST_MAGIC (0x5334)
So, if there is an other value there - something has overwritten it. As
a result, kernel memory structures cannot be trusted, and that is BAD,
VERY BAD.
For more explanation, look in kmemory.c
How can we find whats corrupting it?
First, we should expand error message to show what value there is - it
might be a clue.
Second, we could ask Aranaym developers for special debug Aranym to
watch for us where that values get changed. This may show which app is
misbehaving.
AdamK