Newsgroups: comp.os.minix
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!nuchat!kevin
From: kevin@nuchat.sccsi.com (Kevin Brown)
Subject: Re: PS and Minix-386.
Message-ID: <1991Mar31.020300.16099@nuchat.sccsi.com>
Keywords: ps,386
Organization: Teenage Mutant Ninja NiceGuys(tm)
References: <7210@munnari.oz.au>
Date: Sun, 31 Mar 91 02:03:00 GMT

In article <7210@munnari.oz.au> bevan@ecr.mu.oz.au (Bevan Anderson) writes:

>I recompiled ps.c with bcc -3 so to give me  a 32 bit
>binary. Now when I execute ps (as root) I get:
>
>memory fault: core dumped.
>
>This happens after ps puts up the top line of the output (TTY LINE etc)
>I am doing a ps -U but that gets the same problem.
>
>Can anyone help?

The problem you describe has bitten me a number of times (you'd think
I'd know better by now  :-).

Ps expects the kernel files to be located in /usr/src/kernel/kernel,
/usr/src/fs/fs, and /usr/src/mm/mm.  However, the Minix-386 makefiles
put those images in /tmp.  So before you do a ps -U, copy /tmp/kernel to
/usr/src/kernel/kernel, /tmp/mm to /usr/src/mm/mm, and /tmp/fs to
/usr/src/fs/fs.

The problem you're having is that ps -U is getting its symbol information
from the OLD kernel, and that symbol information is now bogus.  Thus,
the memory fault.

An additional note: you MUST compile ps.c with -DINTEL_32BITS.  Otherwise
it will be confused about the size of the buffer cache, as an example.

>Bye,
>Bevan.


--
Kevin Brown						Disclaimer: huh?
kevin@nuchat.sccsi.com					csci31f7@cl.uh.edu 

Minix -- the Unix[tm] of the 90's.  System V -- the Multics of the 90's.  :-)

