"Carr, Valerie" wrote:
>
> I am new at Linux and I'm trying to install the lkcd patch to be able to
> save off dumps and look at them with lcrash. However, after applying the
> patch to the kernel and saving off the dump I get the error "kernel_magic
> mismatch of map and memory image". I'm sure it is something I'm doing, but
> I do not know what. I also tried lcrash on the running kernel and I still
> get the same error. I have looked through the mailing list a bit and I
> cannot find the same problem.
This is almost always a mismatch between your System.map file and the
vmdump image you are using. If they don't match, this error occurs.
The kernel_magic and _end are supposed to match, because the value is
saved in the memory image to match what's in the System.map. That way
there's a direct correlation between the two files.
> I did look at the code and I see where it compares the kernel_magic to _end,
> and prints out this error when these are not the same. How can I make the
> two the same? - Do I need to go in and manually modify the numbers?
Nope. If they don't match, the map file wasn't generated against that
crash dump. You need to make sure both match -- copy the System.map
over by hand if you need to.
If you're building your own kernel, make sure both get copied to your
boot directory, and that the name of the map file is System.map.
> I am applying it to a Caldera 2.4.8 kernel using arch ia64.
>
> Any help would be appreciated.
>
> Valerie Carr
Hmmm, ia64 ... that should still work. If it doesn't, let me know.
When I was at SGI a few years ago, I put in that code and tried it
out, and it worked fine. Nothing _should_ have changed, but then
again, something may have messed up along the way.
Anyway, verify that and let me know.
--Matt
|