From owner-freebsd-virtualization@FreeBSD.ORG Mon Nov 11 14:13:46 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A290B3C6 for ; Mon, 11 Nov 2013 14:13:46 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-vb0-x235.google.com (mail-vb0-x235.google.com [IPv6:2607:f8b0:400c:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 607512A0E for ; Mon, 11 Nov 2013 14:13:46 +0000 (UTC) Received: by mail-vb0-f53.google.com with SMTP id i11so3231177vbh.26 for ; Mon, 11 Nov 2013 06:13:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HKr4nhu/5Pp3eXaGDZ/M9Bqn6siBOV+YcphUKP19ewM=; b=VxNmc3/dFsgtE63VC4yuD5oEIgOzaYRwXdg8AOG4o2wxZZHKaWUaPPQFl+6ith5zX6 KclD4B0Tozi1VT99gH4bDx7w7vCsVCczL6zj6xGWHfSjJzNt7cuurJ6JcjNO6u/jBwA3 EL12VpVC1gT+YbLHJpBRmt0lbqP/B8bEhZMUgeUG8KKp3PKaguxcVG0/qmPNIhjqUSt8 rPRcPWrKQezmLXTF50ydm2AREKJbJlHEdiP/wUEPnUQjLCK3tCfbpuUaJsix6joDKrO3 ZjATp1KLjOUGkiwy3Ai3dWES1QFWbz943RyGnBWuw0/cgXwWyokhB7iw1XDKj1IEBEwc KHLg== MIME-Version: 1.0 X-Received: by 10.58.50.194 with SMTP id e2mr20085veo.54.1384179225424; Mon, 11 Nov 2013 06:13:45 -0800 (PST) Received: by 10.52.168.106 with HTTP; Mon, 11 Nov 2013 06:13:45 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Nov 2013 18:13:45 +0400 Message-ID: Subject: Re: Running `sysctl -a` causes crash (Hyper-V) From: Pavel Timofeev To: Sergey Kandaurov Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2013 14:13:46 -0000 root@bsdtest:~ # kgdb /boot/kernel/kernel ./vmcore.1 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 "amd64-marcel-freebsd"... Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0x0 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff8095d79b stack pointer = 0x28:0xfffffe003d31c8f0 frame pointer = 0x28:0xfffffe003d31c900 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 777 (sysctl) trap number = 12 panic: page fault cpuid = 1 KDB: stack backtrace: #0 0xffffffff808e7a90 at kdb_backtrace+0x60 #1 0xffffffff808af575 at panic+0x155 #2 0xffffffff80c8e272 at trap_fatal+0x3a2 #3 0xffffffff80c8e549 at trap_pfault+0x2c9 #4 0xffffffff80c8dcd6 at trap+0x5e6 #5 0xffffffff80c74f72 at calltrap+0x8 #6 0xffffffff808ea529 at sysctl_kern_vm_guest+0x29 #7 0xffffffff808baacf at sysctl_root+0x24f #8 0xffffffff808bb088 at userland_sysctl+0x1d8 #9 0xffffffff808bae74 at sys___sysctl+0x74 #10 0xffffffff80c8eb67 at amd64_syscall+0x357 #11 0xffffffff80c7525b at Xfast_syscall+0xfb Uptime: 30s Dumping 89 out of 1001 MB:..18%..36%..54%..72%..89% Reading symbols from /boot/kernel/fuse.ko.symbols...done. Loaded symbols for /boot/kernel/fuse.ko.symbols Reading symbols from /boot/kernel/fdescfs.ko.symbols...done. Loaded symbols for /boot/kernel/fdescfs.ko.symbols #0 doadump (textdump=) at pcpu.h:219 219 pcpu.h: No such file or directory. in pcpu.h (kgdb) p vm_guest $1 = 3 Current language: auto; currently minimal (kgdb) 2013/11/11 Sergey Kandaurov : > [Please, don't top-post.] > On 11 November 2013 17:06, Pavel Timofeev wrote: >> I'm sorry, could you explain how to do it? Which one is the 'core >> file', vmcore or core.txt? >> > > It's vmcore. > kgdb /path/to/kernel /path/to/vmcore > >> 2013/11/11 Sergey Kandaurov : >>> On 11 November 2013 16:38, Pavel Timofeev wrote: >>>> Hi! Can anybody confirm the subject? >>>> Every time when I run `sysctl -a` get this >>>> >>>> http://pastebin.com/Chf9qQTD >>> >>> Can you show 'p vm_guest' from core file? > > -- > wbr, > pluknet