Re: [clang] (gpt)zfsboot is broken: zfs_alloc()/zfs_free() mismatch

From: Pawel Worach <pawel.worach_at_gmail.com>
Date: Fri, 5 Aug 2011 02:17:50 +0200
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.

Index: sys/boot/i386/zfsboot/Makefile
===================================================================
--- sys/boot/i386/zfsboot/Makefile	(revision 224653)
+++ sys/boot/i386/zfsboot/Makefile	(working copy)
_at__at_ -20,7 +20,6 _at__at_
 	-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)
_at__at_ -22,7 +22,6 _at__at_
 	-fomit-frame-pointer \
 	-fno-unit-at-a-time \
 	-mno-align-long-strings \
-	-mrtd \
 	-DGPT -DBOOT2 \
 	-DSIOPRT=${BOOT_COMCONSOLE_PORT} \
 	-DSIOFMT=${B2SIOFMT} \

dim_at_ has filed an upstream bug, http://llvm.org/bugs/show_bug.cgi?id=10591

Regards
-- 
Pawel
Received on Thu Aug 04 2011 - 22:43:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:16 UTC