From owner-freebsd-current@FreeBSD.ORG Fri Aug 5 10:58:47 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 8DC42106564A for ; Fri, 5 Aug 2011 10:58:47 +0000 (UTC) (envelope-from christoph_hoffmann@me.com) Received: from asmtpout019.mac.com (asmtpout019.mac.com [17.148.16.94]) by mx1.freebsd.org (Postfix) with ESMTP id 735C98FC12 for ; Fri, 5 Aug 2011 10:58:47 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from tunnel2.sec101.ch ([62.2.44.114]) by asmtp019.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LPG009T3BT46Z00@asmtp019.mac.com> for freebsd-current@freebsd.org; Fri, 05 Aug 2011 03:58:20 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813,1.0.211,0.0.0000 definitions=2011-08-05_04:2011-08-05, 2011-08-05, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=9 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1108050044 From: Christoph Hoffmann In-reply-to: Date: Fri, 05 Aug 2011 12:58:15 +0200 Message-id: <12424D5E-18AD-4D24-83DE-A52E0F2B42AE@me.com> References: <86zkjtwc8r.fsf@gmail.com> To: Olivier Smedts X-Mailer: Apple Mail (2.1244.3) 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 10:58:47 -0000 Hello Olivier, Thank you very for your work. Using the path I have successfully rebuild, install and boot my system. Regards, Christoph On Aug 5, 2011, at 11:45 AM, Olivier Smedts wrote: > 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 following patch, it would be interesting if it also makes the zfs_alloc/free error 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 >> =================================================================== >> --- 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=${BOOT_COMCONSOLE_PORT} \ >> -DSIOFMT=${B2SIOFMT} \ >> Index: sys/boot/i386/gptzfsboot/Makefile >> =================================================================== >> --- 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=${BOOT_COMCONSOLE_PORT} \ >> -DSIOFMT=${B2SIOFMT} \ >> >> dim@ has filed an upstream bug, http://llvm.org/bugs/show_bug.cgi?id=10591 >> >> 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" >> > > > > -- > Olivier Smedts _ > ASCII ribbon campaign ( ) > e-mail: olivier@gid0.org - against HTML email & vCards X > www: http://www.gid0.org - against proprietary attachments / \ > > "Il y a seulement 10 sortes de gens dans le monde : > ceux qui comprennent le binaire, > et ceux qui ne le comprennent pas." > _______________________________________________ > 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"