From owner-freebsd-current@FreeBSD.ORG Mon Mar 29 13:34:29 2004 Return-Path: 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 7448616A4CE for ; Mon, 29 Mar 2004 13:34:29 -0800 (PST) Received: from demdwug7.mediaways.net (smtp.compuserve.de [62.52.27.101]) by mx1.FreeBSD.org (Postfix) with SMTP id D216343D49 for ; Mon, 29 Mar 2004 13:34:28 -0800 (PST) (envelope-from Hilko.Meyer@gmx.de) Received: (qmail 21947 invoked by uid 4218); 29 Mar 2004 21:34:24 -0000 Received: from dialin-145-254-150-054.arcor-ip.net (145.254.150.54) by relay2b.cso.mediaways.net with SMTP; 29 Mar 2004 21:34:24 -0000 From: Hilko Meyer To: current@freebsd.org Date: Mon, 29 Mar 2004 23:34:40 +0200 Message-ID: References: <20040325111957.U49224@carver.gumbysoft.com> <3ll6601p9n67rm3hk9mvutc8qjidatjp9j@smtp.compuserve.de> In-Reply-To: X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: Fatal trap 12: page fault while in kernel mode with samba X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2004 21:34:29 -0000 Hilko Meyer schrieb: >Hilko Meyer schrieb: >>Doug White schrieb: >>>On Wed, 24 Mar 2004, Hilko Meyer wrote: >>> >Then I tried the GENERIC-kernel. And it also crashed, if I access the = CDROM >via samba. I've compiled it with >makeoptions DEBUG=3D-g >but the gdb-output looks weird: I've compiled the GENERIC-Kernel again. Of course before I've got the new security advisory.... So, the system is still 5.2.1-RELEASE-p3 and the crash occurs with samba-2.2.8a. The Backtrace follows below. --- =46atal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address=3D 0x8 fault code=3D supervisor read, page not present instruction pointer=3D 0x8:0xc0632f10 stack pointer =3D 0x10:0xcdaf4c8c frame pointer =3D 0x10:0xcdaf4cec 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 31596 (smbd) trap number=3D 12 panic: page fault cpuid =3D 0;=20 syncing disks, buffers remaining... 295 295 295 294 294 294 294 294 294 = 294 294 294 294 294 294 294 294 294 294 294 294 294 294=20 giving up on 231 buffers Uptime: 2h10m33s Dumping 128 MB 16 32 48 64 80 96 112 --- Reading symbols from /boot/kernel/logo_saver.ko...done. Loaded symbols for /boot/kernel/logo_saver.ko Reading symbols from /usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/linux/linux.ko.d= ebug...done. Loaded symbols for /usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/linux/linux.ko.d= ebug #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 240dumping++; (kgdb) list *0xc0632f10 0xc0632f10 is in quotactl (/usr/src/sys/kern/vfs_syscalls.c:206). 201NDFREE(&nd, NDF_ONLY_PNBUF); 202error =3D vn_start_write(nd.ni_vp, &mp, V_WAIT | PCATCH); 203vrele(nd.ni_vp); 204if (error) 205return (error); 206error =3D VFS_QUOTACTL(mp, uap->cmd, uap->uid, uap->arg, td); 207vn_finished_write(mp); 208return (error); 209} 210 (kgdb) bt #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 #1 0xc05e8653 in boot (howto=3D256) at = /usr/src/sys/kern/kern_shutdown.c:372 #2 0xc05e896b in panic () at /usr/src/sys/kern/kern_shutdown.c:550 #3 0xc0756591 in trap_fatal (frame=3D0xcdaf4c4c, eva=3D8) at /usr/src/sys/i386/i386/trap.c:821 #4 0xc07562cd in trap_pfault (frame=3D0xcdaf4c4c, usermode=3D0, eva=3D8)= at /usr/src/sys/i386/i386/trap.c:735 #5 0xc0755f65 in trap (frame=3D {tf_fs =3D 24, tf_es =3D 16, tf_ds =3D 16, tf_edi =3D -844149484, = tf_esi =3D -1038023424, tf_ebp =3D -844149524, tf_isp =3D -844149640, tf_ebx =3D 0, = tf_edx =3D 4, tf_ecx =3D -1029080276, tf_eax =3D 0, tf_trapno =3D 12, tf_err =3D 0, = tf_eip =3D -1067241712, tf_cs =3D 8, tf_eflags =3D 66118, tf_esp =3D 0, tf_ss =3D = 136315328}) at /usr/src/sys/i386/i386/trap.c:420 #6 0xc07458b8 in calltrap () at {standard input}:94 #7 0xc075682f in syscall (frame=3D {tf_fs =3D 47, tf_es =3D 47, tf_ds =3D 47, tf_edi =3D 1003, tf_esi = =3D -1077944416, tf_ebp =3D -1077944360, tf_isp =3D -844149388, tf_ebx =3D = 1009, tf_edx =3D 1009, tf_ecx =3D -1077942920, tf_eax =3D 148, tf_trapno =3D = 22, tf_err =3D 2, tf_eip =3D 674856735, tf_cs =3D 31, tf_eflags =3D 582, tf_esp =3D = -1077944436, tf_ss =3D 47}) at /usr/src/sys/i386/i386/trap.c:1010 #8 0xc074590d in Xint0x80_syscall () at {standard input}:136 ---Can't read userspace from dump, or kernel process--- (kgdb) quit If you need more Information, I'll try to provide you with more = Information. But I'll need some help and guidance, because I'm new to kernel = debugging. bye, Hilko