From owner-freebsd-virtualization@freebsd.org Thu Jul 30 20:00:47 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31A929AC9A9 for ; Thu, 30 Jul 2015 20:00:47 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id E69A07E for ; Thu, 30 Jul 2015 20:00:46 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTP id B0723125D0 for ; Fri, 31 Jul 2015 06:00:44 +1000 (EST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id A861C281198 for ; Fri, 31 Jul 2015 06:00:44 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zm0tusMv2sdZ for ; Fri, 31 Jul 2015 06:00:44 +1000 (AEST) Received: from Peters-MacBook-Pro.local (c-67-180-92-13.hsd1.ca.comcast.net [67.180.92.13]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id BD691280963; Fri, 31 Jul 2015 06:00:41 +1000 (AEST) Subject: Re: Segmentation Fault with grub-bhyve To: Manas Bhatnagar References: <55BA4259.7010007@gmail.com> <55BA75DB.7090704@gmail.com> Cc: "freebsd-virtualization@freebsd.org" From: Peter Grehan Message-ID: <55BA8266.60907@freebsd.org> Date: Thu, 30 Jul 2015 13:00:38 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55BA75DB.7090704@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 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: Thu, 30 Jul 2015 20:00:47 -0000 Hi Manas, > Just a follow up, here is the backtrace from GDB Thanks for the core. Appended is a backtrace with symbols. The source may not be an exact match but it's close enough to show the issue is in zfs. Just to check: are you booting a Debian VM with a ZFS filesystem ? The version of ZFS in grub2-bhyve doesn't work with FreeBSD (the supported pool version is too old) so it's never had much of a workout. I'm looking at backporting some of the more recent grub ZFS code but it's going to take a while. later, Peter. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00000000004798d3 in fill_vdev_info_real (data=0x5304f0 , nvlist=0x0, fill=0x40b5bf , insert=0x7fffffffe0e0, inserted=0x0, ashift=8) at fs/zfs/zfs.c:639 warning: Source file is more recent than executable. 639 fill->type = DEVICE_LEAF; (gdb) where #0 0x00000000004798d3 in fill_vdev_info_real (data=0x5304f0 , nvlist=0x0, fill=0x40b5bf , insert=0x7fffffffe0e0, inserted=0x0, ashift=8) at fs/zfs/zfs.c:639 #1 0x0000000000481864 in grub_zfs_read (file=0x481864 , buf=0x7fffffffe190 "\340\341\377\377\377\177", len=33443870448) at fs/zfs/zfs.c:3627 #2 0x0000000000481977 in fill_fs_info (info=0x0, mdn=..., data=0x0) at fs/zfs/zfs.c:3675 #3 0x000000000047ae4e in recovery (bufs=0x7fffffffe238, s=1536, nbufs=0, powers=0x7fffffffe1e0, idx=0x80221900c) at fs/zfs/zfs.c:1130 #4 0x000000000047b3e6 in recovery (bufs=0x8020e4000, s=34389098696, nbufs=8, powers=0x11f, idx=0x8000) at fs/zfs/zfs.c:1173 #5 0x0000000000482024 in grub_zfs_dir (device=0x802219018, path=0x7fffffffeb30 "\b") at fs/zfs/zfs.c:3748 #6 0x00000000004830d3 in grub_memcpy (dest=0x7fffffffe8e0, src=0x8020f4800, n=18446744065119617024) at ../include/grub/misc.h:74 #7 0x0000000000000000 in ?? ()