How can I break on UBSan reports in gdb and continue?
While breaking on the detection functions (as described by @Mark Plotnick and @Iwillnotexist Idonotexist) is one option, a better approach is breaking on the functions that report these issues after detection. This approach is also used for ASAN where one would break on __asan_report_error. Summary: You can stop on an ubsan report via a breakpoint … Read more