Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2012 14:29:16 +0200
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        freebsd-current@freebsd.org, fs@freebsd.org
Subject:   Re: clang compiled kernel panic when mounting zfs root on i386
Message-ID:  <50C9CA1C.8030002@gmail.com>
In-Reply-To: <50C8DC8E.1080204@FreeBSD.org>
References:  <50b37d46.8584440a.735c.ffffb4e6@mx.google.com> <20121126171658.GD3013@kib.kiev.ua> <20121127071243.D1255@besplex.bde.org> <20121129232944.GQ3013@kib.kiev.ua> <50b8a9c5.e64dec0a.1d88.133a@mx.google.com> <20121130164715.GW3013@kib.kiev.ua> <50b9cf0c.0fd9650a.5bbf.ffffb9b3@mx.google.com> <20121203224132.GJ3013@kib.kiev.ua> <50C880D7.1040907@gmail.com> <50C8DC8E.1080204@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50C9CA1C.8030002>