I am trying to find an elusive crash using #AddressSanitizer. It hasn't been used on this project since basically ever, and, how should I put this...

Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

#GameDev

TIL: calling munmap() with wrong parameters can cause really strange occasional crashes in #AddressSanitizer or #Valgrind. Wrong parameters meaning in this case:
- passing wrong (too large) size,
- passing NULL,
- calling munmap() multiple times for the same pointer.

Debugging the crashes was painful. What helped in the end was "doing the boring right thing": adding error checking to all related system calls, adding debug logs, fixing code smells.

#softwareDevelopment #Linux #mmap

Has anyone managed to get the print_cmdline option working for MSVC's Address Sanitizer? When it comes to msvc asan I can never tell whether I haven't jumped through enough hoops or they haven't gotten round to implementing it

https://developercommunity.visualstudio.com/t/The-print_cmdline-option-in-ASAN_OPTIONS/10690490

#asan #msvc #cplusplus #addresssanitizer #addresssanitizerasan #debugging #softwaredevelopment #visualstudio

Address Sanitizer for Bare-metal Firmware

Posted by Eugene Rodionov and Ivan Lozano, Android Team With steady improvements to Android userspace and kernel security, we have notice...

Google Online Security Blog

CppNow 2024 Session Announcement

What does it take to implement the standard library? by Christopher Di Bella

https://schedule.cppnow.org/session/what-does-it-take-to-implement-the-standard-library/

Register today at cppnow.org/registration

#Abi #AddressSanitizer #Algorithms #API #Asan #Build
#CProgramming

What does it take to implement the standard library? – C++Now Schedule

Lately I've been working with projects written in C that utilize the GNU Autotools build system. I've found that I often want to change their configuration slightly (e.g. add AddressSanitizer to check for leaks) without discarding the current one. So I wrote a tiny interactive Bash script to make my life a little easier.

(EDIT: inline tags look weird - moved)

#C #GNU #Autotools #Automake #AddressSanitizer #Bash

84761 – AddressSanitizer is not compatible with glibc 2.27 on x86