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, Jun 4, 3:14 PM
Unknown Object (File)
Thu, Jun 4, 8:02 AM
Unknown Object (File)
Wed, Jun 3, 11:39 PM
Unknown Object (File)
May 14 2026, 2:42 PM
Unknown Object (File)
May 14 2026, 6:39 AM
Unknown Object (File)
May 12 2026, 5:03 PM
Unknown Object (File)
May 11 2026, 10:10 AM
Unknown Object (File)
May 4 2026, 12:22 PM
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.