From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4409eab2701649a4 X-Google-Attributes: gid1164f8,public From: cherkus@unimaster.com (Dave Cherkus) Subject: Re: Digital UNIX 3.2c kernel memory fault Date: 1995/10/08 Message-ID: <4579im$k8q@synergy.Destek.Net>#1/1 X-Deja-AN: 117206909 references: <44v0o1$cno@bubba.NMSU.Edu> organization: The Destek Group, Inc. cc: cwilliam@NMSU.EDU newsgroups: comp.sys.dec WILLIAMSON (cwilliam@NMSU.EDU) wrote: : Hello all, : I'm at wits end. For the past couple of days I been trying to compile the : kernel for Digital UNIX 3.2c. Compile and instalation seems to work. However, : when the system is booted just after the login prompt the following errorr : message: : trap: invalid memory write access from kernel mode : faulting ... : . : . : : panic (cpu 0): kernel memory fault : . : . : . This is the kernel using a address that does not point to a valid location. It's a similar kind of error to a program that gets a 'Segmentation violation: core dumped' message. Since this can happen in any of a number of different ways, the system can't print out any more specific information. However, you can boot the system to collect the crash dump files and get a knowledgable person (i.e. DEC service or perhaps some net.volunteer) to tell you more. If the system won't boot because the trap happens during boot, try issuing 'boot -fi genvmunix' from the console >>> prompt. If this doesn't work, you can use the name of any other kernel you've saved in the root directory instead of 'genvmunix'. Then, when the system is up, change directory to /var/adm/crash and look at the newest crash-data.NNN file. This may at least give a hint of the kernel subsystem that caused the trap, so you will have more useful input to provide to DEC service when you call, or to back out any changes you made to the system configuration that may have reconfigured the system in a way that causes a trap. There's not that much anyone can do with the bare information that comes from the trap message; you need to have at least the crash-data.NNN file available and even better the vmunix.NNN and vmcore.NNN files. Keep in mind that in most cases the only way to get a solution is to get DEC service involved. If you are more curious, you can actually use dbx to examine the crash file. There are details in the kernel debugging manual in the DEC documentation set. A short summary follows. Consider the following example: |> trap: invalid memory read access from kernel mode |> |> faulting virtual address: 0xffffffff84dc7618 |> pc of faulting instruction: 0xfffffc000029c31c |> ra contents at time of fault: 0xfffffc000029c2ec |> sp contents at time of fault: 0xffffffff8d90ba38 |> |> panic: kernel memory fault Start dbx using the number of the most recent crash dump: # cd /var/adm/crash # dbx -k vmunix.NNN vmcore.NNN When dbx is up, you can look at the trace of the thread causing the trap: (dbx) tset active_threads[paniccpu] (dbx) trace If this fails, you can look at the instruction active at the time the trap occurred. Use the 'pc of faulting instruction' line from the message: (dbx) 0xfffffc000029c31c/i The info at the beginning of the line should show you the name of the routine that was active at the time the trap occurred. You can look at the parent routine using the 'ra contents' from the trap message: (dbx) 0xfffffc000029c2ec/i -- Dave Cherkus ----- UniMaster, Inc. ----- Contract Software Development Specialties: UNIX TCP/IP X OSF/1 AlphaAXP AIX RS/6000 Performance ISDN Email: cherkus@UniMaster.COM Tel: (603) 888-8308 Fax: (603) 888-4598 Live Free or Die - New Hampshire has 3 seasons: ice, mud and black fly