Stop on the first UBSan error with -fno-sanitize-recover
Make UBSan in Clang 18 stop at the first undefined behaviour with -fno-sanitize-recover=undefined, instead of printing and carrying on.
Short posts that solve one thing: the code, the output we got, and why it works.
Make UBSan in Clang 18 stop at the first undefined behaviour with -fno-sanitize-recover=undefined, instead of printing and carrying on.
See still-reachable and indirect leaks in Valgrind 3.23 with --show-leak-kinds=all, which --leak-check=full hides by default.
Decode a captured SPI bus in PulseView by adding the SPI decoder and mapping CLK, MOSI, MISO and CS#, then match CPOL and CPHA to the chip.
Name Linux core files after the program and PID with kernel.core_pattern and the %e and %p specifiers, so crashes do not overwrite each other.
Read the Language Environment traceback in a CEEDUMP to find the failing program, its entry offset and the statement number, on z/OS 3.1.
Log numbers and strings from firmware over SEGGER RTT with SEGGER_RTT_printf, which takes %d, %u, %x, %s and %c but no floating-point formats.
Print the disassembly of one function from a shell script with gdb -batch and -ex, without starting a debugging session.
Start OpenOCD 0.12 with an adapter script and a target script, as -f interface/stlink.cfg -f target/stm32f4x.cfg, and read what its startup log tells you.
Trace a whole group of syscalls with strace 6.x by naming a class such as -e trace=%file or %network instead of listing every call.
Count instructions only inside one function by passing --toggle-collect=compute to callgrind, so setup code stays out of the profile.
Use -gdb tcp::1235 to move QEMU 10.0's gdbstub off port 1234, and bind it to 127.0.0.1 so the unauthenticated debug port stays local.
Attach commands to an LLDB breakpoint with breakpoint command add, ending the list with DONE, to log or continue without stopping.
We send one email when a new post is published. No spam.