LadybirdBrowser / ancient-history

The Ladybird web browser
BSD 2-Clause "Simplified" License
1.62k stars 102 forks source link

CMake: Some debugging improvements #99

Closed networkException closed 2 years ago

networkException commented 2 years ago

This pull request adds flags for ASAN, MSAN and UBSAN as well as configures gdb to follow forks, making debugging WebContent with ninja debug a bit nicer

networkException commented 2 years ago

Is there a way to make MSAN ignore Qt?

ADKaster commented 2 years ago

Is there a way to make MSAN ignore Qt?

What kind of errors are you seeing from MSAN? (And are you sure it's not LeakSanitizer?)

networkException commented 2 years ago

MemorySanitizer: use-of-uninitialized-value (Well it says MSAN on the box)

ADKaster commented 2 years ago

Ah, that sounds like the sort of thing valgrind would catch too. If it's reported by both then we should see if it's originating from a value we passed in. It's also possible there's suppressions in valgrind that we'd have to replicate.

networkException commented 2 years ago

Valgrind catches other things that don't look necessarily related but at least that doesn't cause the process to crash