Page MenuHomeFreeBSD

Add WITH_BOOTSTRAP_TOOLS_{ASAN,UBSAN}
Needs ReviewPublic

Authored by arichardson on Apr 18 2026, 5:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 14, 2:42 PM
Unknown Object (File)
Thu, May 14, 6:39 AM
Unknown Object (File)
Tue, May 12, 5:03 PM
Unknown Object (File)
Mon, May 11, 10:10 AM
Unknown Object (File)
Mon, May 4, 12:22 PM
Unknown Object (File)
Tue, Apr 28, 7:49 AM
Unknown Object (File)
Tue, Apr 28, 3:56 AM
Unknown Object (File)
Sat, Apr 25, 10:47 AM
Subscribers

Details

Reviewers
markj
emaste
jhb
Summary

This allows building the bootstrap tools with sanitizers to catch
undefined behaviour or memory error triggered when building FreeBSD.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 72312
Build 69195: arc lint + arc unit

Event Timeline

I tried applying this patch and building world on FreeBSD running recent main. I can see that MK_ASAN and MK_UBSAN are getting set properly, but if I trace process args during the bootstrap-tools phase, I can't see -fsanitize getting passed anywhere. Am I missing something?

I tried applying this patch and building world on FreeBSD running recent main. I can see that MK_ASAN and MK_UBSAN are getting set properly, but if I trace process args during the bootstrap-tools phase, I can't see -fsanitize getting passed anywhere. Am I missing something?

It definitely used to work, looks like something must have changed since my last rebase. Will investigate.