Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Aug 2011 12:58:15 +0200
From:      Christoph Hoffmann <christoph_hoffmann@me.com>
To:        Olivier Smedts <olivier@gid0.org>
Cc:        Test Rat <ttsestt@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: [clang] (gpt)zfsboot is broken: zfs_alloc()/zfs_free() mismatch
Message-ID:  <12424D5E-18AD-4D24-83DE-A52E0F2B42AE@me.com>
In-Reply-To: <CABzXLYN1krNR1Fi2OqCWxCVsCuRn9hgqaO0_WaNEG2-Q3w_0Rg@mail.gmail.com>
References:  <86zkjtwc8r.fsf@gmail.com> <B9C820F7-EAD7-4AB8-903A-06CEF17240CA@gmail.com> <CABzXLYN1krNR1Fi2OqCWxCVsCuRn9hgqaO0_WaNEG2-Q3w_0Rg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <pawel.worach@gmail.com>:
>> 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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12424D5E-18AD-4D24-83DE-A52E0F2B42AE>