From owner-freebsd-current@FreeBSD.ORG Fri Aug 5 09:45:53 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 D5310106566B for ; Fri, 5 Aug 2011 09:45:53 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9DC088FC17 for ; Fri, 5 Aug 2011 09:45:53 +0000 (UTC) Received: by qwc9 with SMTP id 9so1959436qwc.13 for ; Fri, 05 Aug 2011 02:45:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.40.134 with SMTP id k6mr1486664qce.242.1312537552648; Fri, 05 Aug 2011 02:45:52 -0700 (PDT) Received: by 10.229.212.75 with HTTP; Fri, 5 Aug 2011 02:45:52 -0700 (PDT) In-Reply-To: References: <86zkjtwc8r.fsf@gmail.com> Date: Fri, 5 Aug 2011 11:45:52 +0200 Message-ID: From: Olivier Smedts To: Pawel Worach Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Test Rat , 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 09:45:53 -0000 2011/8/5 Pawel Worach : > 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. >> >> 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 fol= lowing patch, it would be interesting if it also makes the zfs_alloc/free e= rror go away too. Yes, it solved the "ZFS: zfs_alloc()/zfs_free() mismatch" error when gptzfsboot-ing after building with clang. I don't know if it still works with gcc and the patch applied. > 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 =A0 =A0 =A0(revision 224653) > +++ sys/boot/i386/zfsboot/Makefile =A0 =A0 =A0(working copy) > @@ -20,7 +20,6 @@ > =A0 =A0 =A0 =A0-fomit-frame-pointer \ > =A0 =A0 =A0 =A0-fno-unit-at-a-time \ > =A0 =A0 =A0 =A0-mno-align-long-strings \ > - =A0 =A0 =A0 -mrtd \ > =A0 =A0 =A0 =A0-DBOOT2 \ > =A0 =A0 =A0 =A0-DSIOPRT=3D${BOOT_COMCONSOLE_PORT} \ > =A0 =A0 =A0 =A0-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 =A0 (revision 224653) > +++ sys/boot/i386/gptzfsboot/Makefile =A0 (working copy) > @@ -22,7 +22,6 @@ > =A0 =A0 =A0 =A0-fomit-frame-pointer \ > =A0 =A0 =A0 =A0-fno-unit-at-a-time \ > =A0 =A0 =A0 =A0-mno-align-long-strings \ > - =A0 =A0 =A0 -mrtd \ > =A0 =A0 =A0 =A0-DGPT -DBOOT2 \ > =A0 =A0 =A0 =A0-DSIOPRT=3D${BOOT_COMCONSOLE_PORT} \ > =A0 =A0 =A0 =A0-DSIOFMT=3D${B2SIOFMT} \ > > dim@ has filed an upstream bug, http://llvm.org/bugs/show_bug.cgi?id=3D10= 591 > > Regards > -- > Pawel > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."