From owner-freebsd-geom@FreeBSD.ORG Thu Dec 29 00:40:11 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9211816A420 for ; Thu, 29 Dec 2005 00:40:11 +0000 (GMT) (envelope-from rosti.bsd@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08D9743D64 for ; Thu, 29 Dec 2005 00:40:06 +0000 (GMT) (envelope-from rosti.bsd@gmail.com) Received: by wproxy.gmail.com with SMTP id 57so1366506wri for ; Wed, 28 Dec 2005 16:39:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:x-mailer:mime-version:content-type; b=GXnl04OxFZ9/flzoRsQGRtnFdRpg/vY3zVsAXGAJA+qMdVWYTxsg2vqLAodp093dMQ0omSmNP4PhqO0s6RXdVLpxZoSY+EF3ylPfXEFRUEONin1Fx3B4NJNGImEDZyiNXhQOcVCvp4GyXIk2VcZFQo4QrQNH35LP8KQ0DQs/0PY= Received: by 10.65.153.10 with SMTP id f10mr3363808qbo; Wed, 28 Dec 2005 15:45:03 -0800 (PST) Received: from saturn.lan ( [212.143.154.227]) by mx.gmail.com with ESMTP id q16sm1793977qbq.2005.12.28.15.45.01; Wed, 28 Dec 2005 15:45:02 -0800 (PST) Date: Thu, 29 Dec 2005 01:45:00 +0200 From: Rostislav Krasny To: freebsd-geom@FreeBSD.org Message-Id: <20051229014500.6e7496aa.rosti.bsd@gmail.com> X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.9; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Thu__29_Dec_2005_01_45_00_+0200_z3yi0jwXy+SDrOh0" Cc: Subject: Fatal trap 12 in g_event X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 00:40:11 -0000 This is a multi-part message in MIME format. --Multipart=_Thu__29_Dec_2005_01_45_00_+0200_z3yi0jwXy+SDrOh0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, I use FreeBSD 6.0-STABLE on my Pentium III machine with following ATA configuration: ad0: 19541MB at ata0-master UDMA100 ad1: 14324MB at ata0-slave UDMA100 ad2: 14649MB at ata1-master UDMA100 acd0: CDRW at ata1-slave UDMA33 FreeBSD is installed on the ad1 in DD mode. On the ad0 I have one NTFS filesystem and on the ad2 I have two FAT32 filesystems. Normally only ad1* are mounted. I have an old (original) CD of a "UNIX Unleashed" book. I inserted this CD into the acd0, mounted it read-only to /cdrom and then ran following command as a normal user (well, the user is also in the wheel group): cp -Rv /cdrom/* ~/unleashied That old CD probably has bad blocks. After some time, when the cp was still running, I got following kernel panic: ad2: detached Fatal trap 12: page fault while in kernel mode fault virtual address = 0x3b0 fault code = supervisor read, page not present instruction pointer = 0x20:0xc0447742 stack pointer = 0x28:0xc7b5ccc8 frame pointer = 0x28:0xc7b5ccd8 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 = 2 (g_event) trap number = 12 panic: page fault Uptime: 7m46s Dumping 127 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 127MB (32512 pages) 112 96 80 64 48 32 16 You can find a trace in the attached text file. Further information can be sent upon request. Thank you in advance --Multipart=_Thu__29_Dec_2005_01_45_00_+0200_z3yi0jwXy+SDrOh0 Content-Type: text/plain; name="script.1" Content-Disposition: attachment; filename="script.1" Content-Transfer-Encoding: quoted-printable Script started on Thu Dec 29 00:46:54 2005 saturn# pwd=0D /usr/obj/usr/src/sys/MYKERNEL saturn# kgdb kernel.debug /var/crash/vmcore.0=0D [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so:= Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". Unread portion of the kernel message buffer: ad2: detached Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0x3b0 fault code =3D supervisor read, page not present instruction pointer =3D 0x20:0xc0447742 stack pointer =3D 0x28:0xc7b5ccc8 frame pointer =3D 0x28:0xc7b5ccd8 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 2 (g_event) trap number =3D 12 panic: page fault Uptime: 7m46s Dumping 127 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 127MB (32512 pages) 112 96 80 64 48 32 16 #0 doadump () at pcpu.h:165 165 __asm __volatile("movl %%fs:0,%0" : "=3Dr" (td)); (kgdb) where #0 doadump () at pcpu.h:165 #1 0xc04d3d66 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:3= 99 #2 0xc04d3ffc in panic (fmt=3D0xc0620955 "%s") at /usr/src/sys/kern/kern_shutdown.c:555 #3 0xc0602b44 in trap_fatal (frame=3D0xc7b5cc88, eva=3D944) at /usr/src/sys/i386/i386/trap.c:836 #4 0xc06028ab in trap_pfault (frame=3D0xc7b5cc88, usermode=3D0, eva=3D944) at /usr/src/sys/i386/i386/trap.c:744 #5 0xc0602509 in trap (frame=3D {tf_fs =3D -1049886712, tf_es =3D -944439256, tf_ds =3D -1068957656, = tf_edi =3D 0, tf_esi =3D 0, tf_ebp =3D -944386856, tf_isp =3D -944386892, t= f_ebx =3D -1050171520, tf_edx =3D -1051733632, tf_ecx =3D 4, tf_eax =3D 0, = tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1069254846, tf_cs =3D 32, tf_ef= lags =3D 590338, tf_esp =3D 6, tf_ss =3D -1050171520}) at /usr/src/sys/i386/i386/trap.c:434 #6 0xc05f2c4a in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #7 0xc0447742 in acd_geom_detach (arg=3D0xc167a780, flag=3D0) at /usr/src/sys/dev/ata/atapi-cd.c:199 #8 0xc049af75 in one_event () at /usr/src/sys/geom/geom_event.c:206 #9 0xc049b04d in g_run_events () at /usr/src/sys/geom/geom_event.c:226 #10 0xc049bec1 in g_event_procbody () at /usr/src/sys/geom/geom_kern.c:141 #11 0xc04beb84 in fork_exit (callout=3D0xc049be4c , arg= =3D0x0,=20 frame=3D0xc7b5cd38) at /usr/src/sys/kern/kern_fork.c:789 #12 0xc05f2cac in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:= 208 (kgdb) q saturn# ^D=08=08exit Script done on Thu Dec 29 00:47:24 2005 --Multipart=_Thu__29_Dec_2005_01_45_00_+0200_z3yi0jwXy+SDrOh0--