From owner-freebsd-current@FreeBSD.ORG Fri Aug 5 00:43:20 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 51872106564A for ; Fri, 5 Aug 2011 00:43:20 +0000 (UTC) (envelope-from pawel.worach@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 D4ABB8FC08 for ; Fri, 5 Aug 2011 00:43:19 +0000 (UTC) Received: by fxe4 with SMTP id 4so3490254fxe.13 for ; Thu, 04 Aug 2011 17:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=fdGqyTxJ+IuqvxJ4yC8X4FO6Lm8t/jIgIej9eShrB1g=; b=siKxu9WWfT0oye8IdqhunjZPQICP9UmV1hh1Fht0e2ceayA5Gd23W3HUBtBtfnGMAB HU6fzWI94otw3Ng2JPDki6Xbm0KbDUmRhSNjV08XaMqFaY9diw2DDftwHLGqTXhzN1Np NYjvK5Ni6Wci8cNVbHYL0w50ZwAjoHRs2jqtU= Received: by 10.204.146.142 with SMTP id h14mr538314bkv.31.1312503473112; Thu, 04 Aug 2011 17:17:53 -0700 (PDT) Received: from [172.16.0.199] (host-78-64-61-68.homerun.telia.com [78.64.61.68]) by mx.google.com with ESMTPS id k5sm692020bka.38.2011.08.04.17.17.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Aug 2011 17:17:52 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=us-ascii From: Pawel Worach In-Reply-To: <86zkjtwc8r.fsf@gmail.com> Date: Fri, 5 Aug 2011 02:17:50 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <86zkjtwc8r.fsf@gmail.com> To: Test Rat X-Mailer: Apple Mail (2.1244.3) 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: Fri, 05 Aug 2011 00:43:20 -0000 On Aug 1, 2011, at 14:24, Test Rat wrote: > Anyone else? I can still reproduce with trunk r136607. > boot and gptboot seem to be unaffected. >=20 > IIRC, with previous clang import it just stuck during boot > without any error messages. 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. Index: sys/boot/i386/zfsboot/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/boot/i386/zfsboot/Makefile (revision 224653) +++ sys/boot/i386/zfsboot/Makefile (working copy) @@ -20,7 +20,6 @@ -fomit-frame-pointer \ -fno-unit-at-a-time \ -mno-align-long-strings \ - -mrtd \ -DBOOT2 \ -DSIOPRT=3D${BOOT_COMCONSOLE_PORT} \ -DSIOFMT=3D${B2SIOFMT} \ Index: sys/boot/i386/gptzfsboot/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/boot/i386/gptzfsboot/Makefile (revision 224653) +++ sys/boot/i386/gptzfsboot/Makefile (working copy) @@ -22,7 +22,6 @@ -fomit-frame-pointer \ -fno-unit-at-a-time \ -mno-align-long-strings \ - -mrtd \ -DGPT -DBOOT2 \ -DSIOPRT=3D${BOOT_COMCONSOLE_PORT} \ -DSIOFMT=3D${B2SIOFMT} \ dim@ has filed an upstream bug, = http://llvm.org/bugs/show_bug.cgi?id=3D10591 Regards --=20 Pawel