From owner-freebsd-stable@FreeBSD.ORG Tue May 30 19:53:04 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20AEE16A9C8 for ; Tue, 30 May 2006 19:53:04 +0000 (UTC) (envelope-from zingelman@fnal.gov) Received: from mailgw1.fnal.gov (mailgw1.fnal.gov [131.225.111.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E6DF43D58 for ; Tue, 30 May 2006 19:53:00 +0000 (GMT) (envelope-from zingelman@fnal.gov) Received: from mailav2.fnal.gov (mailav2.fnal.gov [131.225.111.20]) by mailgw1.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) with SMTP id <0J0300CXYG1A9J@mailgw1.fnal.gov> for freebsd-stable@freebsd.org; Tue, 30 May 2006 14:46:38 -0500 (CDT) Received: from mailgw1.fnal.gov ([131.225.111.11]) by mailav2.fnal.gov (SAVSMTP 3.1.7.47) with SMTP id M2006053014463806358 for ; Tue, 30 May 2006 14:46:38 -0500 Received: from conversion-daemon.mailgw1.fnal.gov by mailgw1.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) id <0J0300601G87JZ@mailgw1.fnal.gov> (original mail from zingelman@fnal.gov) for freebsd-stable@freebsd.org; Tue, 30 May 2006 14:46:38 -0500 (CDT) Received: from nova.fnal.gov (nova.fnal.gov [131.225.121.207]) by mailgw1.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) with ESMTP id <0J0300467G9QRI@mailgw1.fnal.gov>; Tue, 30 May 2006 14:46:38 -0500 (CDT) Received: from nova.fnal.gov (localhost [127.0.0.1]) by nova.fnal.gov (8.13.6+Sun/8.13.6) with ESMTP id k4UJkbN2016865; Tue, 30 May 2006 14:46:37 -0500 (CDT) Received: from localhost (tez@localhost) by nova.fnal.gov (8.13.6+Sun/8.13.6/Submit) with ESMTP id k4UJkVvO016859; Tue, 30 May 2006 14:46:37 -0500 (CDT) Date: Tue, 30 May 2006 14:46:31 -0500 (CDT) From: Tim Zingelman In-reply-to: <20051205132558.M88299@maildrop.int.zabbadoz.net> X-X-Sender: tez@nova.fnal.gov To: "Bjoern A. Zeeb" Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20051205113818.I88299@maildrop.int.zabbadoz.net> <1133786693.70431.9.camel@buffy.york.ac.uk> <20051205132558.M88299@maildrop.int.zabbadoz.net> X-Authentication-warning: nova.fnal.gov: tez owned process doing -bs Cc: freebsd-stable@freebsd.org Subject: Re: panic logging out on serial console X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tim Zingelman List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 May 2006 19:53:10 -0000 On Mon, 5 Dec 2005, Bjoern A. Zeeb wrote: > On Mon, 5 Dec 2005, Gavin Atkinson wrote: > > > On Mon, 2005-12-05 at 11:47 +0000, Bjoern A. Zeeb wrote: > >> I had been logged in on serial console and typed 'exit' and the > >> RELENG_6 machine went *kaboom*. I hadn't seen sth like this befire on > >> any of my other machines: > >> > >> i386/RELENG_6 from around 2005-11-17 11:00 UTC. > >> > >> --- 8< 8< 8< --- > >> foo# exit > >> logout > >> > >> Fatal trap 12: page fault while in kernel mode > >> fault virtual address = 0x0 > >> fault code = supervisor read, page not present > >> instruction pointer = 0x20:0x0 > >> stack pointer = 0x28:0xef699954 > >> frame pointer = 0x28:0xef699968 > >> 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 = 70703 (getty) > >> trap number = 12 > >> panic: page fault > >> > >> I have the core file and can save it for some days but it won't > >> help a lot unless someone tells me how I can skip the frame with > >> the null pointer in kgdb. > > > > I've never had a problem with backtraces (even when IP=0x0) but don't > > forget you can always look at the stack with > > > > (gdb) x/40xw 0xef699954 > > oh thanks. I'll paste it in for the arguments: > > (kgdb) x/40xw 0xef699954 > 0xef699954: * 0xc05b60db 0x00000000 0xc23b5c00 0xc23b4400 > 0xef699964: 0xc23b5c00 0xef699980 * 0xc0600ec8 0xc23b5cac > 0xef699974: 0x00000000 0x00000000 0xc278a900 0xef699998 > > (kgdb) l *0xc05b60db > 0xc05b60db is in knote (/u1/src/RELENG_6/sys/kern/kern_event.c:1534). > > (kgdb) l *0xc0600ec8 > 0xc0600ec8 is in ttwwakeup (/u1/src/RELENG_6/sys/kern/tty.c:2451). Any resolution on this... I have a panic on 6.1-RELEASE that looks remarkably similar: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0x0 stack pointer = 0x28:0xcd490974 frame pointer = 0x28:0xcd490988 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 = 4404 (sshd) trap number = 12 panic: page fault Uptime: 13d2h18m44s Dumping 255 MB (2 chunks) chunk 0: 1MB (160 pages) ... ok chunk 1: 255MB (65280 pages) 240 224 208 192 176 160 144 128 112 96 80 64 48 32 16 (kgdb) bt #0 doadump () at pcpu.h:165 #1 0xc064dee1 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:402 #2 0xc064e178 in panic (fmt=0xc088cb0e "%s") at /usr/src/sys/kern/kern_shutdown.c:558 #3 0xc0841d94 in trap_fatal (frame=0xcd490934, eva=0) at /usr/src/sys/i386/i386/trap.c:836 #4 0xc0841afb in trap_pfault (frame=0xcd490934, usermode=0, eva=0) at /usr/src/sys/i386/i386/trap.c:744 #5 0xc0841739 in trap (frame= {tf_fs = -1036845048, tf_es = -850853848, tf_ds = -1066794968, tf_edi = -1032680832, tf_esi = -1031428864, tf_ebp = -850851448, tf_isp = -850851488, tf_ebx = -1036994560, tf_edx = -1063786400, tf_ecx = -1032680832, tf_eax = -1036994424, tf_trapno = 12, tf_err = 0, tf_eip = 0, tf_cs = 32, tf_eflags = 66118, tf_esp = -1067241889, tf_ss = 0}) at /usr/src/sys/i386/i386/trap.c:434 #6 0xc0830c9a in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #7 0x00000000 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) x/40xw 0xcd490974 0xcd490974: 0xc0632e5f 0x00000000 0xc230b800 0xc285a500 0xcd490984: 0xc2728a80 0xcd4909a4 0xc067d8fd 0xc230b888 0xcd490994: 0x00000000 0x00000000 0xc230b810 0xc230b800 0xcd4909a4: 0xcd4909bc 0xc067c50c 0xc230b800 0xc230b800 0xcd4909b4: 0xc230b800 0xc285a500 0xcd4909d8 0xc0680bcc 0xcd4909c4: 0xc230b800 0x00000001 0xc285a500 0xcd490bcc 0xcd4909d4: 0xc091dba0 0xcd4909f4 0xc0624d2f 0xc285a500 0xcd4909e4: 0x00000003 0x00002000 0xc2728a80 0x00000000 0xcd4909f4: 0xcd490a34 0xc060361f 0xc285a500 0x00000003 0xcd490a04: 0x00002000 0xc2728a80 0xc285a500 0xc2d57dd0 (kgdb) l *0xc0632e5f 0xc0632e5f is in knote (/usr/src/sys/kern/kern_event.c:1534). (kgdb) l *0xc067d8fd 0xc067d8fd is in ttwakeup (/usr/src/sys/kern/tty.c:2427). But I was not using the serial port at the time... - Tim