From: Chris E. <cem...@ch...> - 2000-05-03 17:14:39
|
On Wed, 3 May 2000, Jeff Dike wrote: > I think I mentioned in one of my various pieces of mail that I'm > going to change it to UM_EXEC_INIT(pid) (I just made up the name > right now though...). Ok, fine. > > Incidentally, it looks like the current system I have is falling > > over inside padzero() from the elf loading stuff. I suppose that > > means the bss hasn't been mapped properly. > > That's supposed to get a segfault. The fault handler is supposed to > map in the page properly. Hmm... I'll have to have a closer look. At the moment all that I see is a zombie process. It'd be nice if the kernel shut down when init dies - I've been running 'killall -KILL linux' a lot recently. I may have missed something obvious, of course. Incidentally, have you got gdb usefully debugging this sort of thing? I haven't had all that much luck, presumably due either to the funky remapping or the multiple threads. > When you exec, there are going to be three segfaults before the > process actually gets going - the stack, padzero filling out bss, > and the entry point. So the segfault handler is going to map those > three pages in before anything else happens. Is padzero the first one to happen? If not, it's possibly even stranger. Chris -- Chris Emerson, obsessed Cambridge juggler E-mail: cem...@ch... Web page: http://www.chiark.greenend.org.uk/~cemerson/ |