From owner-freebsd-current Mon Sep 30 12:16:29 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7601F37B48E for ; Mon, 30 Sep 2002 12:16:19 -0700 (PDT) Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91CC743E4A for ; Mon, 30 Sep 2002 12:16:16 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 630 invoked from network); 30 Sep 2002 19:16:15 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail13.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 30 Sep 2002 19:16:15 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g8UJGDBv007263 for ; Mon, 30 Sep 2002 15:16:13 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20020930201513.A318@snoopy.cablecom.ch> Date: Mon, 30 Sep 2002 15:16:17 -0400 (EDT) From: John Baldwin To: freebsd-current@FreeBSD.ORG Subject: Re: Fatal trap 12 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 30-Sep-2002 Hanspeter Roth wrote: > On Sep 30 at 11:59, John Baldwin spoke: > >> >> These messages above that you left out are very important. :( >> Also, if you can get a trace by typing 't' at the db> prompt >> that can be very helpful as well. > > Ok. I hope there aren't to many mistakes. > > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa > unknown: can't assign resources (port) > unknown: can't assign resources (port) > unknown: can't assign resources (port) > unknown: can't assign resources (port) > unknown: can't assign resources (irq) > unknown: can't assign resources (port) > unknown: can't assign resources (port) > Tiemcounters tick every 10.000 msec > ad0: 76351MB [155127/16/63] at ata0-master UDMA100 > acd0: CD-RW at ata1-master PIO4 > acd1: CD-RW at ata2-master PIO4 > acd2: CD-RW at ata3-master PIO4 > acd3: CD-RW at ata4-master PIO4 > acd4: CD-RW at ata5-master PIO4 > Mounting root from ufs:/dev/ad0s3a > > > Fatal trap 12: page fault while in kernal mode > fault virtual address = 0xdeadc0de This means someone is trying to access memory that has been free'd. > fault code = supervisor write, page not present > instruction pointer = 0x8:0xc044d03e > stack pointer = 0x10:0xcd214a94 > frame pointer = 0x10:0xcd214c9a > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 1 (init) > kernel: type 12 trap, code=0 > Stopped at generic_bcopy+0x1a: repe movsl (%esi),%es:(%edi) > db> Context switches not allowd in the debugger. > db> > db> trace > generic_bcopy(c0f079c0,cd214cf0,0,0,cd214cd8) at generic_bcopy+0x1a > start_init(0,cd214d48,c04b26b1,348,0) at start_init+0x45e This is: (kgdb) l *start_init+0x45e 0xc02448de is in start_init (../../../kern/init_main.c:663). 663 if ((error = execve(td, &args)) == 0) { Hmm, unfortunately generic_bcopy() is in asm, and so it doesn't have a "true" frame and we end up skipping over the frame in execve() where it is called from. There are only 3 bcopy's in execve(), but I'm not sure which is likely to have been the problematic one. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message