clang compiled kernel panic when mounting zfs root on i386

Volodymyr Kostyrko c.kworr at gmail.com
Thu Dec 13 12:29:26 UTC 2012


12.12.2012 21:35, Dimitry Andric:
> On 2012-12-12 14:04, Volodymyr Kostyrko wrote:
>> 04.12.2012 00:41, Konstantin Belousov:
>>> Please try the patch below. It might give an immediate relief, but still
>>> there are many offenders in the backtrace.
>>
>> I'm having almost the same issue and the patch doesn't work for me.
> ...
>
> Looking at the stack frame addresses, it seems some of them are mangled.
> Did you type this by hand? The differences between subsequent frames
> are a bit strange because of it (and because of awk's integer
> processing):

Yes, I had typed that by hand. I attached link to the pictures just in case.

> The kernel stack is just 8,192 bytes; since you can see these routines
> are all consuming massive amounts of stack, and the calls are very
> deeply nested, it is almost inevitable that it would crash.
>
> Especially the recursive spa_load and traverse_visitbp calls are scary,
> because that can grow out of hand very quickly.  It is probably tricky
> to remove the recursion...

After playing more with this kernel I also found it can crash not only 
by this scenario. There are different possible ways.

I actually don't think there's a point fixing it right now. New clang is 
coming anyway...

-- 
Sphinx of black quartz, judge my vow.


More information about the freebsd-current mailing list