From owner-freebsd-current@FreeBSD.ORG Tue Apr 22 20:03:05 2003 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 668A137B401 for ; Tue, 22 Apr 2003 20:03:05 -0700 (PDT) Received: from seed.net.tw (sn12.seed.net.tw [139.175.54.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1600B43FB1 for ; Tue, 22 Apr 2003 20:02:47 -0700 (PDT) (envelope-from leafy@chihiro.leafy.idv.tw) Received: from [211.74.131.22] (port=49161 helo=chihiro.leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.10:3) id 198AX0-000Jak-00 for freebsd-current@freebsd.org; Wed, 23 Apr 2003 11:02:46 +0800 Received: from chihiro.leafy.idv.tw (nobody@localhost [127.0.0.1]) by chihiro.leafy.idv.tw (8.12.9/8.12.9) with ESMTP id h3N32b3J000679 for ; Wed, 23 Apr 2003 11:02:38 +0800 (CST) (envelope-from leafy@chihiro.leafy.idv.tw) Received: (from leafy@localhost) by chihiro.leafy.idv.tw (8.12.9/8.12.9/Submit) id h3N32buY000678 for freebsd-current@freebsd.org; Wed, 23 Apr 2003 11:02:37 +0800 (CST) Date: Wed, 23 Apr 2003 11:02:37 +0800 From: leafy To: freebsd-current@freebsd.org Message-ID: <20030423030237.GA642@chihiro.leafy.idv.tw> Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: panic when kldunloading 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: Wed, 23 Apr 2003 03:03:05 -0000 I did a "kldload ipl && kldunload ipl", which produces following panic: GNU gdb 5.2.1 (FreeBSD) Copyright 2002 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 conditions. 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-undermydesk-freebsd"... panic: page fault panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0x4 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01c7223 stack pointer = 0x10:0xceb61c5c frame pointer = 0x10:0xceb61c5c 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 = 61515 (kldunload) trap number = 12 panic: page fault syncing disks, buffers remaining... 2222 2222 2220 2220 2220 2220 2220 2220 2220 2220 2220 2220 2220 2220 2220 2220 2220 2220 2220 2220 2220 2220 giving up on 635 buffers Uptime: 14h57m46s Dumping 255 MB ata0: resetting devices .. done 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 --- Reading symbols from /usr/obj/usr/src/sys/CHIHIRO/modules/usr/src/sys/modules/ac pi/acpi.ko.debug...done. Loaded symbols for /usr/obj/usr/src/sys/CHIHIRO/modules/usr/src/sys/modules/acpi /acpi.ko.debug Reading symbols from /boot/kernel/ng_socket.ko...done. Loaded symbols for /boot/kernel/ng_socket.ko Reading symbols from /boot/kernel/ng_iface.ko...done. Loaded symbols for /boot/kernel/ng_iface.ko Reading symbols from /boot/kernel/ng_ppp.ko...done. Loaded symbols for /boot/kernel/ng_ppp.ko Reading symbols from /boot/kernel/ng_bpf.ko...done. Loaded symbols for /boot/kernel/ng_bpf.ko Reading symbols from /boot/kernel/ng_vjc.ko...done. Loaded symbols for /boot/kernel/ng_vjc.ko Reading symbols from /boot/kernel/ng_pppoe.ko...done. Loaded symbols for /boot/kernel/ng_pppoe.ko Reading symbols from /boot/kernel/ipl.ko...done. Loaded symbols for /boot/kernel/ipl.ko #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:238 238 dumping++; (kgdb) #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:238 #1 0xc01bee1d in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:370 #2 0xc01bf174 in panic () at /usr/src/sys/kern/kern_shutdown.c:543 #3 0xc02d629e in trap_fatal (frame=0xceb61c1c, eva=0) at /usr/src/sys/i386/i386/trap.c:837 #4 0xc02d5fb2 in trap_pfault (frame=0xceb61c1c, usermode=0, eva=4) at /usr/src/sys/i386/i386/trap.c:751 #5 0xc02d5b75 in trap (frame= {tf_fs = -1058471912, tf_es = 16, tf_ds = -1016070128, tf_edi = 0, tf_esi = -1016010752, tf_ebp = -826925988, tf_isp = -826926008, tf_ebx = -1015220652, t f_edx = 0, tf_ecx = -1015216448, tf_eax = -1070322800, tf_trapno = 12, tf_err = 0, tf_eip = -1071877597, tf_cs = 8, tf_eflags = 66051, tf_esp = -826925948, tf_s s = -1071980710}) at /usr/src/sys/i386/i386/trap.c:433 #6 0xc02c6a38 in calltrap () at {standard input}:96 #7 0xc01adf5a in linker_file_unregister_sysctls (lf=0x0) at /usr/src/sys/kern/kern_linker.c:267 #8 0xc01ae73e in linker_file_unload (file=0xc370e800) at /usr/src/sys/kern/kern_linker.c:527 #9 0xc01aee73 in kldunload (td=0xc370e800, uap=0x0) at /usr/src/sys/kern/kern_linker.c:812 #10 0xc02d65ba in syscall (frame= {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077937202, tf_esi = -10779 37460, tf_ebp = -1077937504, tf_isp = -826925708, tf_ebx = 0, tf_edx = 134563352 ---Type to continue, or q to quit--- , tf_ecx = 0, tf_eax = 305, tf_trapno = 12, tf_err = 2, tf_eip = 134514247, tf_c s = 31, tf_eflags = 582, tf_esp = -1077938628, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1024 #11 0xc02c6a8d in Xint0x80_syscall () at {standard input}:138 ---Can't read userspace from dump, or kernel process--- (kgdb) up 11 #11 0xc02c6a8d in Xint0x80_syscall () at {standard input}:138 138 {standard input}: No such file or directory. in {standard input} Current language: auto; currently asm Also, sometimes I cannot do "kldload ipl", it complains about "No such file or directory". What am I missing here? Jiawei Ye -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming