From owner-freebsd-current@FreeBSD.ORG Sun Aug 7 07:04:18 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECCA0106566C for ; Sun, 7 Aug 2011 07:04:18 +0000 (UTC) (envelope-from ttsestt@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 81A868FC0A for ; Sun, 7 Aug 2011 07:04:17 +0000 (UTC) Received: by fxe4 with SMTP id 4so1310995fxe.13 for ; Sun, 07 Aug 2011 00:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; bh=jioCku+6xxENeN6kzMe+Q0Y+JXsed1RKqVb8K25CGBc=; b=Hb2ru9II58NlZdd3KjQ0kNUwRQpLDMcJeoxw+VXtYP6C6PC74jL+3OAUrUvaqdEDvz Oy9URBzrdsHbuxW0+nU4k3z8WQkESMAG7iRM2lTuwyRxhiT31mLziXVQCIfofij70JT8 OojXltfO0lj4MnGTd4jtXlZaidyP4xntrsIG8= Received: by 10.204.139.7 with SMTP id c7mr1165642bku.135.1312700657244; Sun, 07 Aug 2011 00:04:17 -0700 (PDT) Received: from localhost (raskin.torservers.net [74.120.15.150]) by mx.google.com with ESMTPS id p6sm306812bks.17.2011.08.07.00.04.15 (version=SSLv3 cipher=OTHER); Sun, 07 Aug 2011 00:04:16 -0700 (PDT) From: Test Rat To: Dimitry Andric References: <86zkjtwc8r.fsf@gmail.com> <86vcucfnt3.fsf@gmail.com> <4E3DCFC8.7000802@FreeBSD.org> Date: Sun, 07 Aug 2011 11:04:11 +0400 Message-ID: <86zkjld7o4.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-current@freebsd.org Subject: Re: [clang] (gpt)zfsboot is broken: zfs_alloc()/zfs_free() mismatch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 07 Aug 2011 07:04:19 -0000 Dimitry Andric writes: > On 2011-08-05 07:08, Test Rat wrote: >> Pawel Worach writes: > ... >>> A workaround for the hang on boot and "error 1 lba X" failures is the >>> following patch, it would be interesting if it also makes the >>> zfs_alloc/free error go away too. >> After applying the patch zfsboot and gptzfsboot boot successfully. >> Tested both inside qemu and only gptzfsboot on a living system. > > Hi, > > Can you please try the following alternative patch, which should fix the > problem without disabling -mrtd? E.g. revert the previous patch, then > apply this one. It boots fine after applying either of patches. I've made sure the bug appeared again before testing the new patch. zfsboot and gptzfsboot built with gcc still boot, too. > Of course, if any other posters in this thread that had problems with > gptzfsboot (or 'plain' zfsboot) can also confirm this patch works, it > would be nice. :)