Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2012 16:53:48 -0800
From:      Alfred Perlstein <bright@mu.org>
To:        Navdeep Parhar <np@FreeBSD.org>
Cc:        Adrian Chadd <adrian@FreeBSD.org>, src-committers@FreeBSD.org, John Baldwin <jhb@FreeBSD.org>, svn-src-all@FreeBSD.org, Alfred Perlstein <alfred@FreeBSD.org>, Andriy Gapon <avg@FreeBSD.org>, svn-src-head@FreeBSD.org
Subject:   Re: svn commit: r244112 - head/sys/kern
Message-ID:  <50C9271C.70803@mu.org>
In-Reply-To: <50C9206D.6080502@FreeBSD.org>
References:  <201212110708.qBB78EWx025288@svn.freebsd.org> <201212121046.43706.jhb@freebsd.org> <CAJ-Vmo=U04GX%2BZyKuzXLwV%2BPpzU6_dm5BCmL=DWfsmhTVAR%2BsA@mail.gmail.com> <201212121658.49048.jhb@freebsd.org> <50C90567.8080406@FreeBSD.org> <50C909BD.9090709@mu.org> <50C91B32.4080904@FreeBSD.org> <50C91CD3.7030900@mu.org> <50C9206D.6080502@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/12/12 4:25 PM, Navdeep Parhar wrote:
> On 12/12/12 16:09, Alfred Perlstein wrote:
>
>> What do you think happens to a FreeBSD kernel when INVARIANTS is 
>> compiled in and it trips an assertion after my change? 
> I know the new knob has sane defaults.  My point was that invariants
> should be considered inviolable.  A knob that allows for
> it's-really-not-supposed-to-fail-but-in-case-it-does... dilutes their
> meaning, so it may have been better to introduce a new macro for the
> kind of tests you had in mind.  I would use it too instead of the if
> (!foo) kdb_backtrace() that I often resort to for conditions that I'm
> not sure about.
>

The problem again is that not all the KASSERTS are inviolable, if you 
want to do a project to split them, then please do, it would really be 
helpful, as for now, they are a mis-mash of death/warnings and there are 
at least three vendors who approve of this as well as 3 long term 
committers that approved my change (not including Adrian).

I'll be completely honest, I struggled very much with this KASSERT 
problem at a previous employer, and the second that Adrian brought up 
the idea of "optional panic" I was kicking myself so hard because the 
solution to so many problems suddenly jumped out at me.

I will assure you that taking a stand on this one issue has the 
following problems:
1) Makes it harder for at LEAST three vendors to shake out and report 
bugs back to the project.
2) Makes it more likely that someone who has useful (to some, but not 
all) patches to keep them private to avoid such arguments.

Anyhow after all this back and forth on changes that really do not 
effect anyone, ie defaults stay the same, it really has me questioning 
the sanity of contributing and/or taking the time to give this sort of 
thing to the project.  It really seems like people are getting very bent 
out of shape over minor enhancements that offer flexibility.

Like what if I do gzipp'd kernel dumps next? (on my todo list)  How many 
people will complain that "gzip is too dangerous in kernel context foo 
foo!!!!"

Not sure, I guess I'll find out?


-Alfred



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