LadybirdBrowser / ancient-history

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

CMake: Some debugging improvements #99

Closed networkException closed 1 year ago

networkException commented 1 year 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 1 year ago

Is there a way to make MSAN ignore Qt?

ADKaster commented 1 year 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 1 year ago

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

ADKaster commented 1 year 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 1 year ago

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