Re: Make stable/15 a stable branch [Just for my edification: Why are PTHREADS_ASSERTIONS and ASSERT_DEBUG left enabled for stable/* and releng/*.* ?]

From: Colin Percival <cperciva_at_tarsnap.com>
Date: Fri, 05 Sep 2025 06:06:05 UTC
On 9/4/25 22:02, Mark Millard wrote:
> Colin Percival <cperciva_at_FreeBSD.org> wrote on
> Date: Fri, 05 Sep 2025 01:24:00 UTC :
>> * Turn off LLVM assertions
>> * Turn on production malloc and reproductible builds
> 
> Just for my edification for stable/* and release/*.* :
> 
> Is there a reason that PTHREADS_ASSERTIONS is
> left enabled? (Listed in __DEFAULT_YES_OPTIONS
> in share/mk/src.opts.mk .)

That's a good question.  I've emailed a few people to ask...

> Is there a reason that ASSERT_DEBUG
> ( in  share/mk/bsd.opts.mk ) is left enabled
> ( listed in __DEFAULT_YES_OPTIONS )?

That's documented as "Compile programs and libraries without the
assert(3) checks" which I'm inclined to say sounds dangerous since
assertions are often misused for security purposes.

-- 
Colin Percival
FreeBSD Release Engineering Lead & EC2 platform maintainer
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid