From owner-freebsd-bugs@FreeBSD.ORG Thu May 14 14:30:02 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 085FA1065673 for ; Thu, 14 May 2009 14:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D65238FC17 for ; Thu, 14 May 2009 14:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4EEU1cM021431 for ; Thu, 14 May 2009 14:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4EEU1IP021430; Thu, 14 May 2009 14:30:01 GMT (envelope-from gnats) Resent-Date: Thu, 14 May 2009 14:30:01 GMT Resent-Message-Id: <200905141430.n4EEU1IP021430@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexey Ivanov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E4F9106564A for ; Thu, 14 May 2009 14:21:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id EF3C38FC0A for ; Thu, 14 May 2009 14:21:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n4EELbuf090732 for ; Thu, 14 May 2009 14:21:37 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n4EELboL090731; Thu, 14 May 2009 14:21:37 GMT (envelope-from nobody) Message-Id: <200905141421.n4EELboL090731@www.freebsd.org> Date: Thu, 14 May 2009 14:21:37 GMT From: Alexey Ivanov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/134540: kernel panic after sysctl -a (in strlcpy.c:56) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2009 14:30:02 -0000 >Number: 134540 >Category: kern >Synopsis: kernel panic after sysctl -a (in strlcpy.c:56) >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 14 14:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Alexey Ivanov >Release: FreeBSD-CURRENT >Organization: >Environment: FreeBSD PH34R 8.0-CURRENT FreeBSD 8.0-CURRENT #42 r189056M: Thu May 14 09:26:54 MSD 2009 root@:/usr/obj/usr/src/sys/PH34R.8 i386 hmmm.. i think it lies about revision, because i've csup'ed about tonight >Description: when i run #sysctl -a system freezes PH34R# kgdb kernel.debug /var/crash/vmcore.0 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 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-marcel-freebsd"... Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0xc0935c80 stack pointer = 0x28:0xe9d76ad0 frame pointer = 0x28:0xe9d76ad8 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 = 7357 (sysctl) trap number = 12 panic: page fault cpuid = 0 Uptime: 2h18m53s Physical memory: 1391 MB Dumping 203 MB: 188 172 156 140 124 108 92 76 60 44 28 12 Reading symbols from /boot/kernel/geom_eli.ko...Reading symbols from /boot/kernel/geom_eli.ko.symbols...done. done. Loaded symbols for /boot/kernel/geom_eli.ko Reading symbols from /boot/kernel/snd_hda.ko...Reading symbols from /boot/kernel/snd_hda.ko.symbols...done. done. Loaded symbols for /boot/kernel/snd_hda.ko Reading symbols from /boot/kernel/sound.ko...Reading symbols from /boot/kernel/sound.ko.symbols...done. done. Loaded symbols for /boot/kernel/sound.ko Reading symbols from /boot/kernel/atapicam.ko...Reading symbols from /boot/kernel/atapicam.ko.symbols...done. done. Loaded symbols for /boot/kernel/atapicam.ko Reading symbols from /boot/modules/bcmwl5_sys.ko...done. Loaded symbols for /boot/modules/bcmwl5_sys.ko Reading symbols from /boot/kernel/ndis.ko...Reading symbols from /boot/kernel/ndis.ko.symbols...done. done. Loaded symbols for /boot/kernel/ndis.ko Reading symbols from /boot/kernel/if_ndis.ko...Reading symbols from /boot/kernel/if_ndis.ko.symbols...done. done. Loaded symbols for /boot/kernel/if_ndis.ko Reading symbols from /boot/kernel/aio.ko...Reading symbols from /boot/kernel/aio.ko.symbols...done. done. Loaded symbols for /boot/kernel/aio.ko Reading symbols from /boot/kernel/linprocfs.ko...Reading symbols from /boot/kernel/linprocfs.ko.symbols...done. done. Loaded symbols for /boot/kernel/linprocfs.ko Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done. done. Loaded symbols for /boot/kernel/linux.ko Reading symbols from /usr/local/modules/fuse.ko...done. Loaded symbols for /usr/local/modules/fuse.ko Reading symbols from /boot/kernel/ntfs_iconv.ko...Reading symbols from /boot/kernel/ntfs_iconv.ko.symbols...done. done. Loaded symbols for /boot/kernel/ntfs_iconv.ko Reading symbols from /boot/kernel/libiconv.ko...Reading symbols from /boot/kernel/libiconv.ko.symbols...done. done. Loaded symbols for /boot/kernel/libiconv.ko Reading symbols from /boot/kernel/ntfs.ko...Reading symbols from /boot/kernel/ntfs.ko.symbols...done. done. Loaded symbols for /boot/kernel/ntfs.ko Reading symbols from /boot/kernel/radeon.ko...Reading symbols from /boot/kernel/radeon.ko.symbols...done. done. Loaded symbols for /boot/kernel/radeon.ko Reading symbols from /boot/kernel/drm.ko...Reading symbols from /boot/kernel/drm.ko.symbols...done. done. Loaded symbols for /boot/kernel/drm.ko Reading symbols from /usr/local/modules/rtc.ko...done. Loaded symbols for /usr/local/modules/rtc.ko #0 doadump () at pcpu.h:246 246 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) list *0xc0935c80 0xc0935c80 is in strlcpy (/usr/src/sys/libkern/strlcpy.c:56). 51 size_t n = siz; 52 53 /* Copy as many bytes as will fit */ 54 if (n != 0 && --n != 0) { 55 do { 56 if ((*d++ = *s++) == 0) 57 break; 58 } while (--n != 0); 59 } 60 (kgdb) backtrace #0 doadump () at pcpu.h:246 #1 0xc089fcf7 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:420 #2 0xc089ffcc in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:576 #3 0xc0c1294c in trap_fatal (frame=0xe9d76a90, eva=0) at /usr/src/sys/i386/i386/trap.c:933 #4 0xc0c12bb0 in trap_pfault (frame=0xe9d76a90, usermode=0, eva=0) at /usr/src/sys/i386/i386/trap.c:846 #5 0xc0c135a2 in trap (frame=0xe9d76a90) at /usr/src/sys/i386/i386/trap.c:528 #6 0xc0bf796b in calltrap () at /usr/src/sys/i386/i386/exception.s:165 #7 0xc0935c80 in strlcpy (dst=0xe9d76b24 "", src=0x0, siz=32) at /usr/src/sys/libkern/strlcpy.c:54 #8 0xc088cd01 in sysctl_kern_malloc_stats (oidp=0xc0db2020, arg1=0x0, arg2=0, req=0xe9d76ba4) at /usr/src/sys/kern/kern_malloc.c:804 #9 0xc08a9917 in sysctl_root (oidp=Variable "oidp" is not available. ) at /usr/src/sys/kern/kern_sysctl.c:1514 #10 0xc08a9ad4 in userland_sysctl (td=0xc6e07480, name=0xe9d76c10, namelen=2, old=0x0, oldlenp=0xbfbfd9a0, inkernel=0, new=0x0, newlen=0, retval=0xe9d76c70, flags=0) at /usr/src/sys/kern/kern_sysctl.c:1613 #11 0xc08a9c24 in __sysctl (td=0xc6e07480, uap=0xe9d76cf8) at /usr/src/sys/kern/kern_sysctl.c:1544 #12 0xc0c12f05 in syscall (frame=0xe9d76d38) at /usr/src/sys/i386/i386/trap.c:1073 #13 0xc0bf79d0 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:261 #14 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: